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

Unified Diff: src/objects-inl.h

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
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 8051a51578ff7474f4d72c829951cbc0b36797c6..ed6906118cd9047b846c9bc4b61c58f491a56ae8 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1072,7 +1072,7 @@ Heap* HeapObject::GetHeap() {
// Assert that we are not in GC, implement GC code in a way that it doesn't
// pull heap from the map.
ASSERT(HEAP->is_safe_to_read_maps());
- return map()->map()->heap();
+ return map()->heap();
}
@@ -2475,8 +2475,6 @@ Code* Code::GetCodeFromTargetAddress(Address address) {
Heap* Map::heap() {
- ASSERT(instance_type() == MAP_TYPE);
- ASSERT(this == map());
Heap* heap = reinterpret_cast<Heap*>(READ_INTPTR_FIELD(this, kHeapOffset));
ASSERT(heap != NULL);
ASSERT(heap->isolate() == Isolate::Current());
« src/mark-compact.cc ('K') | « src/mark-compact.cc ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698