Index: runtime/vm/native_api_impl.cc |
diff --git a/runtime/vm/native_api_impl.cc b/runtime/vm/native_api_impl.cc |
index a6688976e9924ee175f08f01754ad6959514374d..0fe234f7a5f5e8b2206fbbd548e04934b976eaf7 100644 |
--- a/runtime/vm/native_api_impl.cc |
+++ b/runtime/vm/native_api_impl.cc |
@@ -92,27 +92,25 @@ static void Precompile(Isolate* isolate, Dart_Handle* result) { |
DART_EXPORT Dart_Handle Dart_CompileAll() { |
- Isolate* isolate = Isolate::Current(); |
- DARTSCOPE(isolate); |
- Dart_Handle result = Api::CheckAndFinalizePendingClasses(isolate); |
+ DARTSCOPE(Thread::Current()); |
+ Dart_Handle result = Api::CheckAndFinalizePendingClasses(I); |
if (::Dart_IsError(result)) { |
return result; |
} |
- CHECK_CALLBACK_STATE(isolate); |
- CompileAll(isolate, &result); |
+ CHECK_CALLBACK_STATE(I); |
+ CompileAll(I, &result); |
return result; |
} |
DART_EXPORT Dart_Handle Dart_Precompile() { |
- Isolate* isolate = Isolate::Current(); |
- DARTSCOPE(isolate); |
- Dart_Handle result = Api::CheckAndFinalizePendingClasses(isolate); |
+ DARTSCOPE(Thread::Current()); |
+ Dart_Handle result = Api::CheckAndFinalizePendingClasses(I); |
if (::Dart_IsError(result)) { |
return result; |
} |
- CHECK_CALLBACK_STATE(isolate); |
- Precompile(isolate, &result); |
+ CHECK_CALLBACK_STATE(I); |
+ Precompile(I, &result); |
return result; |
} |