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

Issue 10444055: Promoting elements transitions to their own field. (Closed)

Created:
8 years, 6 months ago by Toon Verwaest
Modified:
8 years, 6 months ago
Reviewers:
danno
CC:
v8-dev
Visibility:
Public.

Description

Promoting elements transitions to their own field. This is a first step towards separating all transitions from the property descriptions. If we link the property descriptions from the transition object, this will in allow the descriptor array (property descriptions) to become immutable. Committed: https://code.google.com/p/v8/source/detail?r=11750

Patch Set 1 #

Patch Set 2 : Migrating arm & ia32 to new API #

Patch Set 3 : Refactoring add/lookup elements-transitions #

Patch Set 4 : Expose only stepwise addition for set_initial_map_and_cache_transitions #

Patch Set 5 : migrating mips #

Patch Set 6 : improving search, adding separate unsorted search for CopyAppend #

Patch Set 7 : full patch #

Total comments: 26

Patch Set 8 : handling danno's comments #

Total comments: 8

Patch Set 9 : renaming SearchMode fields and moving it into descriptor array class #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -422 lines) Patch
M src/arm/macro-assembler-arm.cc View 1 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/ast.cc View 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -3 lines 0 comments Download
M src/heap.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/ic.cc View 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M src/mark-compact.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -6 lines 0 comments Download
M src/mips/macro-assembler-mips.cc View 1 2 3 4 6 1 chunk +1 line, -1 line 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 11 chunks +46 lines, -23 lines 1 comment Download
M src/objects.cc View 1 2 3 4 5 6 7 8 29 chunks +166 lines, -305 lines 1 comment Download
M src/objects-debug.cc View 2 3 4 5 6 1 chunk +0 lines, -15 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 7 chunks +49 lines, -14 lines 0 comments Download
M src/objects-printer.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -19 lines 0 comments Download
M src/profile-generator.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M src/property.h View 2 3 4 5 6 3 chunks +0 lines, -10 lines 0 comments Download
M src/property.cc View 2 3 4 5 6 2 chunks +0 lines, -7 lines 0 comments Download
M src/property-details.h View 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Toon Verwaest
Promoting elements transition is the first step to extracting all transitions from the descriptor array. ...
8 years, 6 months ago (2012-05-29 15:04:31 UTC) #1
danno
http://codereview.chromium.org/10444055/diff/4005/src/factory.cc File src/factory.cc (right): http://codereview.chromium.org/10444055/diff/4005/src/factory.cc#newcode918 src/factory.cc:918: if (LinearSearchUnsorted(*result, *key, descriptor_count) == Add a enum { ...
8 years, 6 months ago (2012-06-01 13:49:55 UTC) #2
Toon Verwaest
Addressed comments, please take a look https://chromiumcodereview.appspot.com/10444055/diff/4005/src/factory.cc File src/factory.cc (right): https://chromiumcodereview.appspot.com/10444055/diff/4005/src/factory.cc#newcode918 src/factory.cc:918: if (LinearSearchUnsorted(*result, *key, ...
8 years, 6 months ago (2012-06-04 09:17:48 UTC) #3
danno
https://chromiumcodereview.appspot.com/10444055/diff/16001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://chromiumcodereview.appspot.com/10444055/diff/16001/src/bootstrapper.cc#newcode1635 src/bootstrapper.cc:1635: array_function->initial_map()->CopyDropTransitions(MAYBE_SHARED); I think you mean MAY_BE_SHARED https://chromiumcodereview.appspot.com/10444055/diff/16001/src/objects.h File src/objects.h ...
8 years, 6 months ago (2012-06-04 13:52:13 UTC) #4
Toon Verwaest
Addressed comments, please take a look again. https://chromiumcodereview.appspot.com/10444055/diff/16001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://chromiumcodereview.appspot.com/10444055/diff/16001/src/bootstrapper.cc#newcode1635 src/bootstrapper.cc:1635: array_function->initial_map()->CopyDropTransitions(MAYBE_SHARED); On ...
8 years, 6 months ago (2012-06-04 15:03:19 UTC) #5
danno
8 years, 6 months ago (2012-06-06 09:25:12 UTC) #6
LGTM with a few nits

http://codereview.chromium.org/10444055/diff/17024/src/objects.cc
File src/objects.cc (right):

http://codereview.chromium.org/10444055/diff/17024/src/objects.cc#newcode5843
src/objects.cc:5843: : CANNOT_BE_SHARED);
nit: strange formatting. Put the *_SHARED value into a temporary variable
immediately before.

http://codereview.chromium.org/10444055/diff/17024/src/objects.h
File src/objects.h (right):

http://codereview.chromium.org/10444055/diff/17024/src/objects.h#newcode173
src/objects.h:173: // descriptor array as input.
nit: remove the reference to descriptor if you want to make this a general enum.

Powered by Google App Engine
This is Rietveld 408576698