Index: runtime/vm/native_api_impl.cc |
diff --git a/runtime/vm/native_api_impl.cc b/runtime/vm/native_api_impl.cc |
index 8a546e49d9def56049696ab8572c78dd1c8ae956..1bc5d4c2305f1d2287cd453a3914ea8fae786e74 100644 |
--- a/runtime/vm/native_api_impl.cc |
+++ b/runtime/vm/native_api_impl.cc |
@@ -28,12 +28,13 @@ class IsolateSaver { |
: saved_isolate_(current_isolate) { |
if (current_isolate != NULL) { |
ASSERT(current_isolate == Isolate::Current()); |
- Thread::ExitIsolate(); |
+ Dart_ExitIsolate(); |
} |
} |
~IsolateSaver() { |
if (saved_isolate_ != NULL) { |
- Thread::EnterIsolate(saved_isolate_); |
+ Dart_Isolate I = reinterpret_cast<Dart_Isolate>(saved_isolate_); |
+ Dart_EnterIsolate(I); |
} |
} |
private: |