Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4a3cd3e0ea929f160210fa682f5a88903e3224d5
https://github.com/WebKit/WebKit/commit/4a3cd3e0ea929f160210fa682f5a88903e3224d5
Author: Yusuke Suzuki <[email protected]>
Date: 2026-02-04 (Wed, 04 Feb 2026)
Changed paths:
A JSTests/stress/regexp-variable-counted-parentheses-with-min.js
M Source/JavaScriptCore/yarr/YarrJIT.cpp
Log Message:
-----------
[JSC][Yarr] Clean up FixedCount parentheses
https://bugs.webkit.org/show_bug.cgi?id=306951
rdar://169611825
Reviewed by Yijia Huang.
We found a bit wrong matchAmount decrement code in Yarr JIT with
FixedCount from the previous change. So let's stop super complicated
things and just do a bit simpler form. This patch cleans up
backtrackable / non-backtrackable difference and basically assume that
we need to do backtrack in FixedCount parentheses all the time (e.g.
/(a+){3}b/). We removed weird code reseting m_reentry in the
backtracking side.
Test: JSTests/stress/regexp-variable-counted-parentheses-with-min.js
* JSTests/stress/regexp-variable-counted-parentheses-with-min.js: Added.
(shouldBe):
(re):
(re2):
(re3):
* Source/JavaScriptCore/yarr/YarrJIT.cpp:
Canonical link: https://commits.webkit.org/306789@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications