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 #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 // Don't use USING_MULTICORE outside of this file. | 15 // Don't use USING_MULTICORE outside of this file. |
16 #if defined(ARCH_IS_MULTI_CORE) | 16 #if defined(ARCH_IS_MULTI_CORE) |
17 #define USING_MULTICORE true | 17 #define USING_MULTICORE true |
18 #else | 18 #else |
19 #define USING_MULTICORE false | 19 #define USING_MULTICORE false |
20 #endif | 20 #endif |
21 | 21 |
| 22 // Don't use USING_PRODUCT outside of this file. |
| 23 #if defined(PRODUCT) |
| 24 #define USING_PRODUCT true |
| 25 #else |
| 26 #define USING_PRODUCT false |
| 27 #endif |
| 28 |
22 // List of all flags in the VM. | 29 // List of all flags in the VM. |
23 // Flags can be one of three categories: | 30 // Flags can be one of three categories: |
24 // * P roduct flags: Can be set in any of the deployment modes, including in | 31 // * P roduct flags: Can be set in any of the deployment modes, including in |
25 // production. | 32 // production. |
26 // * R elease flags: Generally available flags except when building product. | 33 // * R elease flags: Generally available flags except when building product. |
27 // * D ebug flags: Can only be set in debug VMs, which also have C++ assertions | 34 // * D ebug flags: Can only be set in debug VMs, which also have C++ assertions |
28 // enabled. | 35 // enabled. |
29 // * pre C ompile flags: Generally available flags except when building product | 36 // * pre C ompile flags: Generally available flags except when building product |
30 // or precompiled runtime. | 37 // or precompiled runtime. |
31 // | 38 // |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 "Attempt to print a native stack trace when an API error is created.") \ | 134 "Attempt to print a native stack trace when an API error is created.") \ |
128 C(print_stop_message, false, false, bool, false, "Print stop message.") \ | 135 C(print_stop_message, false, false, bool, false, "Print stop message.") \ |
129 D(print_variable_descriptors, bool, false, \ | 136 D(print_variable_descriptors, bool, false, \ |
130 "Print variable descriptors in disassembly.") \ | 137 "Print variable descriptors in disassembly.") \ |
131 R(profiler, false, bool, !USING_DBC, "Enable the profiler.") \ | 138 R(profiler, false, bool, !USING_DBC, "Enable the profiler.") \ |
132 R(profiler_native_memory, false, bool, false, \ | 139 R(profiler_native_memory, false, bool, false, \ |
133 "Enable native memory statistic collection.") \ | 140 "Enable native memory statistic collection.") \ |
134 P(reify_generic_functions, bool, false, \ | 141 P(reify_generic_functions, bool, false, \ |
135 "Enable reification of generic functions (not yet supported).") \ | 142 "Enable reification of generic functions (not yet supported).") \ |
136 P(reorder_basic_blocks, bool, true, "Reorder basic blocks") \ | 143 P(reorder_basic_blocks, bool, true, "Reorder basic blocks") \ |
137 C(causal_async_stacks, false, false, bool, true, "Improved async stacks") \ | 144 P(causal_async_stacks, bool, !USING_PRODUCT, "Improved async stacks") \ |
138 C(stress_async_stacks, false, false, bool, false, \ | 145 C(stress_async_stacks, false, false, bool, false, \ |
139 "Stress test async stack traces") \ | 146 "Stress test async stack traces") \ |
140 C(async_debugger, false, false, bool, true, \ | 147 C(async_debugger, false, false, bool, true, \ |
141 "Debugger support async functions.") \ | 148 "Debugger support async functions.") \ |
142 R(support_ast_printer, false, bool, true, "Support the AST printer.") \ | 149 R(support_ast_printer, false, bool, true, "Support the AST printer.") \ |
143 R(support_compiler_stats, false, bool, true, "Support compiler stats.") \ | 150 R(support_compiler_stats, false, bool, true, "Support compiler stats.") \ |
144 C(support_debugger, false, false, bool, true, "Support the debugger.") \ | 151 C(support_debugger, false, false, bool, true, "Support the debugger.") \ |
145 R(support_disassembler, false, bool, true, "Support the disassembler.") \ | 152 R(support_disassembler, false, bool, true, "Support the disassembler.") \ |
146 R(support_il_printer, false, bool, true, "Support the IL printer.") \ | 153 R(support_il_printer, false, bool, true, "Support the IL printer.") \ |
147 C(support_reload, false, false, bool, true, "Support isolate reload.") \ | 154 C(support_reload, false, false, bool, true, "Support isolate reload.") \ |
(...skipping 20 matching lines...) Expand all Loading... |
168 P(verbose_gc_hdr, int, 40, "Print verbose GC header interval.") \ | 175 P(verbose_gc_hdr, int, 40, "Print verbose GC header interval.") \ |
169 R(verify_after_gc, false, bool, false, \ | 176 R(verify_after_gc, false, bool, false, \ |
170 "Enables heap verification after GC.") \ | 177 "Enables heap verification after GC.") \ |
171 R(verify_before_gc, false, bool, false, \ | 178 R(verify_before_gc, false, bool, false, \ |
172 "Enables heap verification before GC.") \ | 179 "Enables heap verification before GC.") \ |
173 D(verify_gc_contains, bool, false, \ | 180 D(verify_gc_contains, bool, false, \ |
174 "Enables verification of address contains during GC.") \ | 181 "Enables verification of address contains during GC.") \ |
175 D(verify_on_transition, bool, false, "Verify on dart <==> VM.") | 182 D(verify_on_transition, bool, false, "Verify on dart <==> VM.") |
176 | 183 |
177 #endif // RUNTIME_VM_FLAG_LIST_H_ | 184 #endif // RUNTIME_VM_FLAG_LIST_H_ |
OLD | NEW |