Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 4a10550088fb90e0c3e8783558737fce2a202873..e02a5a50786dd8f3c55e87ab9970b56fe490e9d9 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -766,7 +766,7 @@ void Shell::InstallUtilityScript(Isolate* isolate) { |
#ifdef ENABLE_DEBUGGER_SUPPORT |
if (i::FLAG_debugger) printf("JavaScript debugger enabled\n"); |
// Install the debugger object in the utility scope |
- i::Debug* debug = i::Isolate::Current()->debug(); |
+ i::Debug* debug = reinterpret_cast<i::Isolate*>(isolate)->debug(); |
debug->Load(); |
i::Handle<i::JSObject> js_debug |
= i::Handle<i::JSObject>(debug->debug_context()->global_object()); |
@@ -935,7 +935,7 @@ Local<Context> Shell::CreateEvaluationContext(Isolate* isolate) { |
Context::Scope scope(context); |
#ifndef V8_SHARED |
- i::Factory* factory = i::Isolate::Current()->factory(); |
+ i::Factory* factory = reinterpret_cast<i::Isolate*>(isolate)->factory(); |
i::JSArguments js_args = i::FLAG_js_arguments; |
i::Handle<i::FixedArray> arguments_array = |
factory->NewFixedArray(js_args.argc()); |