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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 "use signal handlers to catch out of bounds memory access in wasm" | 559 "use signal handlers to catch out of bounds memory access in wasm" |
560 " (experimental, currently Linux x86_64 only)") | 560 " (experimental, currently Linux x86_64 only)") |
561 DEFINE_BOOL(wasm_guard_pages, false, | 561 DEFINE_BOOL(wasm_guard_pages, false, |
562 "add guard pages to the end of WebWassembly memory" | 562 "add guard pages to the end of WebWassembly memory" |
563 " (experimental, no effect on 32-bit)") | 563 " (experimental, no effect on 32-bit)") |
564 DEFINE_IMPLICATION(wasm_trap_handler, wasm_guard_pages) | 564 DEFINE_IMPLICATION(wasm_trap_handler, wasm_guard_pages) |
565 DEFINE_BOOL(wasm_trap_if, true, | 565 DEFINE_BOOL(wasm_trap_if, true, |
566 "enable the use of the trap_if operator for traps") | 566 "enable the use of the trap_if operator for traps") |
567 DEFINE_BOOL(wasm_code_fuzzer_gen_test, false, | 567 DEFINE_BOOL(wasm_code_fuzzer_gen_test, false, |
568 "Generate a test case when running the wasm-code fuzzer") | 568 "Generate a test case when running the wasm-code fuzzer") |
| 569 DEFINE_BOOL(print_wasm_code, false, "Print WebAssembly code") |
| 570 |
569 // Profiler flags. | 571 // Profiler flags. |
570 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler") | 572 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler") |
571 // 0x1800 fits in the immediate field of an ARM instruction. | 573 // 0x1800 fits in the immediate field of an ARM instruction. |
572 DEFINE_INT(interrupt_budget, 0x1800, | 574 DEFINE_INT(interrupt_budget, 0x1800, |
573 "execution budget before interrupt is triggered") | 575 "execution budget before interrupt is triggered") |
574 DEFINE_INT(type_info_threshold, 25, | 576 DEFINE_INT(type_info_threshold, 25, |
575 "percentage of ICs that must have type info to allow optimization") | 577 "percentage of ICs that must have type info to allow optimization") |
576 DEFINE_INT(generic_ic_threshold, 30, | 578 DEFINE_INT(generic_ic_threshold, 30, |
577 "max percentage of megamorphic/generic ICs to allow optimization") | 579 "max percentage of megamorphic/generic ICs to allow optimization") |
578 DEFINE_INT(self_opt_count, 130, "call count before self-optimization") | 580 DEFINE_INT(self_opt_count, 130, "call count before self-optimization") |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1299 #undef DEFINE_ALIAS_FLOAT | 1301 #undef DEFINE_ALIAS_FLOAT |
1300 #undef DEFINE_ALIAS_ARGS | 1302 #undef DEFINE_ALIAS_ARGS |
1301 | 1303 |
1302 #undef FLAG_MODE_DECLARE | 1304 #undef FLAG_MODE_DECLARE |
1303 #undef FLAG_MODE_DEFINE | 1305 #undef FLAG_MODE_DEFINE |
1304 #undef FLAG_MODE_DEFINE_DEFAULTS | 1306 #undef FLAG_MODE_DEFINE_DEFAULTS |
1305 #undef FLAG_MODE_META | 1307 #undef FLAG_MODE_META |
1306 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1308 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1307 | 1309 |
1308 #undef COMMA | 1310 #undef COMMA |
OLD | NEW |