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

Issue 2088223002: [heap] Modernize all *Page iterators to be proper C++ iterators (Closed)

Created:
4 years, 6 months ago by Michael Lippautz
Modified:
4 years, 6 months ago
CC:
Hannes Payer (out of office), ulan, 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

[heap] Modernize all *Page iterators to be proper C++ iterators As part of the page type unification also unify page iterators. Iterating over a space works the same for all spaces now (new, old, lo). Iterating over pages of a space follows now the regular C++ iterator pattern: - for (auto it = space->begin(); it != space->end(); ++it) {} - for (Page* p : *space) {} GC only: Loop supporting unlinking/freeing of a Page on the fly: for (auto it = space->begin(); != space->end();) { Page* p = *(it++); p->Unlink(); } For iteration of a range of new space pages use NewSpacePageRange which also verifies that the range is actually a proper new space page range. BUG=chromium:581412 LOG=N Committed: https://crrev.com/4244b989ca7ec6a0889509577af3e7931b4dd6ab Cr-Commit-Position: refs/heads/master@{#37210}

Patch Set 1 #

Patch Set 2 : Unify w/ NewSpacePageIterator #

Patch Set 3 : Unify w/ LargePageIterator #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -288 lines) Patch
M src/heap/array-buffer-tracker.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M src/heap/heap.cc View 1 2 chunks +5 lines, -6 lines 0 comments Download
M src/heap/incremental-marking.cc View 1 2 4 chunks +6 lines, -18 lines 0 comments Download
M src/heap/mark-compact.cc View 1 15 chunks +27 lines, -56 lines 0 comments Download
M src/heap/remembered-set.cc View 1 chunk +1 line, -4 lines 0 comments Download
M src/heap/spaces.h View 1 2 14 chunks +60 lines, -60 lines 0 comments Download
M src/heap/spaces.cc View 1 13 chunks +25 lines, -46 lines 0 comments Download
M src/heap/spaces-inl.h View 1 2 6 chunks +30 lines, -85 lines 0 comments Download
M src/snapshot/deserializer.cc View 1 chunk +1 line, -3 lines 0 comments Download
M test/cctest/heap/heap-utils.cc View 2 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 37 (28 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2088223002/80001
4 years, 6 months ago (2016-06-23 08:03:17 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-23 08:41:26 UTC) #25
Michael Lippautz
wdyt?
4 years, 6 months ago (2016-06-23 09:09:47 UTC) #28
Michael Lippautz
wdyt?
4 years, 6 months ago (2016-06-23 09:09:47 UTC) #29
jochen (gone - plz use gerrit)
yay, lgtm
4 years, 6 months ago (2016-06-23 09:11:20 UTC) #30
Yang
On 2016/06/23 09:09:47, Michael Lippautz wrote: > wdyt? src/snapshot lgtm.
4 years, 6 months ago (2016-06-23 09:11:23 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2088223002/80001
4 years, 6 months ago (2016-06-23 09:53:20 UTC) #33
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 6 months ago (2016-06-23 09:55:26 UTC) #35
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 09:57:21 UTC) #37
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4244b989ca7ec6a0889509577af3e7931b4dd6ab
Cr-Commit-Position: refs/heads/master@{#37210}

Powered by Google App Engine
This is Rietveld 408576698