Revision: 4901
Author: [email protected]
Date: Fri Jun 18 14:07:38 2010
Log: Remove unnecessary Isolate::Current() from heap.cc
Use Heap::isolate_ instead.

Review URL: http://codereview.chromium.org/2862015
http://code.google.com/p/v8/source/detail?r=4901

Modified:
 /branches/experimental/isolates/src/heap.cc

=======================================
--- /branches/experimental/isolates/src/heap.cc Fri Jun 18 13:14:40 2010
+++ /branches/experimental/isolates/src/heap.cc Fri Jun 18 14:07:38 2010
@@ -301,7 +301,7 @@


 void Heap::GarbageCollectionPrologue() {
-  Isolate::Current()->transcendental_cache()->Clear();
+  isolate_->transcendental_cache()->Clear();
   ClearJSFunctionResultCaches();
   gc_count_++;
   unflattened_strings_length_ = 0;
@@ -3767,8 +3767,7 @@
   v->VisitPointer(BitCast<Object**, String**>(&hidden_symbol_));
   v->Synchronize("symbol");

-  Isolate* isolate = Isolate::Current();
-  isolate->bootstrapper()->Iterate(v);
+  isolate_->bootstrapper()->Iterate(v);
   v->Synchronize("bootstrapper");
   Top::Iterate(v);
   v->Synchronize("top");
@@ -3783,7 +3782,7 @@
   v->Synchronize("compilationcache");

   // Iterate over local handles in handle scopes.
-  isolate->handle_scope_implementer()->Iterate(v);
+  isolate_->handle_scope_implementer()->Iterate(v);
   v->Synchronize("handlescope");

   // Iterate over the builtin code objects and code stubs in the
@@ -4166,7 +4165,7 @@
 void Heap::PrintHandles() {
   PrintF("Handles:\n");
   PrintHandleVisitor v;
-  Isolate::Current()->handle_scope_implementer()->Iterate(&v);
+  isolate_->handle_scope_implementer()->Iterate(&v);
 }

 #endif

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to