Bug 1879225: Add stub JitOption for regexp modifiers r=dminor

This flag gates the V8 implementation of this stage 3 proposal: https://github.com/tc39/proposal-regexp-modifiers

I've left it turned off for now. We can expose it in a separate bug.

Differential Revision: https://phabricator.services.mozilla.com/D201913
This commit is contained in:
Iain Ireland 2024-02-28 23:39:04 +00:00
parent d02c8f731f
commit 123ba7e3f8
2 changed files with 3 additions and 0 deletions

View File

@ -376,6 +376,8 @@ DefaultJitOptions::DefaultJitOptions() {
// ***** Irregexp shim flags *****
// Whether the stage 3 regexp modifiers proposal is enabled.
SET_DEFAULT(js_regexp_modifiers, false);
// V8 uses this for differential fuzzing to handle stack overflows.
// We address the same problem in StackLimitCheck::HasOverflowed.
SET_DEFAULT(correctness_fuzzer_suppressions, false);

View File

@ -143,6 +143,7 @@ struct DefaultJitOptions {
// Irregexp shim flags
bool correctness_fuzzer_suppressions;
bool enable_regexp_unaligned_accesses;
bool js_regexp_modifiers;
bool regexp_possessive_quantifier;
bool regexp_optimization;
bool regexp_peephole_optimization;