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

Unified Diff: src/serialize.cc

Issue 3301008: [Isolates] Add heap pointer to all maps and use map->heap() more. (Closed)
Patch Set: even more Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/mark-compact.cc ('K') | « src/objects-inl.h ('k') | src/spaces.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/serialize.cc
diff --git a/src/serialize.cc b/src/serialize.cc
index 4ae765e411f0e68f735670aad077367d3400e48a..8284916122131cfac50ce565cf16e29540604c47 100644
--- a/src/serialize.cc
+++ b/src/serialize.cc
@@ -686,15 +686,11 @@ void Deserializer::ReadObject(int space_number,
}
ReadChunk(current, limit, space_number, address);
- if (space == HEAP->map_space()) {
+ if (space == space->heap()->map_space()) {
ASSERT(size == Map::kSize);
HeapObject* obj = HeapObject::FromAddress(address);
Map* map = reinterpret_cast<Map*>(obj);
- if (map->instance_type() == MAP_TYPE) {
- // Meta map has Heap pointer instead of scavenger.
- ASSERT(map == map->map());
- map->set_heap(HEAP);
- }
+ map->set_heap(space->heap());
}
}
« src/mark-compact.cc ('K') | « src/objects-inl.h ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698