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

Unified Diff: runtime/bin/main.cc

Issue 1155183003: Load deferred classes eagerly when generating script snapshots (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Redo disappearing CL 1155183003 (Load deferred classes eagerly when generating script snapshots) 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/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 a5c3563cafd32a180469959ac9113f47a91faa22..7bb98a12a1a9fdb668207f69496db8c805923481 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -872,7 +872,8 @@ static const char* ServiceRequestHandler(
void main(int argc, char** argv) {
char* script_name;
- CommandLineOptions vm_options(argc);
+ const int EXTRA_VM_ARGUMENTS = 2;
+ CommandLineOptions vm_options(argc + EXTRA_VM_ARGUMENTS);
CommandLineOptions dart_options(argc);
bool print_flags_seen = false;
bool verbose_debug_seen = false;
@@ -921,6 +922,10 @@ void main(int argc, char** argv) {
exit(kErrorExitCode);
}
+ if (generate_script_snapshot) {
+ vm_options.AddArgument("--load_deferred_eagerly");
+ }
+
Dart_SetVMFlags(vm_options.count(), vm_options.arguments());
// Start event handler.
« 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