Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 7207f8d6378847d7f3da84b7da9ff5a1b142b602..b93460d9a7908efffda7af2468214370c3e4f248 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -1408,7 +1408,7 @@ class MarkCompactMarkingVisitor |
INLINE(static void VisitUnmarkedObject(MarkCompactCollector* collector, |
HeapObject* obj)) { |
#ifdef DEBUG |
- ASSERT(Isolate::Current()->heap()->Contains(obj)); |
+ ASSERT(collector->heap()->Contains(obj)); |
ASSERT(!HEAP->mark_compact_collector()->IsMarked(obj)); |
#endif |
Map* map = obj->map(); |