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

Issue 9320066: Removed IsTransitionType predicate. (Closed)

Created:
8 years, 10 months ago by Sven Panne
Modified:
8 years, 10 months ago
Reviewers:
Jakob Kummerow
CC:
v8-dev
Visibility:
Public.

Description

Removed IsTransitionType predicate. With the upcoming changes to CALLBACKS properties, a predicate on the transition type alone doesn't make sense anymore: For CALLBACKS one has to look into the property's value to decide, and there is even the possibility of having a an accessor function *and* a transition in the same property. I am not completely happy with some parts of this CL, because they contain redundant code, but given the various representations we currently have for property type/value pairs, I can see no easy way around that. Perhaps one can improve this a bit in a different CL, the current diversity really, really hurts productivity... As a bonus, this CL includes a few minor things: * CaseClause::RecordTypeFeedback has been cleaned up and it handles the NULL_DESCRIPTOR case correctly now. Under some (very unlikely) circumstances, we previously missed some opportunities for monomorphic calls. In general, it is rather unfortunate that NULL_DESCRIPTOR "shines through", it is just a hack for the inability to remove a descriptor entry during GC, something callers shouldn't have to be aware of. * DescriptorArray::CopyInsert has been cleaned up a bit, preparing it for later CALLBACKS-related changes. * LookupResult::Print is now more informative for CONSTANT_TRANSITION. Committed: https://code.google.com/p/v8/source/detail?r=10600

Patch Set 1 #

Total comments: 16
Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -70 lines) Patch
M src/ast.cc View 1 chunk +17 lines, -18 lines 0 comments Download
M src/objects.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/objects.cc View 8 chunks +38 lines, -22 lines 4 comments Download
M src/objects-inl.h View 1 chunk +22 lines, -2 lines 2 comments Download
M src/property.h View 2 chunks +5 lines, -1 line 2 comments Download
M src/property.cc View 2 chunks +27 lines, -0 lines 6 comments Download
M src/property-details.h View 2 chunks +0 lines, -26 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Sven Panne
8 years, 10 months ago (2012-02-03 12:34:13 UTC) #1
Jakob Kummerow
LGTM. http://codereview.chromium.org/9320066/diff/1/src/objects-inl.h File src/objects-inl.h (right): http://codereview.chromium.org/9320066/diff/1/src/objects-inl.h#newcode2014 src/objects-inl.h:2014: UNREACHABLE(); // keep the compiler happy nit: Leading ...
8 years, 10 months ago (2012-02-03 13:17:13 UTC) #2
Sven Panne
8 years, 10 months ago (2012-02-03 13:33:14 UTC) #3
http://codereview.chromium.org/9320066/diff/1/src/objects-inl.h
File src/objects-inl.h (right):

http://codereview.chromium.org/9320066/diff/1/src/objects-inl.h#newcode2014
src/objects-inl.h:2014: UNREACHABLE();  // keep the compiler happy
On 2012/02/03 13:17:14, Jakob wrote:
> nit: Leading capital letter and trailing period.

Done.

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

http://codereview.chromium.org/9320066/diff/1/src/objects.cc#newcode11143
src/objects.cc:11143: case INTERCEPTOR:
On 2012/02/03 13:17:14, Jakob wrote:
> nit: indentation

Done.

http://codereview.chromium.org/9320066/diff/1/src/objects.cc#newcode11147
src/objects.cc:11147: UNREACHABLE();  // keep the compiler happy
On 2012/02/03 13:17:14, Jakob wrote:
> Missing capital and period.

Done.

http://codereview.chromium.org/9320066/diff/1/src/property-details.h
File src/property-details.h (right):

http://codereview.chromium.org/9320066/diff/1/src/property-details.h#newcode1
src/property-details.h:1: // Copyright 2011 the V8 project authors. All rights
reserved.
On 2012/02/03 13:17:14, Jakob wrote:
> nit: 2012

Done.

http://codereview.chromium.org/9320066/diff/1/src/property.cc
File src/property.cc (right):

http://codereview.chromium.org/9320066/diff/1/src/property.cc#newcode1
src/property.cc:1: // Copyright 2011 the V8 project authors. All rights
reserved.
On 2012/02/03 13:17:14, Jakob wrote:
> nit: 2012

Done.

http://codereview.chromium.org/9320066/diff/1/src/property.cc#newcode132
src/property.cc:132: case INTERCEPTOR:
On 2012/02/03 13:17:14, Jakob wrote:
> nit: indentation

Done.

http://codereview.chromium.org/9320066/diff/1/src/property.cc#newcode136
src/property.cc:136: UNREACHABLE();  // keep the compiler happy
On 2012/02/03 13:17:14, Jakob wrote:
> Missing capital letter and period.

Done.

http://codereview.chromium.org/9320066/diff/1/src/property.h
File src/property.h (right):

http://codereview.chromium.org/9320066/diff/1/src/property.h#newcode1
src/property.h:1: // Copyright 2011 the V8 project authors. All rights reserved.
On 2012/02/03 13:17:14, Jakob wrote:
> nit: 2012

Done.

Powered by Google App Engine
This is Rietveld 408576698