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

Issue 7991007: Search prototypes for accessor setters if interceptor returns empty value. (Closed)

Created:
9 years, 3 months ago by ulan
Modified:
9 years, 2 months ago
CC:
v8-dev
Visibility:
Public.

Description

Search prototypes for accessor setters if interceptor returns empty value. Extract the part of SetPropertyForResult that searches the prototype chain for accessor setters into a separate function SetPropertyInPrototypes. Call this function in SetPropertyPostInterceptor. This should fix both optimized and unoptimized cases because the cache stub for storing with interceptor calls the runtime system. BUG=v8:1636 TEST=cctest/test-api.cc/EmptyInterceptorDoesNotShadowAccessors Committed: http://code.google.com/p/v8/source/detail?r=9431

Patch Set 1 #

Total comments: 28

Patch Set 2 : Addressed style comments. #

Total comments: 6

Patch Set 3 : Addressed review comments. #

Patch Set 4 : Initialize 'found'. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -28 lines) Patch
M src/objects.h View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 3 chunks +70 lines, -28 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 2 chunks +196 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ulan
Please take a look.
9 years, 3 months ago (2011-09-26 07:57:45 UTC) #1
Rico
Style comments first: please Start comments with capital letter and end with period. http://codereview.chromium.org/7991007/diff/1/test/cctest/test-api.cc File ...
9 years, 2 months ago (2011-09-26 08:45:10 UTC) #2
ulan
Addressed style comments. http://codereview.chromium.org/7991007/diff/1/test/cctest/test-api.cc File test/cctest/test-api.cc (right): http://codereview.chromium.org/7991007/diff/1/test/cctest/test-api.cc#newcode1307 test/cctest/test-api.cc:1307: const AccessorInfo& info) { On 2011/09/26 ...
9 years, 2 months ago (2011-09-26 09:15:18 UTC) #3
Rico
LGTM http://codereview.chromium.org/7991007/diff/1/src/objects.cc File src/objects.cc (right): http://codereview.chromium.org/7991007/diff/1/src/objects.cc#newcode2004 src/objects.cc:2004: name, indention http://codereview.chromium.org/7991007/diff/1/src/objects.h File src/objects.h (right): http://codereview.chromium.org/7991007/diff/1/src/objects.h#newcode2008 src/objects.h:2008: ...
9 years, 2 months ago (2011-09-26 10:37:36 UTC) #4
Rico
http://codereview.chromium.org/7991007/diff/2002/src/objects.cc File src/objects.cc (right): http://codereview.chromium.org/7991007/diff/2002/src/objects.cc#newcode2023 src/objects.cc:2023: bool found = false; Move comment about using handlified ...
9 years, 2 months ago (2011-09-26 10:40:42 UTC) #5
ulan
Addressed feedback. Merged latest changes (which probably I should have done after the review). http://codereview.chromium.org/7991007/diff/1/src/objects.cc ...
9 years, 2 months ago (2011-09-26 12:56:07 UTC) #6
Vyacheslav Egorov (Chromium)
drive by http://codereview.chromium.org/7991007/diff/1/src/objects.cc File src/objects.cc (right): http://codereview.chromium.org/7991007/diff/1/src/objects.cc#newcode1666 src/objects.cc:1666: &found, strict_mode); We usually use one-arguments-per-line formatting ...
9 years, 2 months ago (2011-09-26 13:52:06 UTC) #7
ulan
9 years, 2 months ago (2011-09-26 14:17:57 UTC) #8
Addressed feedback, landing.

http://codereview.chromium.org/7991007/diff/1/src/objects.cc
File src/objects.cc (right):

http://codereview.chromium.org/7991007/diff/1/src/objects.cc#newcode1666
src/objects.cc:1666: &found, strict_mode);
On 2011/09/26 13:52:07, Vyacheslav Egorov wrote:
> We usually use one-arguments-per-line formatting for calls that do not fit
onto
> one line. 

Done.

http://codereview.chromium.org/7991007/diff/1/src/objects.cc#newcode1667
src/objects.cc:1667: if (found) return result_object;
On 2011/09/26 13:52:07, Vyacheslav Egorov wrote:
> Some compilers will complain that found can be uninitialized here. Please add
> initializer to the variable.

Done.

http://codereview.chromium.org/7991007/diff/1/src/objects.cc#newcode2587
src/objects.cc:2587: result_object = SetPropertyInPrototypes(name, value,
attributes,
On 2011/09/26 13:52:07, Vyacheslav Egorov wrote:
> ditto

Done.

Powered by Google App Engine
This is Rietveld 408576698