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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 "block queued jobs until released") | 397 "block queued jobs until released") |
398 DEFINE_BOOL(concurrent_osr, true, "concurrent on-stack replacement") | 398 DEFINE_BOOL(concurrent_osr, true, "concurrent on-stack replacement") |
399 DEFINE_IMPLICATION(concurrent_osr, concurrent_recompilation) | 399 DEFINE_IMPLICATION(concurrent_osr, concurrent_recompilation) |
400 | 400 |
401 DEFINE_BOOL(omit_map_checks_for_leaf_maps, true, | 401 DEFINE_BOOL(omit_map_checks_for_leaf_maps, true, |
402 "do not emit check maps for constant values that have a leaf map, " | 402 "do not emit check maps for constant values that have a leaf map, " |
403 "deoptimize the optimized code if the layout of the maps changes.") | 403 "deoptimize the optimized code if the layout of the maps changes.") |
404 | 404 |
405 // Flags for TurboFan. | 405 // Flags for TurboFan. |
406 DEFINE_BOOL(turbo, false, "enable TurboFan compiler") | 406 DEFINE_BOOL(turbo, false, "enable TurboFan compiler") |
407 DEFINE_IMPLICATION(turbo, turbo_asm_deoptimization) | |
408 DEFINE_IMPLICATION(turbo, turbo_inlining) | |
409 DEFINE_BOOL(turbo_shipping, true, "enable TurboFan compiler on subset") | 407 DEFINE_BOOL(turbo_shipping, true, "enable TurboFan compiler on subset") |
410 DEFINE_BOOL(turbo_greedy_regalloc, false, "use the greedy register allocator") | 408 DEFINE_BOOL(turbo_greedy_regalloc, false, "use the greedy register allocator") |
411 DEFINE_BOOL(turbo_preprocess_ranges, true, | 409 DEFINE_BOOL(turbo_preprocess_ranges, true, |
412 "run pre-register allocation heuristics") | 410 "run pre-register allocation heuristics") |
413 DEFINE_BOOL(turbo_loop_stackcheck, true, "enable stack checks in loops") | 411 DEFINE_BOOL(turbo_loop_stackcheck, true, "enable stack checks in loops") |
| 412 |
| 413 DEFINE_IMPLICATION(turbo, turbo_asm_deoptimization) |
414 DEFINE_STRING(turbo_filter, "~~", "optimization filter for TurboFan compiler") | 414 DEFINE_STRING(turbo_filter, "~~", "optimization filter for TurboFan compiler") |
415 DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR") | 415 DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR") |
416 DEFINE_IMPLICATION(trace_turbo, turbo_source_positions) | |
417 DEFINE_BOOL(trace_turbo_graph, false, "trace generated TurboFan graphs") | 416 DEFINE_BOOL(trace_turbo_graph, false, "trace generated TurboFan graphs") |
418 DEFINE_IMPLICATION(trace_turbo_graph, trace_turbo) | 417 DEFINE_IMPLICATION(trace_turbo_graph, trace_turbo) |
419 DEFINE_STRING(trace_turbo_cfg_file, NULL, | 418 DEFINE_STRING(trace_turbo_cfg_file, NULL, |
420 "trace turbo cfg graph (for C1 visualizer) to a given file name") | 419 "trace turbo cfg graph (for C1 visualizer) to a given file name") |
421 DEFINE_BOOL(trace_turbo_types, true, "trace TurboFan's types") | 420 DEFINE_BOOL(trace_turbo_types, true, "trace TurboFan's types") |
422 DEFINE_BOOL(trace_turbo_scheduler, false, "trace TurboFan's scheduler") | 421 DEFINE_BOOL(trace_turbo_scheduler, false, "trace TurboFan's scheduler") |
423 DEFINE_BOOL(trace_turbo_reduction, false, "trace TurboFan's various reducers") | 422 DEFINE_BOOL(trace_turbo_reduction, false, "trace TurboFan's various reducers") |
424 DEFINE_BOOL(trace_turbo_jt, false, "trace TurboFan's jump threading") | 423 DEFINE_BOOL(trace_turbo_jt, false, "trace TurboFan's jump threading") |
425 DEFINE_BOOL(trace_turbo_ceq, false, "trace TurboFan's control equivalence") | 424 DEFINE_BOOL(trace_turbo_ceq, false, "trace TurboFan's control equivalence") |
426 DEFINE_BOOL(turbo_asm, true, "enable TurboFan for asm.js code") | 425 DEFINE_BOOL(turbo_asm, true, "enable TurboFan for asm.js code") |
427 DEFINE_BOOL(turbo_asm_deoptimization, false, | 426 DEFINE_BOOL(turbo_asm_deoptimization, false, |
428 "enable deoptimization in TurboFan for asm.js code") | 427 "enable deoptimization in TurboFan for asm.js code") |
429 DEFINE_BOOL(turbo_verify, DEBUG_BOOL, "verify TurboFan graphs at each phase") | 428 DEFINE_BOOL(turbo_verify, DEBUG_BOOL, "verify TurboFan graphs at each phase") |
430 DEFINE_BOOL(turbo_stats, false, "print TurboFan statistics") | 429 DEFINE_BOOL(turbo_stats, false, "print TurboFan statistics") |
431 DEFINE_BOOL(turbo_splitting, true, "split nodes during scheduling in TurboFan") | 430 DEFINE_BOOL(turbo_splitting, true, "split nodes during scheduling in TurboFan") |
432 DEFINE_BOOL(turbo_types, true, "use typed lowering in TurboFan") | 431 DEFINE_BOOL(turbo_types, true, "use typed lowering in TurboFan") |
433 DEFINE_BOOL(turbo_type_feedback, false, "use type feedback in TurboFan") | 432 DEFINE_BOOL(turbo_type_feedback, false, "use type feedback in TurboFan") |
434 DEFINE_BOOL(turbo_source_positions, false, | 433 DEFINE_BOOL(turbo_source_positions, false, |
435 "track source code positions when building TurboFan IR") | 434 "track source code positions when building TurboFan IR") |
| 435 DEFINE_IMPLICATION(trace_turbo, turbo_source_positions) |
436 DEFINE_BOOL(function_context_specialization, false, | 436 DEFINE_BOOL(function_context_specialization, false, |
437 "enable function context specialization in TurboFan") | 437 "enable function context specialization in TurboFan") |
438 DEFINE_BOOL(native_context_specialization, true, | 438 DEFINE_BOOL(native_context_specialization, true, |
439 "enable native context specialization in TurboFan") | 439 "enable native context specialization in TurboFan") |
440 DEFINE_BOOL(turbo_inlining, false, "enable inlining in TurboFan") | 440 DEFINE_BOOL(turbo_inlining, false, "enable inlining in TurboFan") |
441 DEFINE_BOOL(trace_turbo_inlining, false, "trace TurboFan inlining") | 441 DEFINE_BOOL(trace_turbo_inlining, false, "trace TurboFan inlining") |
442 DEFINE_BOOL(loop_assignment_analysis, true, "perform loop assignment analysis") | 442 DEFINE_BOOL(loop_assignment_analysis, true, "perform loop assignment analysis") |
443 DEFINE_BOOL(turbo_profiling, false, "enable profiling in TurboFan") | 443 DEFINE_BOOL(turbo_profiling, false, "enable profiling in TurboFan") |
444 DEFINE_BOOL(turbo_verify_allocation, DEBUG_BOOL, | 444 DEFINE_BOOL(turbo_verify_allocation, DEBUG_BOOL, |
445 "verify register allocation in TurboFan") | 445 "verify register allocation in TurboFan") |
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 #undef DEFINE_ALIAS_FLOAT | 1105 #undef DEFINE_ALIAS_FLOAT |
1106 #undef DEFINE_ALIAS_ARGS | 1106 #undef DEFINE_ALIAS_ARGS |
1107 | 1107 |
1108 #undef FLAG_MODE_DECLARE | 1108 #undef FLAG_MODE_DECLARE |
1109 #undef FLAG_MODE_DEFINE | 1109 #undef FLAG_MODE_DEFINE |
1110 #undef FLAG_MODE_DEFINE_DEFAULTS | 1110 #undef FLAG_MODE_DEFINE_DEFAULTS |
1111 #undef FLAG_MODE_META | 1111 #undef FLAG_MODE_META |
1112 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1112 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1113 | 1113 |
1114 #undef COMMA | 1114 #undef COMMA |
OLD | NEW |