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

Unified Diff: runtime/vm/native_entry.h

Issue 1037453002: Split Thread/Isolate instances, but still maintain 1:1 relationship. (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
Index: runtime/vm/native_entry.h
===================================================================
--- runtime/vm/native_entry.h (revision 44671)
+++ runtime/vm/native_entry.h (working copy)
@@ -53,7 +53,8 @@
{ \
Isolate* isolate = arguments->isolate(); \
/* TODO(koda): Pivot from Isolate to Thread in NativeArguments. */ \
- Thread* thread = Thread::CurrentFromCurrentIsolate(isolate); \
+ Thread* thread = isolate->main_thread(); \
+ ASSERT(thread == Thread::Current()); \
StackZone zone(isolate); \
SET_NATIVE_RETVAL(arguments, \
DN_Helper##name(isolate, \

Powered by Google App Engine
This is Rietveld 408576698