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

Side by Side Diff: runtime/bin/gen_snapshot.cc

Issue 1731743003: Move precompilation-related flags to flags list. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: make print_stop_message default false to fix build Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/bin/main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Generate a snapshot file after loading all the scripts specified on the 5 // Generate a snapshot file after loading all the scripts specified on the
6 // command line. 6 // command line.
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 PrintUsage(); 1007 PrintUsage();
1008 return 255; 1008 return 255;
1009 } 1009 }
1010 1010
1011 Thread::InitOnce(); 1011 Thread::InitOnce();
1012 DartUtils::SetOriginalWorkingDirectory(); 1012 DartUtils::SetOriginalWorkingDirectory();
1013 // Start event handler. 1013 // Start event handler.
1014 TimerUtils::InitOnce(); 1014 TimerUtils::InitOnce();
1015 EventHandler::Start(); 1015 EventHandler::Start();
1016 1016
1017 #if !defined(PRODUCT)
1018 // Constant true in PRODUCT mode.
1017 vm_options.AddArgument("--load_deferred_eagerly"); 1019 vm_options.AddArgument("--load_deferred_eagerly");
1020 #endif
1018 1021
1019 if (IsSnapshottingForPrecompilation()) { 1022 if (IsSnapshottingForPrecompilation()) {
1020 vm_options.AddArgument("--precompilation"); 1023 vm_options.AddArgument("--precompilation");
1021 #if TARGET_ARCH_ARM 1024 #if TARGET_ARCH_ARM
1022 // This is for the iPod Touch 5th Generation (and maybe other older devices) 1025 // This is for the iPod Touch 5th Generation (and maybe other older devices)
1023 vm_options.AddArgument("--no-use_integer_division"); 1026 vm_options.AddArgument("--no-use_integer_division");
1024 #endif 1027 #endif
1025 } 1028 }
1026 1029
1027 Dart_SetVMFlags(vm_options.count(), vm_options.arguments()); 1030 Dart_SetVMFlags(vm_options.count(), vm_options.arguments());
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 EventHandler::Stop(); 1145 EventHandler::Stop();
1143 return 0; 1146 return 0;
1144 } 1147 }
1145 1148
1146 } // namespace bin 1149 } // namespace bin
1147 } // namespace dart 1150 } // namespace dart
1148 1151
1149 int main(int argc, char** argv) { 1152 int main(int argc, char** argv) {
1150 return dart::bin::main(argc, argv); 1153 return dart::bin::main(argc, argv);
1151 } 1154 }
OLDNEW
« 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