|
Added handles to the mirror objects. When a mirror for an object is created
it is assigned a numeric handle. Handles are used to make a 1:1
correspondence between objects and mirrors. Currently the mirrors are
cached in a JavaScript array and when creating a mirror this cache is
checked to see if a mirror already exists for the object. This cache is
cleared when leaving the debugger.
Changed the serialization format to take advantage of these handles. When
an object is serialized referenced objects are represented just by their
handle id serialized as '{ref:<handle>}'. During serialization the
referenced handles are collected and the serializer can provide a
serialization of all the referenced objects.
Removed the special handling of array properties. Indexed properties and
the length property are now rendered as named properties in the
serialization.
Removed the special serialization handling of RegExp properties. The
properties 'source', 'global', 'ignoreCase' and 'multiline' are serialized
with the rest of the properties.
Changed a lot of tests to handle the changed format.
Committed: http://code.google.com/p/v8/source/detail?r=1093
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+641 lines, -285 lines) |
Patch |
|
M |
src/debug.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/debug.cc
|
View
|
|
2 chunks |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/debug-delay.js
|
View
|
|
5 chunks |
+20 lines, -13 lines |
0 comments
|
Download
|
|
M |
src/mirror-delay.js
|
View
|
1
|
19 chunks |
+266 lines, -120 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/debug-backtrace.js
|
View
|
|
5 chunks |
+66 lines, -33 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-array.js
|
View
|
|
2 chunks |
+59 lines, -31 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-boolean.js
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-date.js
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-error.js
|
View
|
|
2 chunks |
+27 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-function.js
|
View
|
|
2 chunks |
+17 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-null.js
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-number.js
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-object.js
|
View
|
|
3 chunks |
+71 lines, -47 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-regexp.js
|
View
|
|
3 chunks |
+27 lines, -12 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-script.js
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-string.js
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-undefined.js
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/mirror-unresolved-function.js
|
View
|
|
2 chunks |
+25 lines, -8 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regress/regress-1081309.js
|
View
|
|
2 chunks |
+27 lines, -8 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|