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

Issue 139263008: Fix stub-invoked setter callback handling. (Closed)

Created:
6 years, 11 months ago by sof
Modified:
6 years, 11 months ago
CC:
v8-dev
Base URL:
git://github.com/v8/v8.git@bleeding_edge
Visibility:
Public.

Description

Fix stub-invoked setter callback handling. When invoking a setter callback for a property using JSObject::SetPropertyWithCallback(),the callback arguments includes a correct pair of receiver and holder objects. Such a pair of _possibly different_ arguments (receiver, holder) must also be supplied when invoking the same setter callback from JITed code, when the setter is invoked through the StoreCallbackProperty stub. An example where this matters are the accessor properties kept on the global scope of Worker (i.e., properties kept on the global object itself, and not on its prototype.) Conflating the receiver with the holder leads to general confusion when attempting to fetch out the wrapper object. LOG=N R=dcarney@chromium.org, dcarney BUG=239669 Committed: https://code.google.com/p/v8/source/detail?r=18658

Patch Set 1 #

Total comments: 3

Patch Set 2 : Improved and simplified test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -19 lines) Patch
M src/arm/stub-cache-arm.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M src/mips/stub-cache-mips.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M src/stub-cache.cc View 1 chunk +8 lines, -7 lines 0 comments Download
M src/x64/stub-cache-x64.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M test/cctest/test-api.cc View 1 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sof
Please take a look when you next have a moment (or include someone even better ...
6 years, 11 months ago (2014-01-15 22:14:54 UTC) #1
dcarney
lgtm, but please fix the test https://codereview.chromium.org/139263008/diff/1/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/139263008/diff/1/test/cctest/test-api.cc#newcode21638 test/cctest/test-api.cc:21638: TEST(Regress239669) { this ...
6 years, 11 months ago (2014-01-16 07:44:13 UTC) #2
sof
https://codereview.chromium.org/139263008/diff/1/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/139263008/diff/1/test/cctest/test-api.cc#newcode21638 test/cctest/test-api.cc:21638: TEST(Regress239669) { On 2014/01/16 07:44:13, dcarney wrote: > this ...
6 years, 11 months ago (2014-01-16 08:00:16 UTC) #3
sof
https://codereview.chromium.org/139263008/diff/1/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/139263008/diff/1/test/cctest/test-api.cc#newcode21638 test/cctest/test-api.cc:21638: TEST(Regress239669) { On 2014/01/16 07:44:13, dcarney wrote: > this ...
6 years, 11 months ago (2014-01-16 08:44:11 UTC) #4
dcarney
On 2014/01/16 08:44:11, sof wrote: > https://codereview.chromium.org/139263008/diff/1/test/cctest/test-api.cc > File test/cctest/test-api.cc (right): > > https://codereview.chromium.org/139263008/diff/1/test/cctest/test-api.cc#newcode21638 > ...
6 years, 11 months ago (2014-01-16 08:55:30 UTC) #5
dcarney
6 years, 11 months ago (2014-01-17 10:34:51 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 manually as r18658 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698