| 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, false, bool, false, \ | 28 C(background_compilation, false, true, bool, true, \ |
| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 "Print verbose GC header interval.") \ | 171 "Print verbose GC header interval.") \ |
| 172 R(verify_after_gc, false, bool, false, \ | 172 R(verify_after_gc, false, bool, false, \ |
| 173 "Enables heap verification after GC.") \ | 173 "Enables heap verification after GC.") \ |
| 174 R(verify_before_gc, false, bool, false, \ | 174 R(verify_before_gc, false, bool, false, \ |
| 175 "Enables heap verification before GC.") \ | 175 "Enables heap verification before GC.") \ |
| 176 D(verify_on_transition, bool, false, \ | 176 D(verify_on_transition, bool, false, \ |
| 177 "Verify on dart <==> VM.") \ | 177 "Verify on dart <==> VM.") \ |
| 178 | 178 |
| 179 | 179 |
| 180 #endif // VM_FLAG_LIST_H_ | 180 #endif // VM_FLAG_LIST_H_ |
| OLD | NEW |