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 #if defined(TARGET_ARCH_DBC) | 8 #if defined(TARGET_ARCH_DBC) |
9 #define USING_DBC 1 | 9 #define USING_DBC 1 |
10 #else | 10 #else |
11 #define USING_DBC 0 | 11 #define USING_DBC 0 |
12 #endif | 12 #endif |
13 | 13 |
| 14 // Disable background compilation by default on armv5te. The relevant |
| 15 // implementations are uniprocessors. |
| 16 #if defined(TARGET_ARCH_ARM_5TE) |
| 17 #define USING_BACKGROUND_COMPILATION false |
| 18 #else |
| 19 #define USING_BACKGROUND_COMPILATION true |
| 20 #endif |
| 21 |
14 // List of all flags in the VM. | 22 // List of all flags in the VM. |
15 // Flags can be one of three categories: | 23 // Flags can be one of three categories: |
16 // * P roduct flags: Can be set in any of the deployment modes, including in | 24 // * P roduct flags: Can be set in any of the deployment modes, including in |
17 // production. | 25 // production. |
18 // * D ebug flags: Can only be set in debug VMs, which also have assertions | 26 // * D ebug flags: Can only be set in debug VMs, which also have assertions |
19 // enabled. | 27 // enabled. |
20 // * R elease flags: Generally available flags except when building product. | 28 // * R elease flags: Generally available flags except when building product. |
21 // * pre C ompile flags: Generally available flags except when building product | 29 // * pre C ompile flags: Generally available flags except when building product |
22 // or precompiled runtime. | 30 // or precompiled runtime. |
23 // | 31 // |
24 // Usage: | 32 // Usage: |
25 // P(name, type, default_value, comment) | 33 // P(name, type, default_value, comment) |
26 // D(name, type, default_value, comment) | 34 // D(name, type, default_value, comment) |
27 // R(name, product_value, type, default_value, comment) | 35 // R(name, product_value, type, default_value, comment) |
28 // C(name, precompiled_value, product_value, type, default_value, comment) | 36 // C(name, precompiled_value, product_value, type, default_value, comment) |
29 #define FLAG_LIST(P, R, D, C) \ | 37 #define FLAG_LIST(P, R, D, C) \ |
30 P(always_megamorphic_calls, bool, false, \ | 38 P(always_megamorphic_calls, bool, false, \ |
31 "Instance call always as megamorphic.") \ | 39 "Instance call always as megamorphic.") \ |
32 P(background_compilation, bool, true, \ | 40 P(background_compilation, bool, USING_BACKGROUND_COMPILATION, \ |
33 "Run optimizing compilation in background") \ | 41 "Run optimizing compilation in background") \ |
34 R(background_compilation_stop_alot, false, bool, false, \ | 42 R(background_compilation_stop_alot, false, bool, false, \ |
35 "Stress test system: stop background compiler often.") \ | 43 "Stress test system: stop background compiler often.") \ |
36 R(break_at_isolate_spawn, false, bool, false, \ | 44 R(break_at_isolate_spawn, false, bool, false, \ |
37 "Insert a one-time breakpoint at the entrypoint for all spawned isolates") \ | 45 "Insert a one-time breakpoint at the entrypoint for all spawned isolates") \ |
38 C(collect_code, false, true, bool, true, \ | 46 C(collect_code, false, true, bool, true, \ |
39 "Attempt to GC infrequently used code.") \ | 47 "Attempt to GC infrequently used code.") \ |
40 P(collect_dynamic_function_names, bool, true, \ | 48 P(collect_dynamic_function_names, bool, true, \ |
41 "Collects all dynamic function names to identify unique targets") \ | 49 "Collects all dynamic function names to identify unique targets") \ |
42 R(dedup_instructions, true, bool, false, \ | 50 R(dedup_instructions, true, bool, false, \ |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 "Print verbose GC header interval.") \ | 185 "Print verbose GC header interval.") \ |
178 R(verify_after_gc, false, bool, false, \ | 186 R(verify_after_gc, false, bool, false, \ |
179 "Enables heap verification after GC.") \ | 187 "Enables heap verification after GC.") \ |
180 R(verify_before_gc, false, bool, false, \ | 188 R(verify_before_gc, false, bool, false, \ |
181 "Enables heap verification before GC.") \ | 189 "Enables heap verification before GC.") \ |
182 D(verify_on_transition, bool, false, \ | 190 D(verify_on_transition, bool, false, \ |
183 "Verify on dart <==> VM.") \ | 191 "Verify on dart <==> VM.") \ |
184 | 192 |
185 | 193 |
186 #endif // VM_FLAG_LIST_H_ | 194 #endif // VM_FLAG_LIST_H_ |
OLD | NEW |