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

Issue 262053011: Confusion on changing data property callback attributes (Closed)

Created:
6 years, 7 months ago by mvstanton
Modified:
6 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Changing the attributes of a data property implemented with ExecutableAccessorInfo turns the property into a field. Better to keep it as a callback, and correctly deal with the changed property attributes. R=ulan@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21558

Patch Set 1 #

Patch Set 2 : Updated with test. #

Patch Set 3 : More integrated approach, I think. #

Patch Set 4 : Addressed comments. #

Total comments: 2

Patch Set 5 : Rebase and comments. #

Patch Set 6 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -29 lines) Patch
M src/accessors.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M src/accessors.cc View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 3 chunks +11 lines, -1 line 0 comments Download
M src/objects.cc View 1 2 3 4 5 5 chunks +46 lines, -6 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 5 2 chunks +13 lines, -22 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
A test/mjsunit/regress/regress-3334.js View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mvstanton
Hi Michael (and Toon if you want to have a look), Here is the fix. ...
6 years, 7 months ago (2014-05-07 13:19:14 UTC) #1
Michael Starzinger
This is very brittle and adds way to many special cases in the code path ...
6 years, 7 months ago (2014-05-07 18:46:03 UTC) #2
mvstanton
Thx Michael, here is a version which integrates setting callbacks into SetLocalPropertyIgnoreAttributes. Thx for the ...
6 years, 7 months ago (2014-05-09 09:47:19 UTC) #3
mvstanton
Adding Ulan, who is working in a similar area.
6 years, 7 months ago (2014-05-09 13:59:16 UTC) #4
mvstanton
one kine ping...
6 years, 7 months ago (2014-05-23 09:42:58 UTC) #5
ulan
Looks good. I didn't understand one part with is_observed: https://codereview.chromium.org/262053011/diff/80001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/262053011/diff/80001/src/objects.cc#newcode4438 src/objects.cc:4438: ...
6 years, 7 months ago (2014-05-23 10:14:47 UTC) #6
mvstanton
Hi Ulan, thanks for the look. Comments addressed, --Michael https://codereview.chromium.org/262053011/diff/80001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/262053011/diff/80001/src/objects.cc#newcode4438 src/objects.cc:4438: ...
6 years, 7 months ago (2014-05-27 13:31:24 UTC) #7
ulan
LGTM, thanks for fixing!
6 years, 7 months ago (2014-05-28 09:02:30 UTC) #8
mvstanton
6 years, 7 months ago (2014-05-28 09:58:38 UTC) #9
Message was sent while issue was closed.
Committed patchset #6 manually as r21558 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698