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

Issue 980573002: Simplify and compact transitions storage (Closed)

Created:
5 years, 9 months ago by Jakob Kummerow
Modified:
5 years, 9 months ago
Reviewers:
ulan, Toon Verwaest
CC:
v8-dev, ulan
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Simplify and compact transitions storage Simple transitions are now stored in a map's "transitions" field (as a WeakCell wrapping the target map); full TransitionArrays are used when that's not sufficient. To encapsulate these storage format implementation details, functions for manipulating and querying transitions have been refactored to be static functions on the TransitionArray class, and take maps as inputs. Committed: https://crrev.com/45fbef7f2252fce10634931cb103ccc1fc95ae6a Cr-Commit-Position: refs/heads/master@{#27029}

Patch Set 1 #

Total comments: 22

Patch Set 2 : addressed comments #

Patch Set 3 : cleaned up ClearMapTransitions() as discussed #

Patch Set 4 : fix -Werror=pedantic ( rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+964 lines, -985 lines) Patch
M src/heap-snapshot-generator.cc View 1 chunk +16 lines, -13 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download
M src/heap/mark-compact.h View 1 chunk +1 line, -1 line 0 comments Download
M src/heap/mark-compact.cc View 1 2 3 8 chunks +44 lines, -24 lines 0 comments Download
M src/heap/objects-visiting-inl.h View 2 chunks +10 lines, -17 lines 0 comments Download
M src/hydrogen.h View 1 chunk +4 lines, -3 lines 0 comments Download
M src/json-parser.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M src/objects.h View 1 2 3 8 chunks +8 lines, -83 lines 0 comments Download
M src/objects.cc View 1 2 3 27 chunks +95 lines, -197 lines 0 comments Download
M src/objects-debug.cc View 3 chunks +19 lines, -8 lines 0 comments Download
M src/objects-inl.h View 1 2 3 6 chunks +9 lines, -170 lines 0 comments Download
M src/objects-printer.cc View 5 chunks +20 lines, -16 lines 0 comments Download
M src/transitions.h View 1 4 chunks +174 lines, -123 lines 0 comments Download
M src/transitions.cc View 1 3 chunks +405 lines, -116 lines 0 comments Download
M src/transitions-inl.h View 3 chunks +26 lines, -91 lines 0 comments Download
M test/cctest/test-heap.cc View 6 chunks +15 lines, -8 lines 0 comments Download
M test/cctest/test-migrations.cc View 3 chunks +10 lines, -8 lines 0 comments Download
M test/cctest/test-transitions.cc View 10 chunks +99 lines, -98 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
Jakob Kummerow
Toon, PTAL. Ulan: FYI. Sorry that the patch is so large; I don't see a ...
5 years, 9 months ago (2015-03-04 12:05:35 UTC) #2
Toon Verwaest
Overall looks like a big improvement. Some nits, plus as discussed, I'd prefer it if ...
5 years, 9 months ago (2015-03-05 13:18:54 UTC) #3
Jakob Kummerow
Addressed your comments. As discussed offline, I'd prefer to do the raw_transitions -> map API ...
5 years, 9 months ago (2015-03-05 15:26:37 UTC) #4
Toon Verwaest
lgtm
5 years, 9 months ago (2015-03-05 16:20:45 UTC) #5
ulan
gc parts lgtm
5 years, 9 months ago (2015-03-05 16:24:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/980573002/60001
5 years, 9 months ago (2015-03-05 17:57:45 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_gcc_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_gcc_compile_rel/builds/445)
5 years, 9 months ago (2015-03-05 18:09:58 UTC) #13
Jakob Kummerow
For the record: patch set 4 includes a rebase (sorry!); the real diff to patch ...
5 years, 9 months ago (2015-03-05 19:45:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/980573002/80001
5 years, 9 months ago (2015-03-05 19:45:57 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 9 months ago (2015-03-05 20:09:33 UTC) #18
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/45fbef7f2252fce10634931cb103ccc1fc95ae6a Cr-Commit-Position: refs/heads/master@{#27029}
5 years, 9 months ago (2015-03-05 20:09:56 UTC) #19
Jakob Kummerow
5 years, 9 months ago (2015-03-05 20:39:38 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:80001) has been created in
https://codereview.chromium.org/982143002/ by jkummerow@chromium.org.

The reason for reverting is: x64 test failures.

Powered by Google App Engine
This is Rietveld 408576698