Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4b4cd078895ca415b8eeba467d60b56c42c60bcc
https://github.com/WebKit/WebKit/commit/4b4cd078895ca415b8eeba467d60b56c42c60bcc
Author: Sosuke Suzuki <[email protected]>
Date: 2026-01-08 (Thu, 08 Jan 2026)
Changed paths:
A JSTests/microbenchmarks/matchall-bench.js
M Source/JavaScriptCore/builtins/RegExpPrototype.js
M Source/JavaScriptCore/runtime/JSRegExpStringIterator.h
M Source/JavaScriptCore/runtime/RegExpPrototype.cpp
M Source/JavaScriptCore/runtime/RegExpPrototypeInlines.h
Log Message:
-----------
[JSC] Implement `RegExp#@@matchAll` in C++
https://bugs.webkit.org/show_bug.cgi?id=305096
Reviewed by Yusuke Suzuki.
This patch changes to implement `RegExp#@@matchAll` in C++.
TipOfTree Patched
matchall-bench 41.0811+-0.2157 ^ 22.2720+-0.9164 ^
definitely 1.8445x faster
* JSTests/microbenchmarks/matchall-bench.js: Added.
* Source/JavaScriptCore/builtins/RegExpPrototype.js:
Remove the matchAll JavaScript builtin function.
(overriddenName.string_appeared_here.matchAll): Deleted.
* Source/JavaScriptCore/runtime/JSRegExpStringIterator.h:
* Source/JavaScriptCore/runtime/RegExpPrototype.cpp:
(JSC::RegExpPrototype::finishCreation): Register native matchAll function
instead of builtin.
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/RegExpPrototypeInlines.h:
(JSC::regExpMatchAllWathpointIsValid):
Canonical link: https://commits.webkit.org/305270@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications