Revision: 5712
Author: [email protected]
Date: Tue Oct 26 09:22:10 2010
Log: [Isolates] Always inline Isolate::Current().

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

Modified:
 /branches/experimental/isolates/src/isolate.h

=======================================
--- /branches/experimental/isolates/src/isolate.h       Tue Oct 26 06:47:55 2010
+++ /branches/experimental/isolates/src/isolate.h       Tue Oct 26 09:22:10 2010
@@ -374,14 +374,13 @@
   }

   // Returns the isolate inside which the current thread is running.
-  static Isolate* Current() {
-    Isolate* tls_isolate = reinterpret_cast<Isolate*>(
-        Thread::GetThreadLocal(isolate_key_));
-    ASSERT(tls_isolate != NULL);
-    return tls_isolate;
+  INLINE(static Isolate* Current()) {
+    Isolate* isolate = UncheckedCurrent();
+    ASSERT(isolate != NULL);
+    return isolate;
   }

-  static Isolate* UncheckedCurrent() {
+  INLINE(static Isolate* UncheckedCurrent()) {
return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key_));
   }

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

Reply via email to