From: Ben Noordhuis Date: Fri, 9 Dec 2011 20:12:48 +0000 (+0100) Subject: isolates: rename node::Isolate member isolate_ to v8_isolate_ X-Git-Tag: v0.7.0~66^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea97d6ed5ff659a48a0fa715fb6572758b7ddd34;p=platform%2Fupstream%2Fnodejs.git isolates: rename node::Isolate member isolate_ to v8_isolate_ --- diff --git a/src/node_isolate.cc b/src/node_isolate.cc index 50d6ded..b6156fd 100644 --- a/src/node_isolate.cc +++ b/src/node_isolate.cc @@ -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_); } diff --git a/src/node_isolate.h b/src/node_isolate.h index 5fe8db9..e24bde1 100644 --- a/src/node_isolate.h +++ b/src/node_isolate.h @@ -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.