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

Issue 6118001: Avoid calling inherited setters when creating object literals and their boilerplates. (Closed)

Created:
9 years, 11 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
fschneider
CC:
v8-dev
Visibility:
Public.

Description

Avoid calling inherited setters when creating object literals and their boilerplates. Fix issue 1015. Committed: http://code.google.com/p/v8/source/detail?r=6205

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -64 lines) Patch
M src/accessors.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/handles.h View 1 2 chunks +8 lines, -3 lines 0 comments Download
M src/handles.cc View 1 2 chunks +11 lines, -2 lines 0 comments Download
M src/heap-inl.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/objects.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M src/objects.cc View 1 5 chunks +9 lines, -7 lines 0 comments Download
M src/parser.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M src/runtime.cc View 1 11 chunks +44 lines, -38 lines 0 comments Download
A + test/mjsunit/regress/regress-1015.js View 0 chunks +-1 lines, --1 lines 0 comments Download
M test/mjsunit/regress/regress-192.js View 1 chunk +10 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein
9 years, 11 months ago (2011-01-06 12:43:45 UTC) #1
Lasse Reichstein
9 years, 11 months ago (2011-01-06 12:44:52 UTC) #2
fschneider
LGTM. Please mention the issue number in the commit message. http://codereview.chromium.org/6118001/diff/1/src/handles.cc File src/handles.cc (right): http://codereview.chromium.org/6118001/diff/1/src/handles.cc#newcode428 ...
9 years, 11 months ago (2011-01-06 13:36:23 UTC) #3
Lasse Reichstein
9 years, 11 months ago (2011-01-06 13:55:51 UTC) #4
http://codereview.chromium.org/6118001/diff/1/src/handles.cc
File src/handles.cc (right):

http://codereview.chromium.org/6118001/diff/1/src/handles.cc#newcode428
src/handles.cc:428: ASSERT(!(object->HasPixelElements() ||
object->HasExternalArrayElements()));
On 2011/01/06 13:36:24, fschneider wrote:
> I like to split asserts so that there is only one condition per assert:
> 
> ASSERT(!object->HasPixelElements());
> ASSERT(!object->HasExternalArrayElements());

Done.

http://codereview.chromium.org/6118001/diff/1/src/handles.h
File src/handles.h (right):

http://codereview.chromium.org/6118001/diff/1/src/handles.h#newcode220
src/handles.h:220: Handle<Object> IgnoreAttributesAndSetLocalProperty(
On 2011/01/06 13:36:24, fschneider wrote:
> Maybe the name should rather be SetLocalPropertyAndIgnoreAttributes?

Changed to SetLocalPropertyIgnoreAttributes. Should it be "IgnoringAttributes"?

Powered by Google App Engine
This is Rietveld 408576698