| Index: src/mark-compact.cc
|
| diff --git a/src/mark-compact.cc b/src/mark-compact.cc
|
| index 022636d70b83da1131610131efa6b502c7cc921b..08cf7d79e4f6aea650ab88bded3359ba93785ae6 100644
|
| --- a/src/mark-compact.cc
|
| +++ b/src/mark-compact.cc
|
| @@ -668,9 +668,10 @@ class StaticMarkingVisitor : public StaticVisitorBase {
|
| if (!ctx->IsHeapObject()) return false;
|
|
|
| Map* map = SafeMap(ctx);
|
| - if (!(map == HEAP->raw_unchecked_context_map() ||
|
| - map == HEAP->raw_unchecked_catch_context_map() ||
|
| - map == HEAP->raw_unchecked_global_context_map())) {
|
| + Heap* heap = map->heap();
|
| + if (!(map == heap->raw_unchecked_context_map() ||
|
| + map == heap->raw_unchecked_catch_context_map() ||
|
| + map == heap->raw_unchecked_global_context_map())) {
|
| return false;
|
| }
|
|
|
|
|