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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 DEFINE_VALUE_IMPLICATION(optimize_for_size, max_semi_space_size, 1) | 286 DEFINE_VALUE_IMPLICATION(optimize_for_size, max_semi_space_size, 1) |
287 | 287 |
288 // Flags for data representation optimizations | 288 // Flags for data representation optimizations |
289 DEFINE_BOOL(unbox_double_arrays, true, "automatically unbox arrays of doubles") | 289 DEFINE_BOOL(unbox_double_arrays, true, "automatically unbox arrays of doubles") |
290 DEFINE_BOOL(string_slices, true, "use string slices") | 290 DEFINE_BOOL(string_slices, true, "use string slices") |
291 | 291 |
292 // Flags for Ignition. | 292 // Flags for Ignition. |
293 DEFINE_BOOL(ignition, false, "use ignition interpreter") | 293 DEFINE_BOOL(ignition, false, "use ignition interpreter") |
294 DEFINE_BOOL(ignition_staging, false, "use ignition with all staged features") | 294 DEFINE_BOOL(ignition_staging, false, "use ignition with all staged features") |
295 DEFINE_IMPLICATION(ignition_staging, ignition) | 295 DEFINE_IMPLICATION(ignition_staging, ignition) |
| 296 DEFINE_IMPLICATION(ignition_staging, compiler_dispatcher) |
296 DEFINE_STRING(ignition_filter, "*", "filter for ignition interpreter") | 297 DEFINE_STRING(ignition_filter, "*", "filter for ignition interpreter") |
297 DEFINE_BOOL(ignition_deadcode, true, | 298 DEFINE_BOOL(ignition_deadcode, true, |
298 "use ignition dead code elimination optimizer") | 299 "use ignition dead code elimination optimizer") |
299 DEFINE_BOOL(ignition_osr, true, "enable support for OSR from ignition code") | 300 DEFINE_BOOL(ignition_osr, true, "enable support for OSR from ignition code") |
300 DEFINE_BOOL(ignition_peephole, true, "use ignition peephole optimizer") | 301 DEFINE_BOOL(ignition_peephole, true, "use ignition peephole optimizer") |
301 DEFINE_BOOL(ignition_reo, true, "use ignition register equivalence optimizer") | 302 DEFINE_BOOL(ignition_reo, true, "use ignition register equivalence optimizer") |
302 DEFINE_BOOL(ignition_filter_expression_positions, true, | 303 DEFINE_BOOL(ignition_filter_expression_positions, true, |
303 "filter expression positions before the bytecode pipeline") | 304 "filter expression positions before the bytecode pipeline") |
304 DEFINE_BOOL(print_bytecode, false, | 305 DEFINE_BOOL(print_bytecode, false, |
305 "print bytecode generated by ignition interpreter") | 306 "print bytecode generated by ignition interpreter") |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 | 653 |
653 // compiler.cc | 654 // compiler.cc |
654 DEFINE_INT(max_opt_count, 10, | 655 DEFINE_INT(max_opt_count, 10, |
655 "maximum number of optimization attempts before giving up.") | 656 "maximum number of optimization attempts before giving up.") |
656 | 657 |
657 // compilation-cache.cc | 658 // compilation-cache.cc |
658 DEFINE_BOOL(compilation_cache, true, "enable compilation cache") | 659 DEFINE_BOOL(compilation_cache, true, "enable compilation cache") |
659 | 660 |
660 DEFINE_BOOL(cache_prototype_transitions, true, "cache prototype transitions") | 661 DEFINE_BOOL(cache_prototype_transitions, true, "cache prototype transitions") |
661 | 662 |
| 663 // compiler-dispatcher.cc |
| 664 DEFINE_BOOL(compiler_dispatcher, false, "enable compiler dispatcher") |
| 665 |
662 // cpu-profiler.cc | 666 // cpu-profiler.cc |
663 DEFINE_INT(cpu_profiler_sampling_interval, 1000, | 667 DEFINE_INT(cpu_profiler_sampling_interval, 1000, |
664 "CPU profiler sampling interval in microseconds") | 668 "CPU profiler sampling interval in microseconds") |
665 | 669 |
666 // Array abuse tracing | 670 // Array abuse tracing |
667 DEFINE_BOOL(trace_js_array_abuse, false, | 671 DEFINE_BOOL(trace_js_array_abuse, false, |
668 "trace out-of-bounds accesses to JS arrays") | 672 "trace out-of-bounds accesses to JS arrays") |
669 DEFINE_BOOL(trace_external_array_abuse, false, | 673 DEFINE_BOOL(trace_external_array_abuse, false, |
670 "trace out-of-bounds-accesses to external arrays") | 674 "trace out-of-bounds-accesses to external arrays") |
671 DEFINE_BOOL(trace_array_abuse, false, | 675 DEFINE_BOOL(trace_array_abuse, false, |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 #undef DEFINE_ALIAS_FLOAT | 1261 #undef DEFINE_ALIAS_FLOAT |
1258 #undef DEFINE_ALIAS_ARGS | 1262 #undef DEFINE_ALIAS_ARGS |
1259 | 1263 |
1260 #undef FLAG_MODE_DECLARE | 1264 #undef FLAG_MODE_DECLARE |
1261 #undef FLAG_MODE_DEFINE | 1265 #undef FLAG_MODE_DEFINE |
1262 #undef FLAG_MODE_DEFINE_DEFAULTS | 1266 #undef FLAG_MODE_DEFINE_DEFAULTS |
1263 #undef FLAG_MODE_META | 1267 #undef FLAG_MODE_META |
1264 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1268 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1265 | 1269 |
1266 #undef COMMA | 1270 #undef COMMA |
OLD | NEW |