Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index fc8490d8c006dc2852f13e5ddd60358a8444d3c0..e75bf7e57e8a9e95f3bccb2681038bbb3fcd5688 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -235,7 +235,7 @@ class IncrementalMarkingMarkingVisitor |
// Note that GC can happen when the context is not fully initialized, |
// so the cache can be undefined. |
Object* cache = context->get(Context::NORMALIZED_MAP_CACHE_INDEX); |
- if (!cache->IsUndefined()) { |
+ if (!cache->IsUndefined(map->GetIsolate())) { |
MarkObjectGreyDoNotEnqueue(cache); |
} |
VisitNativeContext(map, context); |
@@ -934,12 +934,12 @@ void IncrementalMarking::Hurry() { |
} |
Object* context = heap_->native_contexts_list(); |
- while (!context->IsUndefined()) { |
+ while (!context->IsUndefined(heap_->isolate())) { |
// GC can happen when the context is not fully initialized, |
// so the cache can be undefined. |
HeapObject* cache = HeapObject::cast( |
Context::cast(context)->get(Context::NORMALIZED_MAP_CACHE_INDEX)); |
- if (!cache->IsUndefined()) { |
+ if (!cache->IsUndefined(heap_->isolate())) { |
MarkBit mark_bit = Marking::MarkBitFrom(cache); |
if (Marking::IsGrey(mark_bit)) { |
Marking::GreyToBlack(mark_bit); |