| 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 RUNTIME_VM_FLAG_LIST_H_ | 5 #ifndef RUNTIME_VM_FLAG_LIST_H_ |
| 6 #define RUNTIME_VM_FLAG_LIST_H_ | 6 #define RUNTIME_VM_FLAG_LIST_H_ |
| 7 | 7 |
| 8 // Don't use USING_DBC outside of this file. | 8 // Don't use USING_DBC outside of this file. |
| 9 #if defined(TARGET_ARCH_DBC) | 9 #if defined(TARGET_ARCH_DBC) |
| 10 #define USING_DBC true | 10 #define USING_DBC true |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 R(disable_alloc_stubs_after_gc, false, bool, false, "Stress testing flag.") \ | 68 R(disable_alloc_stubs_after_gc, false, bool, false, "Stress testing flag.") \ |
| 69 R(disassemble, false, bool, false, "Disassemble dart code.") \ | 69 R(disassemble, false, bool, false, "Disassemble dart code.") \ |
| 70 R(disassemble_optimized, false, bool, false, "Disassemble optimized code.") \ | 70 R(disassemble_optimized, false, bool, false, "Disassemble optimized code.") \ |
| 71 R(dump_megamorphic_stats, false, bool, false, \ | 71 R(dump_megamorphic_stats, false, bool, false, \ |
| 72 "Dump megamorphic cache statistics") \ | 72 "Dump megamorphic cache statistics") \ |
| 73 R(dump_symbol_stats, false, bool, false, "Dump symbol table statistics") \ | 73 R(dump_symbol_stats, false, bool, false, "Dump symbol table statistics") \ |
| 74 P(dwarf_stack_traces, bool, false, \ | 74 P(dwarf_stack_traces, bool, false, \ |
| 75 "Emit DWARF line number and inlining info" \ | 75 "Emit DWARF line number and inlining info" \ |
| 76 "in dylib snapshots and don't symbolize stack traces.") \ | 76 "in dylib snapshots and don't symbolize stack traces.") \ |
| 77 R(enable_asserts, false, bool, false, "Enable assert statements.") \ | 77 R(enable_asserts, false, bool, false, "Enable assert statements.") \ |
| 78 R(enable_malloc_hooks, false, bool, false, \ | |
| 79 "Enable native memory statistic collection. Enabled by default in Debug " \ | |
| 80 "mode") \ | |
| 81 C(enable_mirrors, false, false, bool, true, \ | 78 C(enable_mirrors, false, false, bool, true, \ |
| 82 "Disable to make importing dart:mirrors an error.") \ | 79 "Disable to make importing dart:mirrors an error.") \ |
| 83 R(enable_type_checks, false, bool, false, "Enable type checks.") \ | 80 R(enable_type_checks, false, bool, false, "Enable type checks.") \ |
| 84 R(error_on_bad_override, false, bool, false, \ | 81 R(error_on_bad_override, false, bool, false, \ |
| 85 "Report error for bad overrides.") \ | 82 "Report error for bad overrides.") \ |
| 86 R(error_on_bad_type, false, bool, false, \ | 83 R(error_on_bad_type, false, bool, false, \ |
| 87 "Report error for malformed types.") \ | 84 "Report error for malformed types.") \ |
| 88 P(external_max_size, int, (kWordSize <= 4) ? 512 : 1024, \ | 85 P(external_max_size, int, (kWordSize <= 4) ? 512 : 1024, \ |
| 89 "Max total size of external allocations in MB, or 0 for unlimited," \ | 86 "Max total size of external allocations in MB, or 0 for unlimited," \ |
| 90 "e.g: --external_max_size=1024 allows up to 1024MB of externals") \ | 87 "e.g: --external_max_size=1024 allows up to 1024MB of externals") \ |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 "Print additional memory and latency metrics for benchmarking.") \ | 135 "Print additional memory and latency metrics for benchmarking.") \ |
| 139 R(print_ssa_liveranges, false, bool, false, \ | 136 R(print_ssa_liveranges, false, bool, false, \ |
| 140 "Print live ranges after allocation.") \ | 137 "Print live ranges after allocation.") \ |
| 141 R(print_stacktrace_at_api_error, false, bool, false, \ | 138 R(print_stacktrace_at_api_error, false, bool, false, \ |
| 142 "Attempt to print a native stack trace when an API error is created.") \ | 139 "Attempt to print a native stack trace when an API error is created.") \ |
| 143 C(print_stop_message, false, false, bool, false, "Print stop message.") \ | 140 C(print_stop_message, false, false, bool, false, "Print stop message.") \ |
| 144 D(print_variable_descriptors, bool, false, \ | 141 D(print_variable_descriptors, bool, false, \ |
| 145 "Print variable descriptors in disassembly.") \ | 142 "Print variable descriptors in disassembly.") \ |
| 146 R(profiler, false, bool, !USING_DBC && !USING_FUCHSIA, \ | 143 R(profiler, false, bool, !USING_DBC && !USING_FUCHSIA, \ |
| 147 "Enable the profiler.") \ | 144 "Enable the profiler.") \ |
| 145 R(profiler_native_memory, false, bool, false, \ |
| 146 "Enable native memory statistic collection.") \ |
| 148 P(reorder_basic_blocks, bool, true, "Reorder basic blocks") \ | 147 P(reorder_basic_blocks, bool, true, "Reorder basic blocks") \ |
| 149 C(causal_async_stacks, false, false, bool, true, "Improved async stacks") \ | 148 C(causal_async_stacks, false, false, bool, true, "Improved async stacks") \ |
| 150 C(stress_async_stacks, false, false, bool, false, \ | 149 C(stress_async_stacks, false, false, bool, false, \ |
| 151 "Stress test async stack traces") \ | 150 "Stress test async stack traces") \ |
| 152 C(async_debugger, false, false, bool, false, \ | 151 C(async_debugger, false, false, bool, false, \ |
| 153 "Debugger support async functions.") \ | 152 "Debugger support async functions.") \ |
| 154 R(support_ast_printer, false, bool, true, "Support the AST printer.") \ | 153 R(support_ast_printer, false, bool, true, "Support the AST printer.") \ |
| 155 R(support_compiler_stats, false, bool, true, "Support compiler stats.") \ | 154 R(support_compiler_stats, false, bool, true, "Support compiler stats.") \ |
| 156 C(support_debugger, false, false, bool, true, "Support the debugger.") \ | 155 C(support_debugger, false, false, bool, true, "Support the debugger.") \ |
| 157 R(support_disassembler, false, bool, true, "Support the disassembler.") \ | 156 R(support_disassembler, false, bool, true, "Support the disassembler.") \ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 180 P(verbose_gc_hdr, int, 40, "Print verbose GC header interval.") \ | 179 P(verbose_gc_hdr, int, 40, "Print verbose GC header interval.") \ |
| 181 R(verify_after_gc, false, bool, false, \ | 180 R(verify_after_gc, false, bool, false, \ |
| 182 "Enables heap verification after GC.") \ | 181 "Enables heap verification after GC.") \ |
| 183 R(verify_before_gc, false, bool, false, \ | 182 R(verify_before_gc, false, bool, false, \ |
| 184 "Enables heap verification before GC.") \ | 183 "Enables heap verification before GC.") \ |
| 185 D(verify_gc_contains, bool, false, \ | 184 D(verify_gc_contains, bool, false, \ |
| 186 "Enables verification of address contains during GC.") \ | 185 "Enables verification of address contains during GC.") \ |
| 187 D(verify_on_transition, bool, false, "Verify on dart <==> VM.") | 186 D(verify_on_transition, bool, false, "Verify on dart <==> VM.") |
| 188 | 187 |
| 189 #endif // RUNTIME_VM_FLAG_LIST_H_ | 188 #endif // RUNTIME_VM_FLAG_LIST_H_ |
| OLD | NEW |