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

Unified Diff: runtime/bin/main.cc

Issue 529203004: Cleanup resource loading of the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cleanup. Created 6 years, 3 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/bin/gen_snapshot.cc ('k') | runtime/vm/dart_api_impl.cc » ('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 b9bc365f3cfb0f4b3ba54e94b1be0d859f29238a..941aafee5d8c1e899afee4a5c6a929fa0ec02559 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -598,10 +598,9 @@ static Dart_Isolate CreateIsolateAndSetupHelper(const char* script_uri,
result = DartUtils::LoadScript(isolate_data->script_url, builtin_lib);
CHECK_RESULT(result);
- if (Dart_IsVMFlagSet("load_async")) {
- result = Dart_RunLoop();
- CHECK_RESULT(result);
- }
+ // Run event-loop and wait for script loading to complete.
+ result = Dart_RunLoop();
+ CHECK_RESULT(result);
Platform::SetPackageRoot(package_root);
Dart_Handle io_lib_url = DartUtils::NewString(DartUtils::kIOLibURL);
« no previous file with comments | « runtime/bin/gen_snapshot.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698