Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 75ec398201d556dc3fbb05682471335c94f8dd4f
https://github.com/WebKit/WebKit/commit/75ec398201d556dc3fbb05682471335c94f8dd4f
Author: Sosuke Suzuki <[email protected]>
Date: 2026-01-10 (Sat, 10 Jan 2026)
Changed paths:
A JSTests/microbenchmarks/yarr-interpreter-table-lookup.js
A JSTests/stress/yarr-interpreter-table-lookup.js
M Source/JavaScriptCore/yarr/YarrInterpreter.cpp
M Source/JavaScriptCore/yarr/YarrPattern.h
M Source/JavaScriptCore/yarr/create_regex_tables
Log Message:
-----------
[YARR] Look up character class table in interpreter
https://bugs.webkit.org/show_bug.cgi?id=304970
Reviewed by Yusuke Suzuki.
This patch changes to look up character class table in Yarr interpreter as well
as Yarr JIT.
The following bench results was measured with `useRegExpJIT=0`:
TipOfTree Patched
yarr-interpreter-table-lookup 112.9213+-1.0854 ^ 105.3390+-4.3467
^ definitely 1.0720x faster
Test: JSTests/microbenchmarks/yarr-interpreter-table-lookup.js
* JSTests/microbenchmarks/yarr-interpreter-table-lookup.js: Added.
(benchWordChar):
(benchNonWordChar):
(benchSpaces):
(benchNonSpaces):
* JSTests/stress/yarr-interpreter-table-lookup.js: Added.
(testWordChar):
(testNonWordChar):
(testSpaces):
(testNonSpaces):
(testDigit):
(testNonDigit):
(testTableBoundary):
(testUnicodeSpaces):
* Source/JavaScriptCore/yarr/YarrInterpreter.cpp:
(JSC::Yarr::Interpreter::testCharacterClass):
* Source/JavaScriptCore/yarr/YarrPattern.h:
* Source/JavaScriptCore/yarr/create_regex_tables:
Canonical link: https://commits.webkit.org/305411@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications