Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 0a38fa9f32b2b3e3932a178d756c80b44b1a0c1e..415bd41bb19496036f3bda9a6c78ac55ec033ecd 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -5424,7 +5424,6 @@ Local<Context> v8::Context::New( |
v8::ExtensionConfiguration* extensions, |
v8::Handle<ObjectTemplate> global_template, |
v8::Handle<Value> global_object) { |
- i::Isolate::EnsureDefaultIsolate(); |
Sven Panne
2013/09/19 06:42:36
Let's hope that there are no arcane assumptions in
|
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(external_isolate); |
EnsureInitializedForIsolate(isolate, "v8::Context::New()"); |
LOG_API(isolate, "Context::New"); |
@@ -6768,7 +6767,6 @@ void V8::RemoveMemoryAllocationCallback(MemoryAllocationCallback callback) { |
void V8::AddCallCompletedCallback(CallCompletedCallback callback) { |
if (callback == NULL) return; |
- i::Isolate::EnsureDefaultIsolate(); |
i::Isolate* isolate = i::Isolate::Current(); |
if (IsDeadCheck(isolate, "v8::V8::AddLeaveScriptCallback()")) return; |
i::V8::AddCallCompletedCallback(callback); |
@@ -6776,7 +6774,6 @@ void V8::AddCallCompletedCallback(CallCompletedCallback callback) { |
void V8::RemoveCallCompletedCallback(CallCompletedCallback callback) { |
- i::Isolate::EnsureDefaultIsolate(); |
i::Isolate* isolate = i::Isolate::Current(); |
if (IsDeadCheck(isolate, "v8::V8::RemoveLeaveScriptCallback()")) return; |
i::V8::RemoveCallCompletedCallback(callback); |
@@ -7083,6 +7080,16 @@ void Debug::SetMessageHandler2(v8::Debug::MessageHandler2 handler) { |
} |
+void Debug::SendCommand(Isolate* isolate, |
+ const uint16_t* command, |
+ int length, |
+ ClientData* client_data) { |
+ i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate); |
+ internal_isolate->debugger()->ProcessCommand( |
+ i::Vector<const uint16_t>(command, length), client_data); |
+} |
+ |
+ |
void Debug::SendCommand(const uint16_t* command, int length, |
ClientData* client_data, |
Isolate* isolate) { |