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

Unified Diff: runtime/bin/main.cc

Issue 13452007: Add new Dart API call Dart_MakeIsolateRunnable(). This would allow an (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | « no previous file | runtime/include/dart_api.h » ('j') | runtime/include/dart_api.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
===================================================================
--- runtime/bin/main.cc (revision 20945)
+++ runtime/bin/main.cc (working copy)
@@ -478,6 +478,18 @@
Dart_ShutdownIsolate();
return false;
}
+
+ // Make the isolate runnable so that it is ready to handle messages.
+ Dart_ExitIsolate();
Ivan Posva 2013/04/05 15:51:59 If this method was changed to return the isolate i
siva 2013/04/05 17:43:29 Done.
+ bool retval = Dart_MakeIsolateRunnable(isolate);
+ Dart_EnterIsolate(isolate);
+ if (!retval) {
+ *error = strdup("Invalid isolate state - Unable to make it runnable");
+ Dart_ExitScope();
+ Dart_ShutdownIsolate();
+ return false;
+ }
+
Dart_ExitScope();
VmStats::AddIsolate(reinterpret_cast<IsolateData*>(data), isolate);
return true;
« no previous file with comments | « no previous file | runtime/include/dart_api.h » ('j') | runtime/include/dart_api.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698