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 R(break_at_isolate_spawn, false, bool, false, \ | 30 R(break_at_isolate_spawn, false, bool, false, \ |
31 "Insert a one-time breakpoint at the entrypoint for all spawned isolates") \ | 31 "Insert a one-time breakpoint at the entrypoint for all spawned isolates") \ |
32 C(collect_code, false, true, bool, true, \ | 32 C(collect_code, false, true, bool, true, \ |
33 "Attempt to GC infrequently used code.") \ | 33 "Attempt to GC infrequently used code.") \ |
34 P(collect_dynamic_function_names, bool, false, \ | 34 P(collect_dynamic_function_names, bool, false, \ |
35 "Collects all dynamic function names to identify unique targets") \ | 35 "Collects all dynamic function names to identify unique targets") \ |
36 R(dedup_instructions, true, bool, false, \ | 36 R(dedup_instructions, true, bool, false, \ |
37 "Canonicalize instructions when precompiling.") \ | 37 "Canonicalize instructions when precompiling.") \ |
38 C(deoptimize_alot, false, false, bool, false, \ | 38 C(deoptimize_alot, false, false, bool, false, \ |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 "Print verbose GC header interval.") \ | 169 "Print verbose GC header interval.") \ |
170 R(verify_after_gc, false, bool, false, \ | 170 R(verify_after_gc, false, bool, false, \ |
171 "Enables heap verification after GC.") \ | 171 "Enables heap verification after GC.") \ |
172 R(verify_before_gc, false, bool, false, \ | 172 R(verify_before_gc, false, bool, false, \ |
173 "Enables heap verification before GC.") \ | 173 "Enables heap verification before GC.") \ |
174 D(verify_on_transition, bool, false, \ | 174 D(verify_on_transition, bool, false, \ |
175 "Verify on dart <==> VM.") \ | 175 "Verify on dart <==> VM.") \ |
176 | 176 |
177 | 177 |
178 #endif // VM_FLAG_LIST_H_ | 178 #endif // VM_FLAG_LIST_H_ |
OLD | NEW |