Index: runtime/vm/native_entry.h |
diff --git a/runtime/vm/native_entry.h b/runtime/vm/native_entry.h |
index 3db849c54a30b04ee8463410dec01471af955296..45dd5c9fdc1bce83140d08273b11aad74fc4b38f 100644 |
--- a/runtime/vm/native_entry.h |
+++ b/runtime/vm/native_entry.h |
@@ -51,10 +51,9 @@ typedef void (*NativeFunction)(NativeArguments* arguments); |
ASSERT(arguments->NativeArgCount() == argument_count); \ |
TRACE_NATIVE_CALL("%s", ""#name); \ |
{ \ |
- Isolate* isolate = arguments->isolate(); \ |
- /* TODO(koda): Pivot from Isolate to Thread in NativeArguments. */ \ |
- Thread* thread = isolate->mutator_thread(); \ |
+ Thread* thread = arguments->thread(); \ |
ASSERT(thread == Thread::Current()); \ |
+ Isolate* isolate = thread->isolate(); \ |
StackZone zone(isolate); \ |
SET_NATIVE_RETVAL(arguments, \ |
DN_Helper##name(isolate, \ |