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

Issue 3089005: [Isolates] Add a pointer to Heap to a meta map. (Closed)

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

Description

[Isolates] Add a pointer to Heap to a meta map. Committed: http://code.google.com/p/v8/source/detail?r=5202

Patch Set 1 #

Patch Set 2 : Made Heap pointer share space with Scavenger #

Total comments: 1

Patch Set 3 : Now with GC fixes. #

Patch Set 4 : unrig scons file #

Patch Set 5 : remove a duplicate method #

Total comments: 12

Patch Set 6 : review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -54 lines) Patch
M src/heap.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/heap.cc View 1 2 3 4 5 2 chunks +7 lines, -3 lines 0 comments Download
M src/heap-inl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/mark-compact.cc View 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 chunks +17 lines, -3 lines 0 comments Download
M src/objects.cc View 3 4 5 5 chunks +7 lines, -6 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 22 chunks +86 lines, -38 lines 0 comments Download
M src/serialize.cc View 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Dmitry Titov
Also modified calls in objects-inl.h to use this new method to retrieve a heap. This ...
10 years, 4 months ago (2010-08-04 01:26:09 UTC) #1
Vitaly Repeshko
1. You changed the layout of all maps (not just the meta-map), so you could ...
10 years, 4 months ago (2010-08-04 18:15:43 UTC) #2
Dmitry Titov
Updated the patch to use the Scavenger field for Heap in the meta map. This ...
10 years, 4 months ago (2010-08-05 02:30:07 UTC) #3
Dmitry Titov
the stuff we call during GC is numerous... Look at Map::CreateBackPointers() for example. Maybe I ...
10 years, 4 months ago (2010-08-05 02:56:09 UTC) #4
zarko
http://codereview.chromium.org/3089005/diff/4001/5003 File src/isolate.h (right): http://codereview.chromium.org/3089005/diff/4001/5003#newcode1028 src/isolate.h:1028: #define GET_ISOLATE(heap_pointer) ((Isolate*)( \ Would it be better to ...
10 years, 4 months ago (2010-08-05 21:04:23 UTC) #5
Dmitry Titov
On 2010/08/05 21:04:23, zarko wrote: > http://codereview.chromium.org/3089005/diff/4001/5003 > File src/isolate.h (right): > > http://codereview.chromium.org/3089005/diff/4001/5003#newcode1028 > ...
10 years, 4 months ago (2010-08-05 21:19:38 UTC) #6
Dmitry Titov
/noons/nouns/
10 years, 4 months ago (2010-08-05 21:21:24 UTC) #7
Dmitry Titov
I think I've addressed Vitaly's comments, it is ready for another look. 1. The heap ...
10 years, 4 months ago (2010-08-05 23:39:20 UTC) #8
Dmitry Titov
Also: from chat with Luke, we think GET_ISOLATE should be ISOLATE_FROM_HEAP, I'll rename (or merge ...
10 years, 4 months ago (2010-08-06 20:07:09 UTC) #9
Vitaly Repeshko
LGTM! (with comments:) Thanks, Vitaly http://codereview.chromium.org/3089005/diff/7002/16001 File src/heap.cc (right): http://codereview.chromium.org/3089005/diff/7002/16001#newcode1363 src/heap.cc:1363: reinterpret_cast<Map*>(result)->set_bit_field2(0); It'd be nice ...
10 years, 4 months ago (2010-08-06 20:40:46 UTC) #10
Dmitry Titov
10 years, 4 months ago (2010-08-06 22:48:41 UTC) #11
Great comments, thanks!
Fixed all, except:

> 2. You can use OFFSET_OF (from globals.h) in its implementation (maybe modulo
a
> friend declaration).

This indeed would require making Isoalte::heap_ public or making these big
classes friends, neither is especially nice. Made it Heap::isolate() and used
C++ casts though.

Powered by Google App Engine
This is Rietveld 408576698