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, \ |