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

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

Issue 2774523002: Make gen_snapshot quiet for the Fuchsia build. (Closed)
Patch Set: Created 3 years, 9 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 | no next file » | 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 <stdio.h> 8 #include <stdio.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 TimerUtils::InitOnce(); 1464 TimerUtils::InitOnce();
1465 EventHandler::Start(); 1465 EventHandler::Start();
1466 1466
1467 #if !defined(PRODUCT) 1467 #if !defined(PRODUCT)
1468 // Constant true in PRODUCT mode. 1468 // Constant true in PRODUCT mode.
1469 vm_options.AddArgument("--load_deferred_eagerly"); 1469 vm_options.AddArgument("--load_deferred_eagerly");
1470 #endif 1470 #endif
1471 1471
1472 if (IsSnapshottingForPrecompilation()) { 1472 if (IsSnapshottingForPrecompilation()) {
1473 vm_options.AddArgument("--precompilation"); 1473 vm_options.AddArgument("--precompilation");
1474 vm_options.AddArgument("--print_snapshot_sizes");
rmacnak 2017/03/23 00:46:09 These flags have since been passed explicitly by t
1475 #if TARGET_ARCH_ARM
1476 // This is for the iPod Touch 5th Generation (and maybe other older devices)
1477 vm_options.AddArgument("--no-use_integer_division");
1478 #endif
1479 } 1474 }
1480 1475
1481 Dart_SetVMFlags(vm_options.count(), vm_options.arguments()); 1476 Dart_SetVMFlags(vm_options.count(), vm_options.arguments());
1482 1477
1483 // Initialize the Dart VM. 1478 // Initialize the Dart VM.
1484 // Note: We don't expect isolates to be created from dart code during 1479 // Note: We don't expect isolates to be created from dart code during
1485 // core library snapshot generation. However for the case when a full 1480 // core library snapshot generation. However for the case when a full
1486 // snasphot is generated from a script (app_script_name != NULL) we will 1481 // snasphot is generated from a script (app_script_name != NULL) we will
1487 // need the service isolate to resolve URI and load code. 1482 // need the service isolate to resolve URI and load code.
1488 1483
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 delete mapped_isolate_snapshot_data; 1694 delete mapped_isolate_snapshot_data;
1700 return 0; 1695 return 0;
1701 } 1696 }
1702 1697
1703 } // namespace bin 1698 } // namespace bin
1704 } // namespace dart 1699 } // namespace dart
1705 1700
1706 int main(int argc, char** argv) { 1701 int main(int argc, char** argv) {
1707 return dart::bin::main(argc, argv); 1702 return dart::bin::main(argc, argv);
1708 } 1703 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698