Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Issue 13533004: Make __proto__ a real JavaScript accessor property. (Closed)

Created:
7 years, 8 months ago by Michael Starzinger
Modified:
7 years, 8 months ago
Reviewers:
rossberg
CC:
v8-dev
Visibility:
Public.

Description

Make __proto__ a real JavaScript accessor property. This turns the __proto__ callback from a foreign callback into a real JavaScript accessor. It makes the accessor behavior of this property explicit. R=rossberg@chromium.org BUG=v8:1949, v8:2606 TEST=mjsunit/regress/regress-2606 Committed: http://code.google.com/p/v8/source/detail?r=14139

Patch Set 1 #

Patch Set 2 : Add regression test for issue 2606. #

Total comments: 4

Patch Set 3 : Addressed comments by Andreas Rossberg. #

Patch Set 4 : Fix another corner case. #

Patch Set 5 : Add poisoning of the property descriptor. #

Total comments: 2

Patch Set 6 : Addressed moar comments by Andreas Rossberg. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -159 lines) Patch
M include/v8.h View 1 chunk +1 line, -1 line 0 comments Download
M src/accessors.h View 2 chunks +1 line, -6 lines 0 comments Download
M src/accessors.cc View 1 chunk +0 lines, -58 lines 0 comments Download
M src/bootstrapper.cc View 1 chunk +3 lines, -18 lines 0 comments Download
M src/heap.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/heap.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M src/messages.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 chunks +35 lines, -16 lines 0 comments Download
M src/v8natives.js View 1 2 3 4 5 6 chunks +43 lines, -4 lines 0 comments Download
A + test/mjsunit/proto-poison.js View 1 2 3 4 5 1 chunk +18 lines, -44 lines 0 comments Download
A + test/mjsunit/regress/regress-2606.js View 1 1 chunk +33 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
rossberg
LGTM, modulo the missing poisoning. https://codereview.chromium.org/13533004/diff/2001/src/v8natives.js File src/v8natives.js (right): https://codereview.chromium.org/13533004/diff/2001/src/v8natives.js#newcode73 src/v8natives.js:73: // Helper function to ...
7 years, 8 months ago (2013-04-03 13:42:23 UTC) #1
Michael Starzinger
Addressed comments. Implemented poisoning. https://codereview.chromium.org/13533004/diff/2001/src/v8natives.js File src/v8natives.js (right): https://codereview.chromium.org/13533004/diff/2001/src/v8natives.js#newcode73 src/v8natives.js:73: // Helper function to install ...
7 years, 8 months ago (2013-04-04 09:48:02 UTC) #2
rossberg
https://codereview.chromium.org/13533004/diff/2004/src/v8natives.js File src/v8natives.js (right): https://codereview.chromium.org/13533004/diff/2004/src/v8natives.js#newcode409 src/v8natives.js:409: return { get: desc.getGet() === ObjectGetProto ? ObjectPoisonProto I ...
7 years, 8 months ago (2013-04-04 09:58:43 UTC) #3
Michael Starzinger
https://codereview.chromium.org/13533004/diff/2004/src/v8natives.js File src/v8natives.js (right): https://codereview.chromium.org/13533004/diff/2004/src/v8natives.js#newcode409 src/v8natives.js:409: return { get: desc.getGet() === ObjectGetProto ? ObjectPoisonProto On ...
7 years, 8 months ago (2013-04-04 11:52:19 UTC) #4
rossberg
lgtm
7 years, 8 months ago (2013-04-04 11:58:00 UTC) #5
Michael Starzinger
7 years, 8 months ago (2013-04-04 12:10:41 UTC) #6
Message was sent while issue was closed.
Committed patchset #6 manually as r14139 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698