| 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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 "use signal handlers to catch out of bounds memory access in wasm" | 567 "use signal handlers to catch out of bounds memory access in wasm" |
| 568 " (experimental, currently Linux x86_64 only)") | 568 " (experimental, currently Linux x86_64 only)") |
| 569 DEFINE_BOOL(wasm_guard_pages, false, | 569 DEFINE_BOOL(wasm_guard_pages, false, |
| 570 "add guard pages to the end of WebWassembly memory" | 570 "add guard pages to the end of WebWassembly memory" |
| 571 " (experimental, no effect on 32-bit)") | 571 " (experimental, no effect on 32-bit)") |
| 572 DEFINE_IMPLICATION(wasm_trap_handler, wasm_guard_pages) | 572 DEFINE_IMPLICATION(wasm_trap_handler, wasm_guard_pages) |
| 573 DEFINE_BOOL(wasm_trap_if, true, | 573 DEFINE_BOOL(wasm_trap_if, true, |
| 574 "enable the use of the trap_if operator for traps") | 574 "enable the use of the trap_if operator for traps") |
| 575 DEFINE_BOOL(wasm_code_fuzzer_gen_test, false, | 575 DEFINE_BOOL(wasm_code_fuzzer_gen_test, false, |
| 576 "Generate a test case when running the wasm-code fuzzer") | 576 "Generate a test case when running the wasm-code fuzzer") |
| 577 DEFINE_BOOL(print_wasm_code, false, "Print WebAssembly code") |
| 578 |
| 577 // Profiler flags. | 579 // Profiler flags. |
| 578 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler") | 580 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler") |
| 579 // 0x1800 fits in the immediate field of an ARM instruction. | 581 // 0x1800 fits in the immediate field of an ARM instruction. |
| 580 DEFINE_INT(interrupt_budget, 0x1800, | 582 DEFINE_INT(interrupt_budget, 0x1800, |
| 581 "execution budget before interrupt is triggered") | 583 "execution budget before interrupt is triggered") |
| 582 DEFINE_INT(type_info_threshold, 25, | 584 DEFINE_INT(type_info_threshold, 25, |
| 583 "percentage of ICs that must have type info to allow optimization") | 585 "percentage of ICs that must have type info to allow optimization") |
| 584 DEFINE_INT(generic_ic_threshold, 30, | 586 DEFINE_INT(generic_ic_threshold, 30, |
| 585 "max percentage of megamorphic/generic ICs to allow optimization") | 587 "max percentage of megamorphic/generic ICs to allow optimization") |
| 586 DEFINE_INT(self_opt_count, 130, "call count before self-optimization") | 588 DEFINE_INT(self_opt_count, 130, "call count before self-optimization") |
| (...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1311 #undef DEFINE_ALIAS_FLOAT | 1313 #undef DEFINE_ALIAS_FLOAT |
| 1312 #undef DEFINE_ALIAS_ARGS | 1314 #undef DEFINE_ALIAS_ARGS |
| 1313 | 1315 |
| 1314 #undef FLAG_MODE_DECLARE | 1316 #undef FLAG_MODE_DECLARE |
| 1315 #undef FLAG_MODE_DEFINE | 1317 #undef FLAG_MODE_DEFINE |
| 1316 #undef FLAG_MODE_DEFINE_DEFAULTS | 1318 #undef FLAG_MODE_DEFINE_DEFAULTS |
| 1317 #undef FLAG_MODE_META | 1319 #undef FLAG_MODE_META |
| 1318 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1320 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
| 1319 | 1321 |
| 1320 #undef COMMA | 1322 #undef COMMA |
| OLD | NEW |