Chromium Code Reviews

Side by Side Diff: src/flag-definitions.h

Issue 2396433008: [wasm] Add guard regions to end of WebAssembly.Memory buffers (Closed)
Patch Set: Merging with master Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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 501 matching lines...)
512 "enable prototype simd opcodes for wasm") 512 "enable prototype simd opcodes for wasm")
513 DEFINE_BOOL(wasm_eh_prototype, false, 513 DEFINE_BOOL(wasm_eh_prototype, false,
514 "enable prototype exception handling opcodes for wasm") 514 "enable prototype exception handling opcodes for wasm")
515 DEFINE_BOOL(wasm_mv_prototype, false, 515 DEFINE_BOOL(wasm_mv_prototype, false,
516 "enable prototype multi-value support for wasm") 516 "enable prototype multi-value support for wasm")
517 DEFINE_BOOL(wasm_atomics_prototype, false, 517 DEFINE_BOOL(wasm_atomics_prototype, false,
518 "enable prototype atomic opcodes for wasm") 518 "enable prototype atomic opcodes for wasm")
519 519
520 DEFINE_BOOL(wasm_trap_handler, false, 520 DEFINE_BOOL(wasm_trap_handler, false,
521 "use signal handlers to catch out of bounds memory access in wasm" 521 "use signal handlers to catch out of bounds memory access in wasm"
522 " (currently Linux x86_64 only)") 522 " (experimental, currently Linux x86_64 only)")
523 DEFINE_BOOL(wasm_guard_pages, false,
524 "add guard pages to the end of WebWassembly memory"
525 " (experimental, no effect on 32-bit)")
526 DEFINE_IMPLICATION(wasm_trap_handler, wasm_guard_pages)
523 527
524 // Profiler flags. 528 // Profiler flags.
525 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler") 529 DEFINE_INT(frame_count, 1, "number of stack frames inspected by the profiler")
526 // 0x1800 fits in the immediate field of an ARM instruction. 530 // 0x1800 fits in the immediate field of an ARM instruction.
527 DEFINE_INT(interrupt_budget, 0x1800, 531 DEFINE_INT(interrupt_budget, 0x1800,
528 "execution budget before interrupt is triggered") 532 "execution budget before interrupt is triggered")
529 DEFINE_INT(type_info_threshold, 25, 533 DEFINE_INT(type_info_threshold, 25,
530 "percentage of ICs that must have type info to allow optimization") 534 "percentage of ICs that must have type info to allow optimization")
531 DEFINE_INT(generic_ic_threshold, 30, 535 DEFINE_INT(generic_ic_threshold, 30,
532 "max percentage of megamorphic/generic ICs to allow optimization") 536 "max percentage of megamorphic/generic ICs to allow optimization")
(...skipping 685 matching lines...)
1218 #undef DEFINE_ALIAS_FLOAT 1222 #undef DEFINE_ALIAS_FLOAT
1219 #undef DEFINE_ALIAS_ARGS 1223 #undef DEFINE_ALIAS_ARGS
1220 1224
1221 #undef FLAG_MODE_DECLARE 1225 #undef FLAG_MODE_DECLARE
1222 #undef FLAG_MODE_DEFINE 1226 #undef FLAG_MODE_DEFINE
1223 #undef FLAG_MODE_DEFINE_DEFAULTS 1227 #undef FLAG_MODE_DEFINE_DEFAULTS
1224 #undef FLAG_MODE_META 1228 #undef FLAG_MODE_META
1225 #undef FLAG_MODE_DEFINE_IMPLICATIONS 1229 #undef FLAG_MODE_DEFINE_IMPLICATIONS
1226 1230
1227 #undef COMMA 1231 #undef COMMA
OLDNEW

Powered by Google App Engine