Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index ea25bdb69869208c12021b3c6ba1bf4e663efd56..6d8a13be20b001f4c8cf6f6da5a0f02d6d859e7a 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -1212,12 +1212,12 @@ void Heap::ClearNormalizedMapCaches() { |
} |
Object* context = native_contexts_list(); |
- while (!context->IsUndefined()) { |
+ while (!context->IsUndefined(isolate())) { |
// GC can happen when the context is not fully initialized, |
// so the cache can be undefined. |
Object* cache = |
Context::cast(context)->get(Context::NORMALIZED_MAP_CACHE_INDEX); |
- if (!cache->IsUndefined()) { |
+ if (!cache->IsUndefined(isolate())) { |
NormalizedMapCache::cast(cache)->Clear(); |
} |
context = Context::cast(context)->next_context_link(); |