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

Side by Side Diff: runtime/vm/flag_list.h

Issue 2718963004: Updated enable-malloc-hooks flag to be disabled by default in debug mode. (Closed)
Patch Set: Created 3 years, 9 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 | 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 #ifndef RUNTIME_VM_FLAG_LIST_H_ 5 #ifndef RUNTIME_VM_FLAG_LIST_H_
6 #define RUNTIME_VM_FLAG_LIST_H_ 6 #define RUNTIME_VM_FLAG_LIST_H_
7 7
8 // Don't use USING_DBC outside of this file. 8 // Don't use USING_DBC outside of this file.
9 #if defined(TARGET_ARCH_DBC) 9 #if defined(TARGET_ARCH_DBC)
10 #define USING_DBC true 10 #define USING_DBC true
11 #else 11 #else
12 #define USING_DBC false 12 #define USING_DBC false
13 #endif 13 #endif
14 14
15 #if defined(TARGET_OS_FUCHSIA) 15 #if defined(TARGET_OS_FUCHSIA)
16 #define USING_FUCHSIA true 16 #define USING_FUCHSIA true
17 #else 17 #else
18 #define USING_FUCHSIA false 18 #define USING_FUCHSIA false
19 #endif 19 #endif
20 20
21 // Don't use USING_MULTICORE outside of this file. 21 // Don't use USING_MULTICORE outside of this file.
22 #if defined(ARCH_IS_MULTI_CORE) 22 #if defined(ARCH_IS_MULTI_CORE)
23 #define USING_MULTICORE true 23 #define USING_MULTICORE true
24 #else 24 #else
25 #define USING_MULTICORE false 25 #define USING_MULTICORE false
26 #endif 26 #endif
27 27
28 #if defined(DEBUG)
29 #define USING_DEBUG true
30 #else
31 #define USING_DEBUG false
32 #endif
33
34 // List of all flags in the VM. 28 // List of all flags in the VM.
35 // Flags can be one of three categories: 29 // Flags can be one of three categories:
36 // * P roduct flags: Can be set in any of the deployment modes, including in 30 // * P roduct flags: Can be set in any of the deployment modes, including in
37 // production. 31 // production.
38 // * R elease flags: Generally available flags except when building product. 32 // * R elease flags: Generally available flags except when building product.
39 // * D ebug flags: Can only be set in debug VMs, which also have C++ assertions 33 // * D ebug flags: Can only be set in debug VMs, which also have C++ assertions
40 // enabled. 34 // enabled.
41 // * pre C ompile flags: Generally available flags except when building product 35 // * pre C ompile flags: Generally available flags except when building product
42 // or precompiled runtime. 36 // or precompiled runtime.
43 // 37 //
(...skipping 23 matching lines...) Expand all
67 "Deoptimizes we are about to return to Dart code from native entries.") \ 61 "Deoptimizes we are about to return to Dart code from native entries.") \
68 C(deoptimize_every, 0, 0, int, 0, \ 62 C(deoptimize_every, 0, 0, int, 0, \
69 "Deoptimize on every N stack overflow checks") \ 63 "Deoptimize on every N stack overflow checks") \
70 R(disable_alloc_stubs_after_gc, false, bool, false, "Stress testing flag.") \ 64 R(disable_alloc_stubs_after_gc, false, bool, false, "Stress testing flag.") \
71 R(disassemble, false, bool, false, "Disassemble dart code.") \ 65 R(disassemble, false, bool, false, "Disassemble dart code.") \
72 R(disassemble_optimized, false, bool, false, "Disassemble optimized code.") \ 66 R(disassemble_optimized, false, bool, false, "Disassemble optimized code.") \
73 R(dump_megamorphic_stats, false, bool, false, \ 67 R(dump_megamorphic_stats, false, bool, false, \
74 "Dump megamorphic cache statistics") \ 68 "Dump megamorphic cache statistics") \
75 R(dump_symbol_stats, false, bool, false, "Dump symbol table statistics") \ 69 R(dump_symbol_stats, false, bool, false, "Dump symbol table statistics") \
76 R(enable_asserts, false, bool, false, "Enable assert statements.") \ 70 R(enable_asserts, false, bool, false, "Enable assert statements.") \
77 R(enable_malloc_hooks, false, bool, USING_DEBUG, \ 71 R(enable_malloc_hooks, false, bool, false, \
78 "Enable native memory statistic collection. Enabled by default in Debug " \ 72 "Enable native memory statistic collection. Enabled by default in Debug " \
79 "mode") \ 73 "mode") \
80 C(enable_mirrors, false, false, bool, true, \ 74 C(enable_mirrors, false, false, bool, true, \
81 "Disable to make importing dart:mirrors an error.") \ 75 "Disable to make importing dart:mirrors an error.") \
82 R(enable_type_checks, false, bool, false, "Enable type checks.") \ 76 R(enable_type_checks, false, bool, false, "Enable type checks.") \
83 R(error_on_bad_override, false, bool, false, \ 77 R(error_on_bad_override, false, bool, false, \
84 "Report error for bad overrides.") \ 78 "Report error for bad overrides.") \
85 R(error_on_bad_type, false, bool, false, \ 79 R(error_on_bad_type, false, bool, false, \
86 "Report error for malformed types.") \ 80 "Report error for malformed types.") \
87 P(external_max_size, int, (kWordSize <= 4) ? 512 : 1024, \ 81 P(external_max_size, int, (kWordSize <= 4) ? 512 : 1024, \
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 P(verbose_gc_hdr, int, 40, "Print verbose GC header interval.") \ 167 P(verbose_gc_hdr, int, 40, "Print verbose GC header interval.") \
174 R(verify_after_gc, false, bool, false, \ 168 R(verify_after_gc, false, bool, false, \
175 "Enables heap verification after GC.") \ 169 "Enables heap verification after GC.") \
176 R(verify_before_gc, false, bool, false, \ 170 R(verify_before_gc, false, bool, false, \
177 "Enables heap verification before GC.") \ 171 "Enables heap verification before GC.") \
178 D(verify_gc_contains, bool, false, \ 172 D(verify_gc_contains, bool, false, \
179 "Enables verification of address contains during GC.") \ 173 "Enables verification of address contains during GC.") \
180 D(verify_on_transition, bool, false, "Verify on dart <==> VM.") 174 D(verify_on_transition, bool, false, "Verify on dart <==> VM.")
181 175
182 #endif // RUNTIME_VM_FLAG_LIST_H_ 176 #endif // RUNTIME_VM_FLAG_LIST_H_
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