Index: src/mksnapshot.cc |
diff --git a/src/mksnapshot.cc b/src/mksnapshot.cc |
index 156cd77c3e95bb7e4f7e3f1a1c0503a6fd8383d8..efd6e791df964949805705499a56b09ec2e6c6ef 100644 |
--- a/src/mksnapshot.cc |
+++ b/src/mksnapshot.cc |
@@ -397,7 +397,8 @@ int main(int argc, char** argv) { |
} |
// If we don't do this then we end up with a stray root pointing at the |
// context even after we have disposed of the context. |
- HEAP->CollectAllGarbage(i::Heap::kNoGCFlags, "mksnapshot"); |
+ internal_isolate->heap()->CollectAllGarbage( |
+ i::Heap::kNoGCFlags, "mksnapshot"); |
i::Object* raw_context = *v8::Utils::OpenPersistent(context); |
context.Dispose(); |
CppByteSink sink(argv[1]); |