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