Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: fb299342a5802f73fa1bfd395dcc7aaac45e7010
https://github.com/WebKit/WebKit/commit/fb299342a5802f73fa1bfd395dcc7aaac45e7010
Author: Yusuke Suzuki <[email protected]>
Date: 2026-08-03 (Mon, 03 Aug 2026)
Changed paths:
A JSTests/stress/regexp-and-arg-same.js
A JSTests/stress/regexp-test-first-character-filter-untyped.js
M Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp
M Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h
M Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp
M Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp
Log Message:
-----------
[JSC] Use first-character-filter even for UntypedUse edge
https://bugs.webkit.org/show_bug.cgi?id=320877
rdar://183897657
Reviewed by Sosuke Suzuki.
Some real world code was not using this first-character-filter just
because it is taking UntypedUse instead of StringUse. This patch extend
the coverage by checking String at runtime to perform
first-character-filter.
Test: JSTests/stress/regexp-test-first-character-filter-untyped.js
* JSTests/stress/regexp-and-arg-same.js: Added.
(f):
* JSTests/stress/regexp-test-first-character-filter-untyped.js: Added.
(shouldBe):
(const.toStringObject.toString):
(testAnchored):
(testDigits):
(testSticky):
(makeRope):
(i.catch):
* Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compileRegExpTest):
(JSC::DFG::SpeculativeJIT::tryEmitRegExpTestFirstCharacterFilter):
(JSC::DFG::SpeculativeJIT::compileRegExpExecNonGlobalOrSticky):
(JSC::DFG::SpeculativeJIT::compileRegExpExecSticky):
* Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h:
* Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::emitRegExpStickyFirstCharacterFilterGuards):
* Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
Canonical link: https://commits.webkit.org/318512@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications