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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 // Flags for data representation optimizations | 289 // Flags for data representation optimizations |
290 DEFINE_BOOL(unbox_double_arrays, true, "automatically unbox arrays of doubles") | 290 DEFINE_BOOL(unbox_double_arrays, true, "automatically unbox arrays of doubles") |
291 DEFINE_BOOL(string_slices, true, "use string slices") | 291 DEFINE_BOOL(string_slices, true, "use string slices") |
292 | 292 |
293 // Flags for Ignition. | 293 // Flags for Ignition. |
294 DEFINE_BOOL(ignition, false, "use ignition interpreter") | 294 DEFINE_BOOL(ignition, false, "use ignition interpreter") |
295 DEFINE_BOOL(ignition_staging, false, "use ignition with all staged features") | 295 DEFINE_BOOL(ignition_staging, false, "use ignition with all staged features") |
296 DEFINE_IMPLICATION(ignition_staging, ignition) | 296 DEFINE_IMPLICATION(ignition_staging, ignition) |
297 DEFINE_IMPLICATION(ignition_staging, ignition_osr) | 297 DEFINE_IMPLICATION(ignition_staging, ignition_osr) |
298 DEFINE_BOOL(ignition_eager, false, "eagerly compile and parse with ignition") | 298 DEFINE_BOOL(ignition_eager, false, "eagerly compile and parse with ignition") |
| 299 DEFINE_BOOL(ignition_split_jobs, true, |
| 300 "split eager compilation tasks into multiple jobs") |
299 DEFINE_STRING(ignition_filter, "*", "filter for ignition interpreter") | 301 DEFINE_STRING(ignition_filter, "*", "filter for ignition interpreter") |
300 DEFINE_BOOL(ignition_deadcode, true, | 302 DEFINE_BOOL(ignition_deadcode, true, |
301 "use ignition dead code elimination optimizer") | 303 "use ignition dead code elimination optimizer") |
302 DEFINE_BOOL(ignition_osr, false, "enable support for OSR from ignition code") | 304 DEFINE_BOOL(ignition_osr, false, "enable support for OSR from ignition code") |
303 DEFINE_BOOL(ignition_peephole, true, "use ignition peephole optimizer") | 305 DEFINE_BOOL(ignition_peephole, true, "use ignition peephole optimizer") |
304 DEFINE_BOOL(ignition_reo, true, "use ignition register equivalence optimizer") | 306 DEFINE_BOOL(ignition_reo, true, "use ignition register equivalence optimizer") |
305 DEFINE_BOOL(ignition_filter_expression_positions, true, | 307 DEFINE_BOOL(ignition_filter_expression_positions, true, |
306 "filter expression positions before the bytecode pipeline") | 308 "filter expression positions before the bytecode pipeline") |
307 DEFINE_BOOL(ignition_preserve_bytecode, true, | 309 DEFINE_BOOL(ignition_preserve_bytecode, true, |
308 "preserve generated bytecode even when switching tiers") | 310 "preserve generated bytecode even when switching tiers") |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 "start function for WASM AST trace (inclusive)") | 512 "start function for WASM AST trace (inclusive)") |
511 DEFINE_INT(trace_wasm_ast_end, 0, "end function for WASM AST trace (exclusive)") | 513 DEFINE_INT(trace_wasm_ast_end, 0, "end function for WASM AST trace (exclusive)") |
512 DEFINE_INT(skip_compiling_wasm_funcs, 0, "start compiling at function N") | 514 DEFINE_INT(skip_compiling_wasm_funcs, 0, "start compiling at function N") |
513 DEFINE_BOOL(wasm_break_on_decoder_error, false, | 515 DEFINE_BOOL(wasm_break_on_decoder_error, false, |
514 "debug break when wasm decoder encounters an error") | 516 "debug break when wasm decoder encounters an error") |
515 DEFINE_BOOL(wasm_loop_assignment_analysis, true, | 517 DEFINE_BOOL(wasm_loop_assignment_analysis, true, |
516 "perform loop assignment analysis for WASM") | 518 "perform loop assignment analysis for WASM") |
517 | 519 |
518 DEFINE_BOOL(validate_asm, false, "validate asm.js modules before compiling") | 520 DEFINE_BOOL(validate_asm, false, "validate asm.js modules before compiling") |
519 | 521 |
| 522 // TODO(jochen): We should be able to split jobs even when validating. |
| 523 // http://crbug.com/v8/5506. |
| 524 DEFINE_NEG_IMPLICATION(validate_asm, ignition_split_jobs) |
| 525 |
520 DEFINE_BOOL(dump_wasm_module, false, "dump WASM module bytes") | 526 DEFINE_BOOL(dump_wasm_module, false, "dump WASM module bytes") |
521 DEFINE_STRING(dump_wasm_module_path, NULL, "directory to dump wasm modules to") | 527 DEFINE_STRING(dump_wasm_module_path, NULL, "directory to dump wasm modules to") |
522 | 528 |
523 DEFINE_INT(typed_array_max_size_in_heap, 64, | 529 DEFINE_INT(typed_array_max_size_in_heap, 64, |
524 "threshold for in-heap typed array") | 530 "threshold for in-heap typed array") |
525 | 531 |
526 DEFINE_BOOL(wasm_simd_prototype, false, | 532 DEFINE_BOOL(wasm_simd_prototype, false, |
527 "enable prototype simd opcodes for wasm") | 533 "enable prototype simd opcodes for wasm") |
528 DEFINE_BOOL(wasm_eh_prototype, false, | 534 DEFINE_BOOL(wasm_eh_prototype, false, |
529 "enable prototype exception handling opcodes for wasm") | 535 "enable prototype exception handling opcodes for wasm") |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 #undef DEFINE_ALIAS_FLOAT | 1220 #undef DEFINE_ALIAS_FLOAT |
1215 #undef DEFINE_ALIAS_ARGS | 1221 #undef DEFINE_ALIAS_ARGS |
1216 | 1222 |
1217 #undef FLAG_MODE_DECLARE | 1223 #undef FLAG_MODE_DECLARE |
1218 #undef FLAG_MODE_DEFINE | 1224 #undef FLAG_MODE_DEFINE |
1219 #undef FLAG_MODE_DEFINE_DEFAULTS | 1225 #undef FLAG_MODE_DEFINE_DEFAULTS |
1220 #undef FLAG_MODE_META | 1226 #undef FLAG_MODE_META |
1221 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1227 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1222 | 1228 |
1223 #undef COMMA | 1229 #undef COMMA |
OLD | NEW |