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

Unified Diff: runtime/vm/thread.h

Issue 982873004: Thread/Isolate refactoring: new(Isolate) -> new(Zone) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 months 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 | « runtime/vm/scanner.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread.h
===================================================================
--- runtime/vm/thread.h (revision 44266)
+++ runtime/vm/thread.h (working copy)
@@ -20,6 +20,11 @@
// own thread-local storage key.
return reinterpret_cast<Thread*>(Isolate::Current());
}
+ // TODO(koda): Remove after pivoting to Thread* in native/runtime entries.
+ static Thread* CurrentFromCurrentIsolate(BaseIsolate* isolate) {
+ ASSERT(Isolate::Current() == isolate);
+ return reinterpret_cast<Thread*>(isolate);
+ }
// The topmost zone used for allocation in this thread.
Zone* zone() {
« no previous file with comments | « runtime/vm/scanner.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698