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

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

Issue 2508993002: The flag --collect_code is not available in product mode. (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 | 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) 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
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
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 }
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