| 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 | 15 |
| 16 #define FLAG_LIST(P, R, D) \ | 16 #define FLAG_LIST(P, R, D) \ |
| 17 R(disassemble, false, bool, false, "Disassemble dart code.") \ | 17 R(disable_alloc_stubs_after_gc, false, bool, false, \ |
| 18 R(disassemble_optimized, false, bool, false, "Disassemble optimized code.") \ | 18 "Stress testing flag.") \ |
| 19 R(dump_symbol_stats, false, bool, false, "Dump symbol table statistics") \ | 19 R(disassemble, false, bool, false, \ |
| 20 R(pretenure_all, false, bool, false, "Global pretenuring (for testing).") \ | 20 "Disassemble dart code.") \ |
| 21 D(trace_handles, bool, false, "Traces allocation of handles.") \ | 21 R(disassemble_optimized, false, bool, false, \ |
| 22 D(trace_zones, bool, false, "Traces allocation sizes in the zone.") \ | 22 "Disassemble optimized code.") \ |
| 23 P(verbose_gc, bool, false, "Enables verbose GC.") \ | 23 R(dump_symbol_stats, false, bool, false, \ |
| 24 "Dump symbol table statistics") \ |
| 25 R(gc_at_alloc, false, bool, false, \ |
| 26 "GC at every allocation.") \ |
| 27 P(new_gen_ext_limit, int, 64, \ |
| 28 "maximum total external size (MB) in new gen before triggering GC") \ |
| 29 R(pretenure_all, false, bool, false, \ |
| 30 "Global pretenuring (for testing).") \ |
| 31 P(pretenure_interval, int, 10, \ |
| 32 "Back off pretenuring after this many cycles.") \ |
| 33 P(pretenure_threshold, int, 98, \ |
| 34 "Trigger pretenuring when this many percent are promoted.") \ |
| 35 D(trace_handles, bool, false, \ |
| 36 "Traces allocation of handles.") \ |
| 37 D(trace_zones, bool, false, \ |
| 38 "Traces allocation sizes in the zone.") \ |
| 39 P(verbose_gc, bool, false, \ |
| 40 "Enables verbose GC.") \ |
| 41 P(verbose_gc_hdr, int, 40, \ |
| 42 "Print verbose GC header interval.") \ |
| 43 R(verify_after_gc, false, bool, false, \ |
| 44 "Enables heap verification after GC.") \ |
| 45 R(verify_before_gc, false, bool, false, \ |
| 46 "Enables heap verification before GC.") \ |
| 24 | 47 |
| 25 #endif // VM_FLAG_LIST_H_ | 48 #endif // VM_FLAG_LIST_H_ |
| OLD | NEW |