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 #if defined(HOST_OS_FUCHSIA) | 15 #if defined(HOST_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(DART_PRECOMPILER) | |
29 #define USING_PRECOMPILER true | |
30 #else | |
31 #define USING_PRECOMPILER 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 R(trace_profiler, false, bool, false, "Profiler trace") \ | 163 R(trace_profiler, false, bool, false, "Profiler trace") \ |
170 D(trace_profiler_verbose, bool, false, "Verbose profiler trace") \ | 164 D(trace_profiler_verbose, bool, false, "Verbose profiler trace") \ |
171 D(trace_ssa_allocator, bool, false, "Trace register allocation over SSA.") \ | 165 D(trace_ssa_allocator, bool, false, "Trace register allocation over SSA.") \ |
172 D(trace_zones, bool, false, "Traces allocation sizes in the zone.") \ | 166 D(trace_zones, bool, false, "Traces allocation sizes in the zone.") \ |
173 P(truncating_left_shift, bool, true, \ | 167 P(truncating_left_shift, bool, true, \ |
174 "Optimize left shift to truncate if possible") \ | 168 "Optimize left shift to truncate if possible") \ |
175 P(use_cha_deopt, bool, true, \ | 169 P(use_cha_deopt, bool, true, \ |
176 "Use class hierarchy analysis even if it can cause deoptimization.") \ | 170 "Use class hierarchy analysis even if it can cause deoptimization.") \ |
177 P(use_field_guards, bool, !USING_DBC, \ | 171 P(use_field_guards, bool, !USING_DBC, \ |
178 "Use field guards and track field types") \ | 172 "Use field guards and track field types") \ |
179 C(use_osr, false, !USING_PRECOMPILER, bool, !USING_PRECOMPILER, "Use OSR") \ | 173 C(use_osr, false, true, bool, true, "Use OSR") \ |
180 P(verbose_gc, bool, false, "Enables verbose GC.") \ | 174 P(verbose_gc, bool, false, "Enables verbose GC.") \ |
181 P(verbose_gc_hdr, int, 40, "Print verbose GC header interval.") \ | 175 P(verbose_gc_hdr, int, 40, "Print verbose GC header interval.") \ |
182 R(verify_after_gc, false, bool, false, \ | 176 R(verify_after_gc, false, bool, false, \ |
183 "Enables heap verification after GC.") \ | 177 "Enables heap verification after GC.") \ |
184 R(verify_before_gc, false, bool, false, \ | 178 R(verify_before_gc, false, bool, false, \ |
185 "Enables heap verification before GC.") \ | 179 "Enables heap verification before GC.") \ |
186 D(verify_gc_contains, bool, false, \ | 180 D(verify_gc_contains, bool, false, \ |
187 "Enables verification of address contains during GC.") \ | 181 "Enables verification of address contains during GC.") \ |
188 D(verify_on_transition, bool, false, "Verify on dart <==> VM.") | 182 D(verify_on_transition, bool, false, "Verify on dart <==> VM.") |
189 | 183 |
190 #endif // RUNTIME_VM_FLAG_LIST_H_ | 184 #endif // RUNTIME_VM_FLAG_LIST_H_ |
OLD | NEW |