Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1084)

Unified Diff: src/isolate.h

Issue 1467973002: Inline Isolate::UncheckedCurrent into isolate.cc (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 6a20c3e916633af6dca677d5cb22907da205ffa9..bc564979df98585660a30034c062e6b5ecdbbd46 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -481,14 +481,9 @@ class Isolate {
return isolate;
}
- INLINE(static Isolate* UncheckedCurrent()) {
- DCHECK(base::NoBarrier_Load(&isolate_key_created_) == 1);
- return reinterpret_cast<Isolate*>(
- base::Thread::GetThreadLocal(isolate_key_));
- }
-
- // Like UncheckedCurrent, but skips the check that |isolate_key_| was
- // initialized. Callers have to ensure that themselves.
+ // Like Current, but skips the check that |isolate_key_| was initialized.
+ // Callers have to ensure that themselves.
+ // DO NOT USE. The only remaining callsite will be deleted soon.
INLINE(static Isolate* UnsafeCurrent()) {
return reinterpret_cast<Isolate*>(
base::Thread::GetThreadLocal(isolate_key_));
« no previous file with comments | « no previous file | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698