SLIST_INIT(&at_exit_callbacks_);
loop_ = loop;
- isolate_ = v8::Isolate::GetCurrent();
- if (isolate_ == NULL) {
- isolate_ = v8::Isolate::New();
- isolate_->Enter();
+ v8_isolate_ = v8::Isolate::GetCurrent();
+ if (v8_isolate_ == NULL) {
+ v8_isolate_ = v8::Isolate::New();
+ v8_isolate_->Enter();
}
- assert(isolate_->GetData() == NULL);
- isolate_->SetData(this);
+ assert(v8_isolate_->GetData() == NULL);
+ v8_isolate_->SetData(this);
globals_init(&globals_);
}
return loop_;
}
- operator v8::Isolate*() {
+ v8::Isolate* GetV8Isolate() {
NODE_ISOLATE_CHECK(this);
- return isolate_;
+ return v8_isolate_;
}
/* Register a handler that should run when the current isolate exits.
};
SLIST_HEAD(AtExitCallbacks, AtExitCallbackInfo) at_exit_callbacks_;
- v8::Isolate* isolate_;
+ v8::Isolate* v8_isolate_;
uv_loop_t* loop_;
// Global variables for this isolate.