| 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 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1855 | 1855 |
| 1856 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) | 1856 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) |
| 1857 // Constant true if PRODUCT or DART_PRECOMPILED_RUNTIME. | 1857 // Constant true if PRODUCT or DART_PRECOMPILED_RUNTIME. |
| 1858 if ((gen_snapshot_kind != kNone) || run_app_snapshot) { | 1858 if ((gen_snapshot_kind != kNone) || run_app_snapshot) { |
| 1859 vm_options.AddArgument("--load_deferred_eagerly"); | 1859 vm_options.AddArgument("--load_deferred_eagerly"); |
| 1860 } | 1860 } |
| 1861 #endif | 1861 #endif |
| 1862 | 1862 |
| 1863 if (gen_snapshot_kind == kAppJIT) { | 1863 if (gen_snapshot_kind == kAppJIT) { |
| 1864 vm_options.AddArgument("--fields_may_be_reset"); | 1864 vm_options.AddArgument("--fields_may_be_reset"); |
| 1865 #if !defined(PRODUCT) |
| 1865 vm_options.AddArgument("--collect_code=false"); | 1866 vm_options.AddArgument("--collect_code=false"); |
| 1867 #endif |
| 1866 } | 1868 } |
| 1867 if ((gen_snapshot_kind == kAppAOT) || is_noopt) { | 1869 if ((gen_snapshot_kind == kAppAOT) || is_noopt) { |
| 1868 vm_options.AddArgument("--precompilation"); | 1870 vm_options.AddArgument("--precompilation"); |
| 1869 } | 1871 } |
| 1870 #if defined(DART_PRECOMPILED_RUNTIME) | 1872 #if defined(DART_PRECOMPILED_RUNTIME) |
| 1871 vm_options.AddArgument("--precompilation"); | 1873 vm_options.AddArgument("--precompilation"); |
| 1872 #endif | 1874 #endif |
| 1873 if (gen_snapshot_kind == kAppJIT) { | 1875 if (gen_snapshot_kind == kAppJIT) { |
| 1874 Process::SetExitHook(SnapshotOnExitHook); | 1876 Process::SetExitHook(SnapshotOnExitHook); |
| 1875 } | 1877 } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1946 Platform::Exit(Process::GlobalExitCode()); | 1948 Platform::Exit(Process::GlobalExitCode()); |
| 1947 } | 1949 } |
| 1948 | 1950 |
| 1949 } // namespace bin | 1951 } // namespace bin |
| 1950 } // namespace dart | 1952 } // namespace dart |
| 1951 | 1953 |
| 1952 int main(int argc, char** argv) { | 1954 int main(int argc, char** argv) { |
| 1953 dart::bin::main(argc, argv); | 1955 dart::bin::main(argc, argv); |
| 1954 UNREACHABLE(); | 1956 UNREACHABLE(); |
| 1955 } | 1957 } |
| OLD | NEW |