|
Make __proto__ a foreign callback on Object.prototype.
This moves the __proto__ property to Object.prototype and turns it into
a callback property actually present in the descriptor array as opposed
to a hack in the properties lookup. For now it still is a "magic" data
property using foreign callbacks and not an accessor property visible to
JavaScript.
The second effect of this change is that JSON.parse() no longer treats
the __proto__ property specially, it will be defined as any other data
property. Note that object literals still have their special handling.
R=rossberg@chromium.org
BUG= v8:621, v8:1949, v8:2441
TEST=mjsunit,cctest,test262
Committed: http://code.google.com/p/v8/source/detail?r=13728
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+58 lines, -65 lines) |
Patch |
|
M |
src/bootstrapper.cc
|
View
|
|
1 chunk |
+19 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/factory.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/factory.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/json-parser.h
|
View
|
|
2 chunks |
+5 lines, -11 lines |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
1
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/property.h
|
View
|
|
3 chunks |
+2 lines, -16 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-api.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/builtins.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/harmony/object-observe.js
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/harmony/proxies.js
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/json.js
|
View
|
|
1 chunk |
+17 lines, -10 lines |
0 comments
|
Download
|
|
A + |
test/mjsunit/regress/regress-2441.js
|
View
|
1
2
|
1 chunk |
+4 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/test262/test262.status
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|