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

Unified Diff: runtime/vm/service_isolate.cc

Issue 1130753006: Hide Isolate pointer from embedder (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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/service_isolate.cc
diff --git a/runtime/vm/service_isolate.cc b/runtime/vm/service_isolate.cc
index 3494b126d91e3af3544d15e0c99c85a5296d0893..6df6ba1af81346581d3cc110b8c45a5421ab9498 100644
--- a/runtime/vm/service_isolate.cc
+++ b/runtime/vm/service_isolate.cc
@@ -597,12 +597,11 @@ class RunServiceTask : public ThreadPool::Task {
return;
}
- isolate =
- reinterpret_cast<Isolate*>(create_callback(ServiceIsolate::kName,
- NULL,
- NULL,
- NULL,
- &error));
+ isolate = Api::CastIsolate(create_callback(ServiceIsolate::kName,
+ NULL,
+ NULL,
+ NULL,
+ &error));
if (isolate == NULL) {
OS::PrintErr("vm-service: Isolate creation error: %s\n", error);
ServiceIsolate::FinishedInitializing();
« runtime/vm/dart_api_impl.cc ('K') | « runtime/vm/port.h ('k') | runtime/vm/unit_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698