isolates: rename node::Isolate member isolate_ to v8_isolate_
authorBen Noordhuis <info@bnoordhuis.nl>
Fri, 9 Dec 2011 20:12:48 +0000 (21:12 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 29 Dec 2011 00:56:10 +0000 (01:56 +0100)
src/node_isolate.cc
src/node_isolate.h

index 50d6ded..b6156fd 100644 (file)
@@ -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_);
 }
index 5fe8db9..e24bde1 100644 (file)
@@ -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.