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

Issue 3301008: [Isolates] Add heap pointer to all maps and use map->heap() more. (Closed)

Created:
10 years, 3 months ago by Dmitry Titov
Modified:
9 years, 7 months ago
Reviewers:
Vitaly Repeshko
CC:
v8-dev, yurys
Visibility:
Public.

Description

[Isolates] Add heap pointer to all maps and use map->heap() more. Other changes: 1. Spaces (NewSpace, PagedSpace etc) get heap_ member. 2. MarkCompactCollector already has heap_ - use it more. 3. Made Heap::ScavengeObject() a static to avoid pulling heap pointer until the slow path is taken. 4. Changed HEAP_PROFILE(Call) macro to be HEAP_PROFILE(heap, call) to avoid 2 Isolate::Current() that it had. 5. Heap::IterateDirtyRegions now passes heap pointer to a callback. 6. ScavengingVisitor::EvacuateObject and others use map->heap() to retrieve heap during GC. Committed: http://code.google.com/p/v8/source/detail?r=5443

Patch Set 1 #

Patch Set 2 : Cleanup after merge #

Patch Set 3 : remove couple more "HEAP->" #

Patch Set 4 : even more #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -202 lines) Patch
M src/heap.h View 1 5 chunks +9 lines, -6 lines 0 comments Download
M src/heap.cc View 1 2 24 chunks +55 lines, -44 lines 3 comments Download
M src/heap-inl.h View 1 2 chunks +7 lines, -2 lines 0 comments Download
M src/heap-profiler.h View 2 chunks +10 lines, -10 lines 1 comment Download
M src/heap-profiler.cc View 1 chunk +1 line, -3 lines 0 comments Download
M src/mark-compact.cc View 1 10 chunks +35 lines, -33 lines 1 comment Download
M src/objects-inl.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M src/serialize.cc View 1 2 3 1 chunk +2 lines, -6 lines 0 comments Download
M src/spaces.h View 1 10 chunks +31 lines, -16 lines 0 comments Download
M src/spaces.cc View 1 42 chunks +80 lines, -76 lines 0 comments Download
M test/cctest/test-spaces.cc View 3 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Dmitry Titov
10 years, 3 months ago (2010-09-02 02:42:43 UTC) #1
Dmitry Titov
Ready for a look.
10 years, 3 months ago (2010-09-10 02:27:45 UTC) #2
Vitaly Repeshko
LGTM! http://codereview.chromium.org/3301008/diff/5002/12003 File src/heap-profiler.h (right): http://codereview.chromium.org/3301008/diff/5002/12003#newcode45 src/heap-profiler.h:45: if (profiler && profiler->is_profiling()) { \ nit: Use ...
10 years, 3 months ago (2010-09-10 12:35:25 UTC) #3
Dmitry Titov
10 years, 3 months ago (2010-09-10 18:53:06 UTC) #4
Thanks!

Fixed all except making MarkCompactCollector::Relocate* non-static - will post
another patch for that.

Powered by Google App Engine
This is Rietveld 408576698