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

Unified Diff: runtime/bin/gen_snapshot.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 | « no previous file | runtime/bin/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/gen_snapshot.cc
diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
index b55575da3a741af6c2f7a35aaf11c711f8b94d8b..544cf32fa28763be5f7d5e00c7cc83254e80305c 100644
--- a/runtime/bin/gen_snapshot.cc
+++ b/runtime/bin/gen_snapshot.cc
@@ -516,7 +516,8 @@ static void SetupForGenericSnapshotCreation() {
int main(int argc, char** argv) {
- CommandLineOptions vm_options(argc);
+ const int EXTRA_VM_ARGUMENTS = 1;
+ CommandLineOptions vm_options(argc + EXTRA_VM_ARGUMENTS);
// Initialize the URL mapping array.
CommandLineOptions url_mapping_array(argc);
@@ -534,6 +535,8 @@ int main(int argc, char** argv) {
Thread::InitOnce();
DartUtils::SetOriginalWorkingDirectory();
+ vm_options.AddArgument("--load_deferred_eagerly");
+
Dart_SetVMFlags(vm_options.count(), vm_options.arguments());
// Initialize the Dart VM.
« no previous file with comments | « no previous file | runtime/bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698