| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |