Index: src/mark-compact-inl.h |
diff --git a/src/mark-compact-inl.h b/src/mark-compact-inl.h |
index 10773e7202a3ee124cdd8d290411509dd32c7778..321309c60e20136be1a2f25213479d0331ecd73d 100644 |
--- a/src/mark-compact-inl.h |
+++ b/src/mark-compact-inl.h |
@@ -58,7 +58,7 @@ void MarkCompactCollector::MarkObject(HeapObject* obj, MarkBit mark_bit) { |
mark_bit.Set(); |
MemoryChunk::IncrementLiveBytesFromGC(obj->address(), obj->Size()); |
ASSERT(IsMarked(obj)); |
- ASSERT(HEAP->Contains(obj)); |
+ ASSERT(obj->GetIsolate()->heap()->Contains(obj)); |
marking_deque_.PushBlack(obj); |
} |
} |