mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
isolates: rename node::Isolate member isolate_ to v8_isolate_
This commit is contained in:
1 parent
5866f1a9aa
commit
ea97d6ed5f
2 files changed
+9
-9
No files matched your search
+6
-6
@@ -38,14 +38,14 @@ Isolate::Isolate(uv_loop_t* loop) {
|
||||
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_);
|
||||
}
|
||||
|
||||
+3
-3
@@ -57,9 +57,9 @@ public:
|
||||
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.
|
||||
@@ -82,7 +82,7 @@ private:
|
||||
};
|
||||
|
||||
SLIST_HEAD(AtExitCallbacks, AtExitCallbackInfo) at_exit_callbacks_;
|
||||
v8::Isolate* isolate_;
|
||||
v8::Isolate* v8_isolate_;
|
||||
uv_loop_t* loop_;
|
||||
|
||||
// Global variables for this isolate.
|
||||
|
||||
Reference in new issue
Block a user