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

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: 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
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index a5c3563cafd32a180469959ac9113f47a91faa22..cc37b9791d8c96ad5749e939b5937fbc076087c7 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -921,6 +921,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.

Powered by Google App Engine
This is Rietveld 408576698