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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 "deoptimize the optimized code if the layout of the maps changes.") | 402 "deoptimize the optimized code if the layout of the maps changes.") |
403 | 403 |
404 // Flags for TurboFan. | 404 // Flags for TurboFan. |
405 DEFINE_BOOL(turbo, false, "enable TurboFan compiler") | 405 DEFINE_BOOL(turbo, false, "enable TurboFan compiler") |
406 DEFINE_BOOL(turbo_shipping, true, "enable TurboFan compiler on subset") | 406 DEFINE_BOOL(turbo_shipping, true, "enable TurboFan compiler on subset") |
407 DEFINE_BOOL(turbo_greedy_regalloc, false, "use the greedy register allocator") | 407 DEFINE_BOOL(turbo_greedy_regalloc, false, "use the greedy register allocator") |
408 DEFINE_BOOL(turbo_preprocess_ranges, true, | 408 DEFINE_BOOL(turbo_preprocess_ranges, true, |
409 "run pre-register allocation heuristics") | 409 "run pre-register allocation heuristics") |
410 DEFINE_BOOL(turbo_loop_stackcheck, true, "enable stack checks in loops") | 410 DEFINE_BOOL(turbo_loop_stackcheck, true, "enable stack checks in loops") |
411 | 411 |
412 // TODO(mtrofin): remove the 2 implications. | |
413 DEFINE_NEG_IMPLICATION(turbo_greedy_regalloc, turbo_preprocess_ranges) | |
414 DEFINE_NEG_IMPLICATION(turbo_greedy_regalloc, turbo_loop_stackcheck) | |
415 | |
416 DEFINE_IMPLICATION(turbo, turbo_asm_deoptimization) | 412 DEFINE_IMPLICATION(turbo, turbo_asm_deoptimization) |
417 DEFINE_STRING(turbo_filter, "~~", "optimization filter for TurboFan compiler") | 413 DEFINE_STRING(turbo_filter, "~~", "optimization filter for TurboFan compiler") |
418 DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR") | 414 DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR") |
419 DEFINE_BOOL(trace_turbo_graph, false, "trace generated TurboFan graphs") | 415 DEFINE_BOOL(trace_turbo_graph, false, "trace generated TurboFan graphs") |
420 DEFINE_IMPLICATION(trace_turbo_graph, trace_turbo) | 416 DEFINE_IMPLICATION(trace_turbo_graph, trace_turbo) |
421 DEFINE_STRING(trace_turbo_cfg_file, NULL, | 417 DEFINE_STRING(trace_turbo_cfg_file, NULL, |
422 "trace turbo cfg graph (for C1 visualizer) to a given file name") | 418 "trace turbo cfg graph (for C1 visualizer) to a given file name") |
423 DEFINE_BOOL(trace_turbo_types, true, "trace TurboFan's types") | 419 DEFINE_BOOL(trace_turbo_types, true, "trace TurboFan's types") |
424 DEFINE_BOOL(trace_turbo_scheduler, false, "trace TurboFan's scheduler") | 420 DEFINE_BOOL(trace_turbo_scheduler, false, "trace TurboFan's scheduler") |
425 DEFINE_BOOL(trace_turbo_reduction, false, "trace TurboFan's various reducers") | 421 DEFINE_BOOL(trace_turbo_reduction, false, "trace TurboFan's various reducers") |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 #undef DEFINE_ALIAS_FLOAT | 1102 #undef DEFINE_ALIAS_FLOAT |
1107 #undef DEFINE_ALIAS_ARGS | 1103 #undef DEFINE_ALIAS_ARGS |
1108 | 1104 |
1109 #undef FLAG_MODE_DECLARE | 1105 #undef FLAG_MODE_DECLARE |
1110 #undef FLAG_MODE_DEFINE | 1106 #undef FLAG_MODE_DEFINE |
1111 #undef FLAG_MODE_DEFINE_DEFAULTS | 1107 #undef FLAG_MODE_DEFINE_DEFAULTS |
1112 #undef FLAG_MODE_META | 1108 #undef FLAG_MODE_META |
1113 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1109 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1114 | 1110 |
1115 #undef COMMA | 1111 #undef COMMA |
OLD | NEW |