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

Issue 1488593003: Optimize clearing of map transitions. (Closed)

Created:
5 years ago by ulan
Modified:
5 years ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Optimize clearing of map transitions. Instead of iterating the whole map space to find dead transitions, look in weak cell list and transition array list. Simple transitions are in the weak cell list. Full transitions are in the transitions array list. BUG=chromium:554488 LOG=NO Committed: https://crrev.com/8c376b4635831ff28bb4a04f3859ad7e51c17e8b Cr-Commit-Position: refs/heads/master@{#32684}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : base #

Total comments: 13

Patch Set 4 : Address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -241 lines) Patch
M src/heap/gc-tracer.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M src/heap/gc-tracer.cc View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/heap/incremental-marking.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M src/heap/mark-compact.h View 1 2 3 3 chunks +15 lines, -13 lines 0 comments Download
M src/heap/mark-compact.cc View 1 2 3 7 chunks +166 lines, -179 lines 0 comments Download
M src/heap/objects-visiting.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M src/heap/objects-visiting-inl.h View 1 2 3 4 chunks +10 lines, -26 lines 0 comments Download
M src/objects.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/objects-inl.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M src/snapshot/serialize.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (7 generated)
ulan
PTAL https://codereview.chromium.org/1488593003/diff/40001/src/heap/mark-compact.cc File src/heap/mark-compact.cc (left): https://codereview.chromium.org/1488593003/diff/40001/src/heap/mark-compact.cc#oldcode1997 src/heap/mark-compact.cc:1997: if (Marking::IsWhite(map_mark)) { This code moved to ClearWeakCells ...
5 years ago (2015-12-01 10:13:15 UTC) #3
Yang
https://codereview.chromium.org/1488593003/diff/40001/src/snapshot/serialize.cc File src/snapshot/serialize.cc (right): https://codereview.chromium.org/1488593003/diff/40001/src/snapshot/serialize.cc#newcode1977 src/snapshot/serialize.cc:1977: weak_cell_->clear_next(object->GetHeap()->the_hole_value()); Why does the caller need to know with ...
5 years ago (2015-12-01 11:21:40 UTC) #5
ulan
https://codereview.chromium.org/1488593003/diff/40001/src/snapshot/serialize.cc File src/snapshot/serialize.cc (right): https://codereview.chromium.org/1488593003/diff/40001/src/snapshot/serialize.cc#newcode1977 src/snapshot/serialize.cc:1977: weak_cell_->clear_next(object->GetHeap()->the_hole_value()); On 2015/12/01 11:21:40, Yang wrote: > Why does ...
5 years ago (2015-12-01 12:49:52 UTC) #6
Yang
On 2015/12/01 12:49:52, ulan wrote: > https://codereview.chromium.org/1488593003/diff/40001/src/snapshot/serialize.cc > File src/snapshot/serialize.cc (right): > > https://codereview.chromium.org/1488593003/diff/40001/src/snapshot/serialize.cc#newcode1977 > ...
5 years ago (2015-12-01 13:13:41 UTC) #7
Hannes Payer (out of office)
lgtm https://codereview.chromium.org/1488593003/diff/40001/src/heap/gc-tracer.h File src/heap/gc-tracer.h (right): https://codereview.chromium.org/1488593003/diff/40001/src/heap/gc-tracer.h#newcode136 src/heap/gc-tracer.h:136: MC_CLEAR_DEPENDENT_CODE, at one point we should create an ...
5 years ago (2015-12-08 14:19:41 UTC) #8
ulan
Thanks for review! https://codereview.chromium.org/1488593003/diff/40001/src/heap/gc-tracer.h File src/heap/gc-tracer.h (right): https://codereview.chromium.org/1488593003/diff/40001/src/heap/gc-tracer.h#newcode136 src/heap/gc-tracer.h:136: MC_CLEAR_DEPENDENT_CODE, On 2015/12/08 14:19:41, Hannes Payer ...
5 years ago (2015-12-08 16:25:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1488593003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1488593003/60001
5 years ago (2015-12-08 17:06:49 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-08 20:51:04 UTC) #14
commit-bot: I haz the power
5 years ago (2015-12-08 20:52:07 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8c376b4635831ff28bb4a04f3859ad7e51c17e8b
Cr-Commit-Position: refs/heads/master@{#32684}

Powered by Google App Engine
This is Rietveld 408576698