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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 "artificial compilation delay in ms") | 412 "artificial compilation delay in ms") |
413 DEFINE_BOOL(block_concurrent_recompilation, false, | 413 DEFINE_BOOL(block_concurrent_recompilation, false, |
414 "block queued jobs until released") | 414 "block queued jobs until released") |
415 | 415 |
416 DEFINE_BOOL(omit_map_checks_for_leaf_maps, true, | 416 DEFINE_BOOL(omit_map_checks_for_leaf_maps, true, |
417 "do not emit check maps for constant values that have a leaf map, " | 417 "do not emit check maps for constant values that have a leaf map, " |
418 "deoptimize the optimized code if the layout of the maps changes.") | 418 "deoptimize the optimized code if the layout of the maps changes.") |
419 | 419 |
420 // Flags for TurboFan. | 420 // Flags for TurboFan. |
421 DEFINE_BOOL(turbo, false, "enable TurboFan compiler") | 421 DEFINE_BOOL(turbo, false, "enable TurboFan compiler") |
422 DEFINE_IMPLICATION(turbo, turbo_asm_deoptimization) | |
423 DEFINE_BOOL(turbo_sp_frame_access, false, | 422 DEFINE_BOOL(turbo_sp_frame_access, false, |
424 "use stack pointer-relative access to frame wherever possible") | 423 "use stack pointer-relative access to frame wherever possible") |
425 DEFINE_BOOL(turbo_preprocess_ranges, true, | 424 DEFINE_BOOL(turbo_preprocess_ranges, true, |
426 "run pre-register allocation heuristics") | 425 "run pre-register allocation heuristics") |
427 DEFINE_BOOL(turbo_loop_stackcheck, true, "enable stack checks in loops") | 426 DEFINE_BOOL(turbo_loop_stackcheck, true, "enable stack checks in loops") |
428 DEFINE_STRING(turbo_filter, "~~", "optimization filter for TurboFan compiler") | 427 DEFINE_STRING(turbo_filter, "~~", "optimization filter for TurboFan compiler") |
429 DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR") | 428 DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR") |
430 DEFINE_BOOL(trace_turbo_graph, false, "trace generated TurboFan graphs") | 429 DEFINE_BOOL(trace_turbo_graph, false, "trace generated TurboFan graphs") |
431 DEFINE_IMPLICATION(trace_turbo_graph, trace_turbo) | 430 DEFINE_IMPLICATION(trace_turbo_graph, trace_turbo) |
432 DEFINE_STRING(trace_turbo_cfg_file, NULL, | 431 DEFINE_STRING(trace_turbo_cfg_file, NULL, |
433 "trace turbo cfg graph (for C1 visualizer) to a given file name") | 432 "trace turbo cfg graph (for C1 visualizer) to a given file name") |
434 DEFINE_BOOL(trace_turbo_types, true, "trace TurboFan's types") | 433 DEFINE_BOOL(trace_turbo_types, true, "trace TurboFan's types") |
435 DEFINE_BOOL(trace_turbo_scheduler, false, "trace TurboFan's scheduler") | 434 DEFINE_BOOL(trace_turbo_scheduler, false, "trace TurboFan's scheduler") |
436 DEFINE_BOOL(trace_turbo_reduction, false, "trace TurboFan's various reducers") | 435 DEFINE_BOOL(trace_turbo_reduction, false, "trace TurboFan's various reducers") |
437 DEFINE_BOOL(trace_turbo_trimming, false, "trace TurboFan's graph trimmer") | 436 DEFINE_BOOL(trace_turbo_trimming, false, "trace TurboFan's graph trimmer") |
438 DEFINE_BOOL(trace_turbo_jt, false, "trace TurboFan's jump threading") | 437 DEFINE_BOOL(trace_turbo_jt, false, "trace TurboFan's jump threading") |
439 DEFINE_BOOL(trace_turbo_ceq, false, "trace TurboFan's control equivalence") | 438 DEFINE_BOOL(trace_turbo_ceq, false, "trace TurboFan's control equivalence") |
440 DEFINE_BOOL(trace_turbo_loop, false, "trace TurboFan's loop optimizations") | 439 DEFINE_BOOL(trace_turbo_loop, false, "trace TurboFan's loop optimizations") |
441 DEFINE_BOOL(turbo_asm, true, "enable TurboFan for asm.js code") | 440 DEFINE_BOOL(turbo_asm, true, "enable TurboFan for asm.js code") |
442 DEFINE_BOOL(turbo_asm_deoptimization, false, | |
443 "enable deoptimization in TurboFan for asm.js code") | |
444 DEFINE_BOOL(turbo_verify, DEBUG_BOOL, "verify TurboFan graphs at each phase") | 441 DEFINE_BOOL(turbo_verify, DEBUG_BOOL, "verify TurboFan graphs at each phase") |
445 DEFINE_STRING(turbo_verify_machine_graph, nullptr, | 442 DEFINE_STRING(turbo_verify_machine_graph, nullptr, |
446 "verify TurboFan machine graph before instruction selection") | 443 "verify TurboFan machine graph before instruction selection") |
447 DEFINE_BOOL(csa_verify, false, "verify TurboFan machine graph of code stubs") | 444 DEFINE_BOOL(csa_verify, false, "verify TurboFan machine graph of code stubs") |
448 DEFINE_BOOL(turbo_stats, false, "print TurboFan statistics") | 445 DEFINE_BOOL(turbo_stats, false, "print TurboFan statistics") |
449 DEFINE_BOOL(turbo_stats_nvp, false, | 446 DEFINE_BOOL(turbo_stats_nvp, false, |
450 "print TurboFan statistics in machine-readable format") | 447 "print TurboFan statistics in machine-readable format") |
451 DEFINE_BOOL(turbo_splitting, true, "split nodes during scheduling in TurboFan") | 448 DEFINE_BOOL(turbo_splitting, true, "split nodes during scheduling in TurboFan") |
452 DEFINE_BOOL(function_context_specialization, false, | 449 DEFINE_BOOL(function_context_specialization, false, |
453 "enable function context specialization in TurboFan") | 450 "enable function context specialization in TurboFan") |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1241 #undef DEFINE_ALIAS_FLOAT | 1238 #undef DEFINE_ALIAS_FLOAT |
1242 #undef DEFINE_ALIAS_ARGS | 1239 #undef DEFINE_ALIAS_ARGS |
1243 | 1240 |
1244 #undef FLAG_MODE_DECLARE | 1241 #undef FLAG_MODE_DECLARE |
1245 #undef FLAG_MODE_DEFINE | 1242 #undef FLAG_MODE_DEFINE |
1246 #undef FLAG_MODE_DEFINE_DEFAULTS | 1243 #undef FLAG_MODE_DEFINE_DEFAULTS |
1247 #undef FLAG_MODE_META | 1244 #undef FLAG_MODE_META |
1248 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1245 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1249 | 1246 |
1250 #undef COMMA | 1247 #undef COMMA |
OLD | NEW |