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

Unified Diff: runtime/lib/isolate.cc

Issue 1140263005: Revert "Hide Isolate pointer from embedder" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
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
« no previous file with comments | « runtime/include/dart_native_api.h ('k') | runtime/platform/globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/isolate.cc
diff --git a/runtime/lib/isolate.cc b/runtime/lib/isolate.cc
index 12f834c4198cb5175aebd6878468dcd8f1df50e9..1f72dc2699851bb269f7e4d1f7dca9d05fca2c0f 100644
--- a/runtime/lib/isolate.cc
+++ b/runtime/lib/isolate.cc
@@ -172,11 +172,12 @@ static bool CreateIsolate(Isolate* parent_isolate,
}
void* init_data = parent_isolate->init_callback_data();
- Isolate* child_isolate = Api::CastIsolate((callback)(state->script_url(),
- state->function_name(),
- state->package_root(),
- init_data,
- error));
+ Isolate* child_isolate = reinterpret_cast<Isolate*>(
+ (callback)(state->script_url(),
+ state->function_name(),
+ state->package_root(),
+ init_data,
+ error));
if (child_isolate == NULL) {
return false;
}
« no previous file with comments | « runtime/include/dart_native_api.h ('k') | runtime/platform/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698