Reviewers: Mads Ager,

Description:
Remove usage of JSArray in Script object

Storing a JSArray in the Script object could cause an indirect reference  
from
the compilation cache to a global object to be created. Now the line ends  
are
only stored as a FixedArrya and when that is needed in JavaScript a JSArray  
copy
is created. Changed some of the JavaScript code to cache the line ends in a
local variable for better performance.

BUG=http://code.google.com/p/v8/issues/detail?id=528
TEST=test/test-api/Bug528

Please review this at http://codereview.chromium.org/434117

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     include/v8.h
   M     src/accessors.cc
   M     src/api.cc
   M     src/factory.cc
   M     src/handles.cc
   M     src/messages.js
   M     src/objects-debug.cc
   M     src/objects-inl.h
   M     src/objects.h
   M     test/cctest/test-api.cc
   M     test/cctest/test-debug.cc


-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to