OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file defines all of the flags. It is separated into different section, | 5 // This file defines all of the flags. It is separated into different section, |
6 // for Debug, Release, Logging and Profiling, etc. To add a new flag, find the | 6 // for Debug, Release, Logging and Profiling, etc. To add a new flag, find the |
7 // correct section, and use one of the DEFINE_ macros, without a trailing ';'. | 7 // correct section, and use one of the DEFINE_ macros, without a trailing ';'. |
8 // | 8 // |
9 // This include does not have a guard, because it is a template-style include, | 9 // This include does not have a guard, because it is a template-style include, |
10 // which can be included multiple times in different modes. It expects to have | 10 // which can be included multiple times in different modes. It expects to have |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 "artificial compilation delay in ms") | 326 "artificial compilation delay in ms") |
327 DEFINE_BOOL(block_concurrent_recompilation, false, | 327 DEFINE_BOOL(block_concurrent_recompilation, false, |
328 "block queued jobs until released") | 328 "block queued jobs until released") |
329 DEFINE_BOOL(concurrent_osr, true, "concurrent on-stack replacement") | 329 DEFINE_BOOL(concurrent_osr, true, "concurrent on-stack replacement") |
330 DEFINE_IMPLICATION(concurrent_osr, concurrent_recompilation) | 330 DEFINE_IMPLICATION(concurrent_osr, concurrent_recompilation) |
331 | 331 |
332 DEFINE_BOOL(omit_map_checks_for_leaf_maps, true, | 332 DEFINE_BOOL(omit_map_checks_for_leaf_maps, true, |
333 "do not emit check maps for constant values that have a leaf map, " | 333 "do not emit check maps for constant values that have a leaf map, " |
334 "deoptimize the optimized code if the layout of the maps changes.") | 334 "deoptimize the optimized code if the layout of the maps changes.") |
335 | 335 |
| 336 // Flags for TurboFan. |
| 337 DEFINE_STRING(turbo_filter, "~", "optimization filter for TurboFan compiler") |
| 338 DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR") |
| 339 DEFINE_BOOL(trace_turbo_types, true, "trace generated TurboFan types") |
| 340 DEFINE_BOOL(trace_turbo_scheduler, false, "trace generated TurboFan scheduler") |
| 341 DEFINE_BOOL(turbo_verify, false, "verify TurboFan graphs at each phase") |
| 342 DEFINE_BOOL(turbo_stats, false, "print TurboFan statistics") |
| 343 DEFINE_BOOL(turbo_types, false, "use typed lowering in TurboFan") |
| 344 DEFINE_BOOL(turbo_source_positions, false, |
| 345 "track source code positions when building TurboFan IR") |
| 346 DEFINE_BOOL(context_specialization, true, |
| 347 "enable context specialization in TurboFan") |
| 348 DEFINE_BOOL(turbo_deoptimization, false, "enable deoptimization in TurboFan") |
| 349 |
336 DEFINE_INT(typed_array_max_size_in_heap, 64, | 350 DEFINE_INT(typed_array_max_size_in_heap, 64, |
337 "threshold for in-heap typed array") | 351 "threshold for in-heap typed array") |
338 | 352 |
339 // Profiler flags. | 353 // Profiler flags. |
340 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler") | 354 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler") |
341 // 0x1800 fits in the immediate field of an ARM instruction. | 355 // 0x1800 fits in the immediate field of an ARM instruction. |
342 DEFINE_INT(interrupt_budget, 0x1800, | 356 DEFINE_INT(interrupt_budget, 0x1800, |
343 "execution budget before interrupt is triggered") | 357 "execution budget before interrupt is triggered") |
344 DEFINE_INT(type_info_threshold, 25, | 358 DEFINE_INT(type_info_threshold, 25, |
345 "percentage of ICs that must have type info to allow optimization") | 359 "percentage of ICs that must have type info to allow optimization") |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 | 734 |
721 // heap.cc | 735 // heap.cc |
722 DEFINE_BOOL(gc_verbose, false, "print stuff during garbage collection") | 736 DEFINE_BOOL(gc_verbose, false, "print stuff during garbage collection") |
723 DEFINE_BOOL(heap_stats, false, "report heap statistics before and after GC") | 737 DEFINE_BOOL(heap_stats, false, "report heap statistics before and after GC") |
724 DEFINE_BOOL(code_stats, false, "report code statistics after GC") | 738 DEFINE_BOOL(code_stats, false, "report code statistics after GC") |
725 DEFINE_BOOL(verify_native_context_separation, false, | 739 DEFINE_BOOL(verify_native_context_separation, false, |
726 "verify that code holds on to at most one native context after GC") | 740 "verify that code holds on to at most one native context after GC") |
727 DEFINE_BOOL(print_handles, false, "report handles after GC") | 741 DEFINE_BOOL(print_handles, false, "report handles after GC") |
728 DEFINE_BOOL(print_global_handles, false, "report global handles after GC") | 742 DEFINE_BOOL(print_global_handles, false, "report global handles after GC") |
729 | 743 |
| 744 // TurboFan debug-only flags. |
| 745 DEFINE_BOOL(print_turbo_replay, false, |
| 746 "print C++ code to recreate TurboFan graphs") |
| 747 |
730 // interface.cc | 748 // interface.cc |
731 DEFINE_BOOL(print_interfaces, false, "print interfaces") | 749 DEFINE_BOOL(print_interfaces, false, "print interfaces") |
732 DEFINE_BOOL(print_interface_details, false, "print interface inference details") | 750 DEFINE_BOOL(print_interface_details, false, "print interface inference details") |
733 DEFINE_INT(print_interface_depth, 5, "depth for printing interfaces") | 751 DEFINE_INT(print_interface_depth, 5, "depth for printing interfaces") |
734 | 752 |
735 // objects.cc | 753 // objects.cc |
736 DEFINE_BOOL(trace_normalization, false, | 754 DEFINE_BOOL(trace_normalization, false, |
737 "prints when objects are turned into dictionaries.") | 755 "prints when objects are turned into dictionaries.") |
738 | 756 |
739 // runtime.cc | 757 // runtime.cc |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 #undef DEFINE_ALIAS_FLOAT | 932 #undef DEFINE_ALIAS_FLOAT |
915 #undef DEFINE_ALIAS_ARGS | 933 #undef DEFINE_ALIAS_ARGS |
916 | 934 |
917 #undef FLAG_MODE_DECLARE | 935 #undef FLAG_MODE_DECLARE |
918 #undef FLAG_MODE_DEFINE | 936 #undef FLAG_MODE_DEFINE |
919 #undef FLAG_MODE_DEFINE_DEFAULTS | 937 #undef FLAG_MODE_DEFINE_DEFAULTS |
920 #undef FLAG_MODE_META | 938 #undef FLAG_MODE_META |
921 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 939 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
922 | 940 |
923 #undef COMMA | 941 #undef COMMA |
OLD | NEW |