|
@ -215,6 +215,16 @@ Handle<Value> Isolate::Send(const Arguments& args) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Handle<Value> Isolate::Unref(const Arguments& args) { |
|
|
|
|
|
HandleScope scope; |
|
|
|
|
|
|
|
|
|
|
|
Isolate* isolate = Isolate::GetCurrent(); |
|
|
|
|
|
uv_unref(isolate->loop_); |
|
|
|
|
|
|
|
|
|
|
|
return Undefined(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Isolate::OnMessage(IsolateMessage* msg, void* arg) { |
|
|
void Isolate::OnMessage(IsolateMessage* msg, void* arg) { |
|
|
HandleScope scope; |
|
|
HandleScope scope; |
|
|
|
|
|
|
|
@ -270,6 +280,11 @@ Isolate::Isolate() { |
|
|
assert(v8_isolate_->GetData() == NULL); |
|
|
assert(v8_isolate_->GetData() == NULL); |
|
|
v8_isolate_->SetData(this); |
|
|
v8_isolate_->SetData(this); |
|
|
|
|
|
|
|
|
|
|
|
// Artificially ref the isolate loop so that the child
|
|
|
|
|
|
// isolate stays alive by default. process.exit will
|
|
|
|
|
|
// unref the loop (see Isolate::Unref).
|
|
|
|
|
|
uv_ref(loop_); |
|
|
|
|
|
|
|
|
globals_init_ = false; |
|
|
globals_init_ = false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|