|
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
Committed: http://code.google.com/p/v8/source/detail?r=3374
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+43 lines, -76 lines) |
Patch |
|
M |
include/v8.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/accessors.cc
|
View
|
1
|
1 chunk |
+5 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/api.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/factory.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
src/handles.cc
|
View
|
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/messages.js
|
View
|
|
5 chunks |
+14 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
|
2 chunks |
+3 lines, -14 lines |
0 comments
|
Download
|
|
M |
src/objects-debug.cc
|
View
|
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-api.cc
|
View
|
|
4 chunks |
+2 lines, -20 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-debug.cc
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|