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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 DEFINE_STRING(dump_wasm_module_path, NULL, "directory to dump wasm modules to") | 520 DEFINE_STRING(dump_wasm_module_path, NULL, "directory to dump wasm modules to") |
521 | 521 |
522 DEFINE_INT(typed_array_max_size_in_heap, 64, | 522 DEFINE_INT(typed_array_max_size_in_heap, 64, |
523 "threshold for in-heap typed array") | 523 "threshold for in-heap typed array") |
524 | 524 |
525 DEFINE_BOOL(wasm_simd_prototype, false, | 525 DEFINE_BOOL(wasm_simd_prototype, false, |
526 "enable prototype simd opcodes for wasm") | 526 "enable prototype simd opcodes for wasm") |
527 DEFINE_BOOL(wasm_eh_prototype, false, | 527 DEFINE_BOOL(wasm_eh_prototype, false, |
528 "enable prototype exception handling opcodes for wasm") | 528 "enable prototype exception handling opcodes for wasm") |
529 | 529 |
| 530 DEFINE_BOOL(wasm_trap_handler, false, |
| 531 "use signal handlers to catch out of bounds memory access in wasm" |
| 532 " (currently Linux x86_64 only)") |
| 533 |
530 // Profiler flags. | 534 // Profiler flags. |
531 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler") | 535 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler") |
532 // 0x1800 fits in the immediate field of an ARM instruction. | 536 // 0x1800 fits in the immediate field of an ARM instruction. |
533 DEFINE_INT(interrupt_budget, 0x1800, | 537 DEFINE_INT(interrupt_budget, 0x1800, |
534 "execution budget before interrupt is triggered") | 538 "execution budget before interrupt is triggered") |
535 DEFINE_INT(type_info_threshold, 25, | 539 DEFINE_INT(type_info_threshold, 25, |
536 "percentage of ICs that must have type info to allow optimization") | 540 "percentage of ICs that must have type info to allow optimization") |
537 DEFINE_INT(generic_ic_threshold, 30, | 541 DEFINE_INT(generic_ic_threshold, 30, |
538 "max percentage of megamorphic/generic ICs to allow optimization") | 542 "max percentage of megamorphic/generic ICs to allow optimization") |
539 DEFINE_INT(self_opt_count, 130, "call count before self-optimization") | 543 DEFINE_INT(self_opt_count, 130, "call count before self-optimization") |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 #undef DEFINE_ALIAS_FLOAT | 1206 #undef DEFINE_ALIAS_FLOAT |
1203 #undef DEFINE_ALIAS_ARGS | 1207 #undef DEFINE_ALIAS_ARGS |
1204 | 1208 |
1205 #undef FLAG_MODE_DECLARE | 1209 #undef FLAG_MODE_DECLARE |
1206 #undef FLAG_MODE_DEFINE | 1210 #undef FLAG_MODE_DEFINE |
1207 #undef FLAG_MODE_DEFINE_DEFAULTS | 1211 #undef FLAG_MODE_DEFINE_DEFAULTS |
1208 #undef FLAG_MODE_META | 1212 #undef FLAG_MODE_META |
1209 #undef FLAG_MODE_DEFINE_IMPLICATIONS | 1213 #undef FLAG_MODE_DEFINE_IMPLICATIONS |
1210 | 1214 |
1211 #undef COMMA | 1215 #undef COMMA |
OLD | NEW |