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

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

Issue 2509453002: When building app snapshots for the SDK, train dart2js on itself. (Closed)
Patch Set: Created 4 years, 1 month 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 | utils/compiler/BUILD.gn » ('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 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after
1828 1828
1829 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) 1829 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME)
1830 // Constant true if PRODUCT or DART_PRECOMPILED_RUNTIME. 1830 // Constant true if PRODUCT or DART_PRECOMPILED_RUNTIME.
1831 if ((gen_snapshot_kind != kNone) || run_app_snapshot) { 1831 if ((gen_snapshot_kind != kNone) || run_app_snapshot) {
1832 vm_options.AddArgument("--load_deferred_eagerly"); 1832 vm_options.AddArgument("--load_deferred_eagerly");
1833 } 1833 }
1834 #endif 1834 #endif
1835 1835
1836 if (gen_snapshot_kind == kAppJIT) { 1836 if (gen_snapshot_kind == kAppJIT) {
1837 vm_options.AddArgument("--fields_may_be_reset"); 1837 vm_options.AddArgument("--fields_may_be_reset");
1838 vm_options.AddArgument("--collect_code=false");
1838 } 1839 }
1839 if ((gen_snapshot_kind == kAppAOT) || is_noopt) { 1840 if ((gen_snapshot_kind == kAppAOT) || is_noopt) {
1840 vm_options.AddArgument("--precompilation"); 1841 vm_options.AddArgument("--precompilation");
1841 } 1842 }
1842 #if defined(DART_PRECOMPILED_RUNTIME) 1843 #if defined(DART_PRECOMPILED_RUNTIME)
1843 vm_options.AddArgument("--precompilation"); 1844 vm_options.AddArgument("--precompilation");
1844 #endif 1845 #endif
1845 if (gen_snapshot_kind == kAppJIT) { 1846 if (gen_snapshot_kind == kAppJIT) {
1846 Process::SetExitHook(SnapshotOnExitHook); 1847 Process::SetExitHook(SnapshotOnExitHook);
1847 } 1848 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1918 Platform::Exit(Process::GlobalExitCode()); 1919 Platform::Exit(Process::GlobalExitCode());
1919 } 1920 }
1920 1921
1921 } // namespace bin 1922 } // namespace bin
1922 } // namespace dart 1923 } // namespace dart
1923 1924
1924 int main(int argc, char** argv) { 1925 int main(int argc, char** argv) {
1925 dart::bin::main(argc, argv); 1926 dart::bin::main(argc, argv);
1926 UNREACHABLE(); 1927 UNREACHABLE();
1927 } 1928 }
OLDNEW
« no previous file with comments | « no previous file | utils/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698