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

Unified Diff: runtime/bin/main.cc

Issue 503363002: Defer execution of the main isolate's entry point until the message loop. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix test Created 6 years, 4 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/lib/isolate_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index 4c3c7dd3aa5d32059bf2066206749917b654f670..b9bc365f3cfb0f4b3ba54e94b1be0d859f29238a 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -1125,20 +1125,15 @@ void main(int argc, char** argv) {
// Call _startIsolate in the isolate library to enable dispatching the
// initial startup message.
- const intptr_t kNumIsolateArgs = 7;
+ const intptr_t kNumIsolateArgs = 2;
Dart_Handle isolate_args[kNumIsolateArgs];
- isolate_args[0] = Dart_Null(); // no parent port
- isolate_args[1] = main_closure; // entryPoint
- isolate_args[2] = CreateRuntimeOptions(&dart_options); // args
- isolate_args[3] = Dart_Null(); // no message
- isolate_args[4] = Dart_True(); // isSpawnUri
- isolate_args[5] = Dart_Null(); // no control port
- isolate_args[6] = Dart_Null(); // no capabilities
+ isolate_args[0] = main_closure; // entryPoint
+ isolate_args[1] = CreateRuntimeOptions(&dart_options); // args
Dart_Handle isolate_lib = Dart_LookupLibrary(
Dart_NewStringFromCString("dart:isolate"));
result = Dart_Invoke(isolate_lib,
- Dart_NewStringFromCString("_startIsolate"),
+ Dart_NewStringFromCString("_startMainIsolate"),
kNumIsolateArgs, isolate_args);
DartExitOnError(result);
« no previous file with comments | « no previous file | runtime/lib/isolate_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698