| 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 // List of all flags in the VM. | 14 // List of all flags in the VM. |
| 15 // Flags can be one of three categories: | 15 // Flags can be one of three categories: |
| 16 // * P roduct flags: Can be set in any of the deployment modes, including in | 16 // * P roduct flags: Can be set in any of the deployment modes, including in |
| 17 // production. | 17 // production. |
| 18 // * D ebug flags: Can only be set in debug VMs, which also have assertions | 18 // * D ebug flags: Can only be set in debug VMs, which also have assertions |
| 19 // enabled. | 19 // enabled. |
| 20 // * R elease flags: Generally available flags except when building product. | 20 // * R elease flags: Generally available flags except when building product. |
| 21 // * pre C ompile flags: Generally available flags except when building product | 21 // * pre C ompile flags: Generally available flags except when building product |
| 22 // or precompiled runtime. | 22 // or precompiled runtime. |
| 23 // | 23 // |
| 24 // Usage: | 24 // Usage: |
| 25 // P(name, type, default_value, comment) | 25 // P(name, type, default_value, comment) |
| 26 // D(name, type, default_value, comment) | 26 // D(name, type, default_value, comment) |
| 27 // R(name, product_value, type, default_value, comment) | 27 // R(name, product_value, type, default_value, comment) |
| 28 // C(name, precompiled_value, product_value, type, default_value, comment) | 28 // C(name, precompiled_value, product_value, type, default_value, comment) |
| 29 #define FLAG_LIST(P, R, D, C) \ | 29 #define FLAG_LIST(P, R, D, C) \ |
| 30 P(allow_absolute_addresses, bool, true, \ | |
| 31 "Allow embedding absolute addresses in generated code.") \ | |
| 32 P(always_megamorphic_calls, bool, false, \ | 30 P(always_megamorphic_calls, bool, false, \ |
| 33 "Instance call always as megamorphic.") \ | 31 "Instance call always as megamorphic.") \ |
| 34 C(background_compilation, false, true, bool, true, \ | 32 C(background_compilation, false, true, bool, true, \ |
| 35 "Run optimizing compilation in background") \ | 33 "Run optimizing compilation in background") \ |
| 36 R(background_compilation_stop_alot, false, bool, false, \ | 34 R(background_compilation_stop_alot, false, bool, false, \ |
| 37 "Stress test system: stop background compiler often.") \ | 35 "Stress test system: stop background compiler often.") \ |
| 38 R(break_at_isolate_spawn, false, bool, false, \ | 36 R(break_at_isolate_spawn, false, bool, false, \ |
| 39 "Insert a one-time breakpoint at the entrypoint for all spawned isolates") \ | 37 "Insert a one-time breakpoint at the entrypoint for all spawned isolates") \ |
| 40 C(collect_code, false, true, bool, true, \ | 38 C(collect_code, false, true, bool, true, \ |
| 41 "Attempt to GC infrequently used code.") \ | 39 "Attempt to GC infrequently used code.") \ |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 "Print verbose GC header interval.") \ | 177 "Print verbose GC header interval.") \ |
| 180 R(verify_after_gc, false, bool, false, \ | 178 R(verify_after_gc, false, bool, false, \ |
| 181 "Enables heap verification after GC.") \ | 179 "Enables heap verification after GC.") \ |
| 182 R(verify_before_gc, false, bool, false, \ | 180 R(verify_before_gc, false, bool, false, \ |
| 183 "Enables heap verification before GC.") \ | 181 "Enables heap verification before GC.") \ |
| 184 D(verify_on_transition, bool, false, \ | 182 D(verify_on_transition, bool, false, \ |
| 185 "Verify on dart <==> VM.") \ | 183 "Verify on dart <==> VM.") \ |
| 186 | 184 |
| 187 | 185 |
| 188 #endif // VM_FLAG_LIST_H_ | 186 #endif // VM_FLAG_LIST_H_ |
| OLD | NEW |