Index: src/extensions/gc-extension.cc |
diff --git a/src/extensions/gc-extension.cc b/src/extensions/gc-extension.cc |
index 036b60cb23151d887f851e2283e62570f5363cae..308879115fce62a8c0395f9de151a00078588880 100644 |
--- a/src/extensions/gc-extension.cc |
+++ b/src/extensions/gc-extension.cc |
@@ -39,10 +39,11 @@ v8::Handle<v8::FunctionTemplate> GCExtension::GetNativeFunction( |
void GCExtension::GC(const v8::FunctionCallbackInfo<v8::Value>& args) { |
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); |
if (args[0]->BooleanValue()) { |
- HEAP->CollectGarbage(NEW_SPACE, "gc extension"); |
+ isolate->heap()->CollectGarbage(NEW_SPACE, "gc extension"); |
} else { |
- HEAP->CollectAllGarbage(Heap::kNoGCFlags, "gc extension"); |
+ isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, "gc extension"); |
} |
} |