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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 DEFINE_INT(trace_wasm_text_start, 0, | 540 DEFINE_INT(trace_wasm_text_start, 0, |
541 "start function for WASM text generation (inclusive)") | 541 "start function for WASM text generation (inclusive)") |
542 DEFINE_INT(trace_wasm_text_end, 0, | 542 DEFINE_INT(trace_wasm_text_end, 0, |
543 "end function for WASM text generation (exclusive)") | 543 "end function for WASM text generation (exclusive)") |
544 DEFINE_UINT(skip_compiling_wasm_funcs, 0, "start compiling at function N") | 544 DEFINE_UINT(skip_compiling_wasm_funcs, 0, "start compiling at function N") |
545 DEFINE_BOOL(wasm_break_on_decoder_error, false, | 545 DEFINE_BOOL(wasm_break_on_decoder_error, false, |
546 "debug break when wasm decoder encounters an error") | 546 "debug break when wasm decoder encounters an error") |
547 DEFINE_BOOL(wasm_loop_assignment_analysis, true, | 547 DEFINE_BOOL(wasm_loop_assignment_analysis, true, |
548 "perform loop assignment analysis for WASM") | 548 "perform loop assignment analysis for WASM") |
549 | 549 |
550 DEFINE_BOOL(validate_asm, false, "validate asm.js modules before compiling") | 550 DEFINE_BOOL(validate_asm, |
| 551 true, // TODO(clemensh): Change back to false |
| 552 "validate asm.js modules before compiling") |
551 DEFINE_BOOL(suppress_asm_messages, false, | 553 DEFINE_BOOL(suppress_asm_messages, false, |
552 "don't emit asm.js related messages (for golden file testing)") | 554 "don't emit asm.js related messages (for golden file testing)") |
553 DEFINE_BOOL(trace_asm_time, false, "log asm.js timing info to the console") | 555 DEFINE_BOOL(trace_asm_time, false, "log asm.js timing info to the console") |
554 | 556 |
555 DEFINE_BOOL(dump_wasm_module, false, "dump WASM module bytes") | 557 DEFINE_BOOL(dump_wasm_module, false, "dump WASM module bytes") |
556 DEFINE_STRING(dump_wasm_module_path, NULL, "directory to dump wasm modules to") | 558 DEFINE_STRING(dump_wasm_module_path, NULL, "directory to dump wasm modules to") |
557 | 559 |
558 DEFINE_INT(typed_array_max_size_in_heap, 64, | 560 DEFINE_INT(typed_array_max_size_in_heap, 64, |
559 "threshold for in-heap typed array") | 561 "threshold for in-heap typed array") |
560 | 562 |
(...skipping 19 matching lines...) Expand all Loading... |
580 "add guard pages to the end of WebWassembly memory" | 582 "add guard pages to the end of WebWassembly memory" |
581 " (experimental, no effect on 32-bit)") | 583 " (experimental, no effect on 32-bit)") |
582 DEFINE_IMPLICATION(wasm_trap_handler, wasm_guard_pages) | 584 DEFINE_IMPLICATION(wasm_trap_handler, wasm_guard_pages) |
583 DEFINE_BOOL(wasm_trap_if, true, | 585 DEFINE_BOOL(wasm_trap_if, true, |
584 "enable the use of the trap_if operator for traps") | 586 "enable the use of the trap_if operator for traps") |
585 DEFINE_BOOL(wasm_code_fuzzer_gen_test, false, | 587 DEFINE_BOOL(wasm_code_fuzzer_gen_test, false, |
586 "Generate a test case when running the wasm-code fuzzer") | 588 "Generate a test case when running the wasm-code fuzzer") |
587 DEFINE_BOOL(print_wasm_code, false, "Print WebAssembly code") | 589 DEFINE_BOOL(print_wasm_code, false, "Print WebAssembly code") |
588 DEFINE_BOOL(asm_wasm_lazy_compilation, false, | 590 DEFINE_BOOL(asm_wasm_lazy_compilation, false, |
589 "enable lazy compilation for asm-wasm modules") | 591 "enable lazy compilation for asm-wasm modules") |
| 592 DEFINE_IMPLICATION(validate_asm, asm_wasm_lazy_compilation) |
590 | 593 |
591 // Profiler flags. | 594 // Profiler flags. |
592 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler") | 595 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler") |
593 // 0x1800 fits in the immediate field of an ARM instruction. | 596 // 0x1800 fits in the immediate field of an ARM instruction. |
594 DEFINE_INT(interrupt_budget, 0x1800, | 597 DEFINE_INT(interrupt_budget, 0x1800, |
595 "execution budget before interrupt is triggered") | 598 "execution budget before interrupt is triggered") |
596 DEFINE_INT(type_info_threshold, 25, | 599 DEFINE_INT(type_info_threshold, 25, |
597 "percentage of ICs that must have type info to allow optimization") | 600 "percentage of ICs that must have type info to allow optimization") |
598 DEFINE_INT(generic_ic_threshold, 30, | 601 DEFINE_INT(generic_ic_threshold, 30, |
599 "max percentage of megamorphic/generic ICs to allow optimization") | 602 "max percentage of megamorphic/generic ICs to allow optimization") |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 #undef DEFINE_ALIAS_FLOAT | 1314 #undef DEFINE_ALIAS_FLOAT |
1312 #undef DEFINE_ALIAS_ARGS | 1315 #undef DEFINE_ALIAS_ARGS |
1313 | 1316 |
1314 #undef FLAG_MODE_DECLARE | 1317 #undef FLAG_MODE_DECLARE |
1315 #undef FLAG_MODE_DEFINE | 1318 #undef FLAG_MODE_DEFINE |
1316 #undef FLAG_MODE_DEFINE_DEFAULTS | 1319 #undef FLAG_MODE_DEFINE_DEFAULTS |
1317 #undef FLAG_MODE_META | 1320 #undef FLAG_MODE_META |
1318 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1321 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1319 | 1322 |
1320 #undef COMMA | 1323 #undef COMMA |
OLD | NEW |