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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 DEFINE_BOOL(concurrent_osr, false, "concurrent on-stack replacement") | 415 DEFINE_BOOL(concurrent_osr, false, "concurrent on-stack replacement") |
416 DEFINE_IMPLICATION(concurrent_osr, concurrent_recompilation) | 416 DEFINE_IMPLICATION(concurrent_osr, concurrent_recompilation) |
417 | 417 |
418 DEFINE_BOOL(omit_map_checks_for_leaf_maps, true, | 418 DEFINE_BOOL(omit_map_checks_for_leaf_maps, true, |
419 "do not emit check maps for constant values that have a leaf map, " | 419 "do not emit check maps for constant values that have a leaf map, " |
420 "deoptimize the optimized code if the layout of the maps changes.") | 420 "deoptimize the optimized code if the layout of the maps changes.") |
421 | 421 |
422 // Flags for TurboFan. | 422 // Flags for TurboFan. |
423 DEFINE_BOOL(turbo, false, "enable TurboFan compiler") | 423 DEFINE_BOOL(turbo, false, "enable TurboFan compiler") |
424 DEFINE_IMPLICATION(turbo, turbo_asm_deoptimization) | 424 DEFINE_IMPLICATION(turbo, turbo_asm_deoptimization) |
425 DEFINE_IMPLICATION(turbo, turbo_inlining) | |
426 DEFINE_BOOL(turbo_shipping, true, "enable TurboFan compiler on subset") | 425 DEFINE_BOOL(turbo_shipping, true, "enable TurboFan compiler on subset") |
427 DEFINE_BOOL(turbo_greedy_regalloc, false, "use the greedy register allocator") | 426 DEFINE_BOOL(turbo_greedy_regalloc, false, "use the greedy register allocator") |
428 DEFINE_BOOL(turbo_sp_frame_access, false, | 427 DEFINE_BOOL(turbo_sp_frame_access, false, |
429 "use stack pointer-relative access to frame wherever possible") | 428 "use stack pointer-relative access to frame wherever possible") |
430 DEFINE_BOOL(turbo_preprocess_ranges, true, | 429 DEFINE_BOOL(turbo_preprocess_ranges, true, |
431 "run pre-register allocation heuristics") | 430 "run pre-register allocation heuristics") |
432 DEFINE_BOOL(turbo_loop_stackcheck, true, "enable stack checks in loops") | 431 DEFINE_BOOL(turbo_loop_stackcheck, true, "enable stack checks in loops") |
433 DEFINE_STRING(turbo_filter, "~~", "optimization filter for TurboFan compiler") | 432 DEFINE_STRING(turbo_filter, "~~", "optimization filter for TurboFan compiler") |
434 DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR") | 433 DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR") |
435 DEFINE_BOOL(trace_turbo_graph, false, "trace generated TurboFan graphs") | 434 DEFINE_BOOL(trace_turbo_graph, false, "trace generated TurboFan graphs") |
(...skipping 12 matching lines...) Expand all Loading... |
448 DEFINE_BOOL(turbo_stats, false, "print TurboFan statistics") | 447 DEFINE_BOOL(turbo_stats, false, "print TurboFan statistics") |
449 DEFINE_BOOL(turbo_splitting, true, "split nodes during scheduling in TurboFan") | 448 DEFINE_BOOL(turbo_splitting, true, "split nodes during scheduling in TurboFan") |
450 DEFINE_BOOL(turbo_types, true, "use typed lowering in TurboFan") | 449 DEFINE_BOOL(turbo_types, true, "use typed lowering in TurboFan") |
451 DEFINE_BOOL(turbo_source_positions, false, | 450 DEFINE_BOOL(turbo_source_positions, false, |
452 "track source code positions when building TurboFan IR") | 451 "track source code positions when building TurboFan IR") |
453 DEFINE_IMPLICATION(trace_turbo, turbo_source_positions) | 452 DEFINE_IMPLICATION(trace_turbo, turbo_source_positions) |
454 DEFINE_BOOL(function_context_specialization, false, | 453 DEFINE_BOOL(function_context_specialization, false, |
455 "enable function context specialization in TurboFan") | 454 "enable function context specialization in TurboFan") |
456 DEFINE_BOOL(native_context_specialization, true, | 455 DEFINE_BOOL(native_context_specialization, true, |
457 "enable native context specialization in TurboFan") | 456 "enable native context specialization in TurboFan") |
458 DEFINE_BOOL(turbo_inlining, false, "enable inlining in TurboFan") | 457 DEFINE_BOOL(turbo_inlining, true, "enable inlining in TurboFan") |
459 DEFINE_BOOL(trace_turbo_inlining, false, "trace TurboFan inlining") | 458 DEFINE_BOOL(trace_turbo_inlining, false, "trace TurboFan inlining") |
460 DEFINE_BOOL(loop_assignment_analysis, true, "perform loop assignment analysis") | 459 DEFINE_BOOL(loop_assignment_analysis, true, "perform loop assignment analysis") |
461 DEFINE_BOOL(turbo_profiling, false, "enable profiling in TurboFan") | 460 DEFINE_BOOL(turbo_profiling, false, "enable profiling in TurboFan") |
462 DEFINE_BOOL(turbo_verify_allocation, DEBUG_BOOL, | 461 DEFINE_BOOL(turbo_verify_allocation, DEBUG_BOOL, |
463 "verify register allocation in TurboFan") | 462 "verify register allocation in TurboFan") |
464 DEFINE_BOOL(turbo_move_optimization, true, "optimize gap moves in TurboFan") | 463 DEFINE_BOOL(turbo_move_optimization, true, "optimize gap moves in TurboFan") |
465 DEFINE_BOOL(turbo_jt, true, "enable jump threading in TurboFan") | 464 DEFINE_BOOL(turbo_jt, true, "enable jump threading in TurboFan") |
466 DEFINE_BOOL(turbo_osr, true, "enable OSR in TurboFan") | 465 DEFINE_BOOL(turbo_osr, true, "enable OSR in TurboFan") |
467 DEFINE_BOOL(turbo_stress_loop_peeling, false, | 466 DEFINE_BOOL(turbo_stress_loop_peeling, false, |
468 "stress loop peeling optimization") | 467 "stress loop peeling optimization") |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1161 #undef DEFINE_ALIAS_FLOAT | 1160 #undef DEFINE_ALIAS_FLOAT |
1162 #undef DEFINE_ALIAS_ARGS | 1161 #undef DEFINE_ALIAS_ARGS |
1163 | 1162 |
1164 #undef FLAG_MODE_DECLARE | 1163 #undef FLAG_MODE_DECLARE |
1165 #undef FLAG_MODE_DEFINE | 1164 #undef FLAG_MODE_DEFINE |
1166 #undef FLAG_MODE_DEFINE_DEFAULTS | 1165 #undef FLAG_MODE_DEFINE_DEFAULTS |
1167 #undef FLAG_MODE_META | 1166 #undef FLAG_MODE_META |
1168 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1167 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1169 | 1168 |
1170 #undef COMMA | 1169 #undef COMMA |
OLD | NEW |