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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 DEFINE_BOOL(block_concurrent_recompilation, false, | 416 DEFINE_BOOL(block_concurrent_recompilation, false, |
417 "block queued jobs until released") | 417 "block queued jobs until released") |
418 | 418 |
419 DEFINE_BOOL(omit_map_checks_for_leaf_maps, true, | 419 DEFINE_BOOL(omit_map_checks_for_leaf_maps, true, |
420 "do not emit check maps for constant values that have a leaf map, " | 420 "do not emit check maps for constant values that have a leaf map, " |
421 "deoptimize the optimized code if the layout of the maps changes.") | 421 "deoptimize the optimized code if the layout of the maps changes.") |
422 | 422 |
423 // Flags for TurboFan. | 423 // Flags for TurboFan. |
424 DEFINE_BOOL(turbo, false, "enable TurboFan compiler") | 424 DEFINE_BOOL(turbo, false, "enable TurboFan compiler") |
425 DEFINE_IMPLICATION(turbo, turbo_asm_deoptimization) | 425 DEFINE_IMPLICATION(turbo, turbo_asm_deoptimization) |
426 DEFINE_IMPLICATION(turbo, turbo_type_feedback) | |
427 DEFINE_IMPLICATION(turbo, turbo_store_elimination) | 426 DEFINE_IMPLICATION(turbo, turbo_store_elimination) |
428 DEFINE_BOOL(turbo_shipping, true, "enable TurboFan compiler on subset") | 427 DEFINE_BOOL(turbo_shipping, true, "enable TurboFan compiler on subset") |
429 DEFINE_BOOL(turbo_from_bytecode, false, "enable building graphs from bytecode") | 428 DEFINE_BOOL(turbo_from_bytecode, false, "enable building graphs from bytecode") |
430 DEFINE_BOOL(turbo_sp_frame_access, false, | 429 DEFINE_BOOL(turbo_sp_frame_access, false, |
431 "use stack pointer-relative access to frame wherever possible") | 430 "use stack pointer-relative access to frame wherever possible") |
432 DEFINE_BOOL(turbo_preprocess_ranges, true, | 431 DEFINE_BOOL(turbo_preprocess_ranges, true, |
433 "run pre-register allocation heuristics") | 432 "run pre-register allocation heuristics") |
434 DEFINE_BOOL(turbo_loop_stackcheck, true, "enable stack checks in loops") | 433 DEFINE_BOOL(turbo_loop_stackcheck, true, "enable stack checks in loops") |
435 DEFINE_STRING(turbo_filter, "~~", "optimization filter for TurboFan compiler") | 434 DEFINE_STRING(turbo_filter, "~~", "optimization filter for TurboFan compiler") |
436 DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR") | 435 DEFINE_BOOL(trace_turbo, false, "trace generated TurboFan IR") |
437 DEFINE_BOOL(trace_turbo_graph, false, "trace generated TurboFan graphs") | 436 DEFINE_BOOL(trace_turbo_graph, false, "trace generated TurboFan graphs") |
438 DEFINE_IMPLICATION(trace_turbo_graph, trace_turbo) | 437 DEFINE_IMPLICATION(trace_turbo_graph, trace_turbo) |
439 DEFINE_STRING(trace_turbo_cfg_file, NULL, | 438 DEFINE_STRING(trace_turbo_cfg_file, NULL, |
440 "trace turbo cfg graph (for C1 visualizer) to a given file name") | 439 "trace turbo cfg graph (for C1 visualizer) to a given file name") |
441 DEFINE_BOOL(trace_turbo_types, true, "trace TurboFan's types") | 440 DEFINE_BOOL(trace_turbo_types, true, "trace TurboFan's types") |
442 DEFINE_BOOL(trace_turbo_scheduler, false, "trace TurboFan's scheduler") | 441 DEFINE_BOOL(trace_turbo_scheduler, false, "trace TurboFan's scheduler") |
443 DEFINE_BOOL(trace_turbo_reduction, false, "trace TurboFan's various reducers") | 442 DEFINE_BOOL(trace_turbo_reduction, false, "trace TurboFan's various reducers") |
444 DEFINE_BOOL(trace_turbo_trimming, false, "trace TurboFan's graph trimmer") | 443 DEFINE_BOOL(trace_turbo_trimming, false, "trace TurboFan's graph trimmer") |
445 DEFINE_BOOL(trace_turbo_jt, false, "trace TurboFan's jump threading") | 444 DEFINE_BOOL(trace_turbo_jt, false, "trace TurboFan's jump threading") |
446 DEFINE_BOOL(trace_turbo_ceq, false, "trace TurboFan's control equivalence") | 445 DEFINE_BOOL(trace_turbo_ceq, false, "trace TurboFan's control equivalence") |
447 DEFINE_BOOL(turbo_asm, true, "enable TurboFan for asm.js code") | 446 DEFINE_BOOL(turbo_asm, true, "enable TurboFan for asm.js code") |
448 DEFINE_BOOL(turbo_asm_deoptimization, false, | 447 DEFINE_BOOL(turbo_asm_deoptimization, false, |
449 "enable deoptimization in TurboFan for asm.js code") | 448 "enable deoptimization in TurboFan for asm.js code") |
450 DEFINE_BOOL(turbo_verify, DEBUG_BOOL, "verify TurboFan graphs at each phase") | 449 DEFINE_BOOL(turbo_verify, DEBUG_BOOL, "verify TurboFan graphs at each phase") |
451 DEFINE_BOOL(turbo_stats, false, "print TurboFan statistics") | 450 DEFINE_BOOL(turbo_stats, false, "print TurboFan statistics") |
452 DEFINE_BOOL(turbo_stats_nvp, false, | 451 DEFINE_BOOL(turbo_stats_nvp, false, |
453 "print TurboFan statistics in machine-readable format") | 452 "print TurboFan statistics in machine-readable format") |
454 DEFINE_BOOL(turbo_splitting, true, "split nodes during scheduling in TurboFan") | 453 DEFINE_BOOL(turbo_splitting, true, "split nodes during scheduling in TurboFan") |
455 DEFINE_BOOL(turbo_type_feedback, false, | 454 DEFINE_BOOL(turbo_type_feedback, true, |
456 "use typed feedback for representation inference in Turbofan") | 455 "use typed feedback for representation inference in Turbofan") |
457 DEFINE_BOOL(turbo_source_positions, false, | 456 DEFINE_BOOL(turbo_source_positions, false, |
458 "track source code positions when building TurboFan IR") | 457 "track source code positions when building TurboFan IR") |
459 DEFINE_IMPLICATION(trace_turbo, turbo_source_positions) | 458 DEFINE_IMPLICATION(trace_turbo, turbo_source_positions) |
460 DEFINE_BOOL(function_context_specialization, false, | 459 DEFINE_BOOL(function_context_specialization, false, |
461 "enable function context specialization in TurboFan") | 460 "enable function context specialization in TurboFan") |
462 DEFINE_BOOL(native_context_specialization, true, | 461 DEFINE_BOOL(native_context_specialization, true, |
463 "enable native context specialization in TurboFan") | 462 "enable native context specialization in TurboFan") |
464 DEFINE_BOOL(turbo_inlining, true, "enable inlining in TurboFan") | 463 DEFINE_BOOL(turbo_inlining, true, "enable inlining in TurboFan") |
465 DEFINE_BOOL(trace_turbo_inlining, false, "trace TurboFan inlining") | 464 DEFINE_BOOL(trace_turbo_inlining, false, "trace TurboFan inlining") |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1201 #undef DEFINE_ALIAS_FLOAT | 1200 #undef DEFINE_ALIAS_FLOAT |
1202 #undef DEFINE_ALIAS_ARGS | 1201 #undef DEFINE_ALIAS_ARGS |
1203 | 1202 |
1204 #undef FLAG_MODE_DECLARE | 1203 #undef FLAG_MODE_DECLARE |
1205 #undef FLAG_MODE_DEFINE | 1204 #undef FLAG_MODE_DEFINE |
1206 #undef FLAG_MODE_DEFINE_DEFAULTS | 1205 #undef FLAG_MODE_DEFINE_DEFAULTS |
1207 #undef FLAG_MODE_META | 1206 #undef FLAG_MODE_META |
1208 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1207 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1209 | 1208 |
1210 #undef COMMA | 1209 #undef COMMA |
OLD | NEW |