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 VM_FLAG_LIST_H_ | 5 #ifndef VM_FLAG_LIST_H_ |
6 #define VM_FLAG_LIST_H_ | 6 #define VM_FLAG_LIST_H_ |
7 | 7 |
8 // List of all flags in the VM. | 8 // List of all flags in the VM. |
9 // Flags can be one of three categories: | 9 // Flags can be one of three categories: |
10 // * P roduct flags: Can be set in any of the deployment modes, including in | 10 // * P roduct flags: Can be set in any of the deployment modes, including in |
11 // production. | 11 // production. |
12 // * D ebug flags: Can only be set in debug VMs, which also have assertions | 12 // * D ebug flags: Can only be set in debug VMs, which also have assertions |
13 // enabled. | 13 // enabled. |
14 // * R elease flags: Generally available flags except when building product. | 14 // * R elease flags: Generally available flags except when building product. |
15 // * pre C ompile flags: Generally available flags except when building product | 15 // * pre C ompile flags: Generally available flags except when building product |
16 // or precompiled runtime. | 16 // or precompiled runtime. |
17 // | 17 // |
18 // Usage: | 18 // Usage: |
19 // P(name, type, default_value, comment) | 19 // P(name, type, default_value, comment) |
20 // D(name, type, default_value, comment) | 20 // D(name, type, default_value, comment) |
21 // R(name, product_value, type, default_value, comment) | 21 // R(name, product_value, type, default_value, comment) |
22 // C(name, precompiled_value, product_value, type, default_value, comment) | 22 // C(name, precompiled_value, product_value, type, default_value, comment) |
23 #define FLAG_LIST(P, R, D, C) \ | 23 #define FLAG_LIST(P, R, D, C) \ |
24 P(allow_absolute_addresses, bool, true, \ | 24 P(allow_absolute_addresses, bool, true, \ |
25 "Allow embedding absolute addresses in generated code.") \ | 25 "Allow embedding absolute addresses in generated code.") \ |
26 P(always_megamorphic_calls, bool, false, \ | 26 P(always_megamorphic_calls, bool, false, \ |
27 "Instance call always as megamorphic.") \ | 27 "Instance call always as megamorphic.") \ |
28 C(background_compilation, false, true, bool, true, \ | 28 C(background_compilation, false, false, bool, false, \ |
29 "Run optimizing compilation in background") \ | 29 "Run optimizing compilation in background") \ |
30 C(collect_code, false, true, bool, true, \ | 30 C(collect_code, false, true, bool, true, \ |
31 "Attempt to GC infrequently used code.") \ | 31 "Attempt to GC infrequently used code.") \ |
32 P(collect_dynamic_function_names, bool, false, \ | 32 P(collect_dynamic_function_names, bool, false, \ |
33 "Collects all dynamic function names to identify unique targets") \ | 33 "Collects all dynamic function names to identify unique targets") \ |
34 R(dedup_instructions, true, bool, false, \ | 34 R(dedup_instructions, true, bool, false, \ |
35 "Canonicalize instructions when precompiling.") \ | 35 "Canonicalize instructions when precompiling.") \ |
36 C(deoptimize_alot, false, false, bool, false, \ | 36 C(deoptimize_alot, false, false, bool, false, \ |
37 "Deoptimizes we are about to return to Dart code from native entries.") \ | 37 "Deoptimizes we are about to return to Dart code from native entries.") \ |
38 C(deoptimize_every, 0, 0, int, 0, \ | 38 C(deoptimize_every, 0, 0, int, 0, \ |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 P(verbose_gc, bool, false, \ | 140 P(verbose_gc, bool, false, \ |
141 "Enables verbose GC.") \ | 141 "Enables verbose GC.") \ |
142 P(verbose_gc_hdr, int, 40, \ | 142 P(verbose_gc_hdr, int, 40, \ |
143 "Print verbose GC header interval.") \ | 143 "Print verbose GC header interval.") \ |
144 R(verify_after_gc, false, bool, false, \ | 144 R(verify_after_gc, false, bool, false, \ |
145 "Enables heap verification after GC.") \ | 145 "Enables heap verification after GC.") \ |
146 R(verify_before_gc, false, bool, false, \ | 146 R(verify_before_gc, false, bool, false, \ |
147 "Enables heap verification before GC.") \ | 147 "Enables heap verification before GC.") \ |
148 | 148 |
149 #endif // VM_FLAG_LIST_H_ | 149 #endif // VM_FLAG_LIST_H_ |
OLD | NEW |