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

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

Issue 2397853003: Include optimized code in JIT app snapshots. (Closed)
Patch Set: reorder Created 4 years, 2 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/vm/clustered_snapshot.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <string.h> 6 #include <string.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "include/dart_api.h" 9 #include "include/dart_api.h"
10 #include "include/dart_tools_api.h" 10 #include "include/dart_tools_api.h"
(...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 Platform::Exit(kErrorExitCode); 1778 Platform::Exit(kErrorExitCode);
1779 } 1779 }
1780 1780
1781 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) 1781 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
1782 // Constant true if PRODUCT or DART_PRECOMPILED_RUNTIME. 1782 // Constant true if PRODUCT or DART_PRECOMPILED_RUNTIME.
1783 if ((gen_snapshot_kind != kNone) || run_app_snapshot) { 1783 if ((gen_snapshot_kind != kNone) || run_app_snapshot) {
1784 vm_options.AddArgument("--load_deferred_eagerly"); 1784 vm_options.AddArgument("--load_deferred_eagerly");
1785 } 1785 }
1786 #endif 1786 #endif
1787 1787
1788 if (gen_snapshot_kind == kAppJITAfterRun) {
1789 vm_options.AddArgument("--fields_may_be_reset");
1790 }
1788 if ((gen_snapshot_kind == kAppAOT) || is_noopt) { 1791 if ((gen_snapshot_kind == kAppAOT) || is_noopt) {
1789 vm_options.AddArgument("--precompilation"); 1792 vm_options.AddArgument("--precompilation");
1790 } 1793 }
1791 #if defined(DART_PRECOMPILED_RUNTIME) 1794 #if defined(DART_PRECOMPILED_RUNTIME)
1792 vm_options.AddArgument("--precompilation"); 1795 vm_options.AddArgument("--precompilation");
1793 #endif 1796 #endif
1794 1797
1795 Dart_SetVMFlags(vm_options.count(), vm_options.arguments()); 1798 Dart_SetVMFlags(vm_options.count(), vm_options.arguments());
1796 1799
1797 // Start event handler. 1800 // Start event handler.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1890 Platform::Exit(Process::GlobalExitCode()); 1893 Platform::Exit(Process::GlobalExitCode());
1891 } 1894 }
1892 1895
1893 } // namespace bin 1896 } // namespace bin
1894 } // namespace dart 1897 } // namespace dart
1895 1898
1896 int main(int argc, char** argv) { 1899 int main(int argc, char** argv) {
1897 dart::bin::main(argc, argv); 1900 dart::bin::main(argc, argv);
1898 UNREACHABLE(); 1901 UNREACHABLE();
1899 } 1902 }
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/clustered_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698