Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 410da8fc2f65f4ad441f010708da5c5a9911012a
https://github.com/WebKit/WebKit/commit/410da8fc2f65f4ad441f010708da5c5a9911012a
Author: Sosuke Suzuki <[email protected]>
Date: 2026-05-08 (Fri, 08 May 2026)
Changed paths:
M Source/JavaScriptCore/runtime/StringPrototype.cpp
M Source/JavaScriptCore/runtime/StringPrototype.h
M Source/JavaScriptCore/runtime/StringPrototypeInlines.h
Log Message:
-----------
[JSC] Remove `ALWAYS_INLINE` from `replaceUsingRegExpSearch`
https://bugs.webkit.org/show_bug.cgi?id=314374
Reviewed by Yusuke Suzuki.
Pure code motion: both overloads of `replaceUsingRegExpSearch` are moved
out of `StringPrototypeInlines.h` (which is reserved for `ALWAYS_INLINE`
helpers) into `StringPrototype.cpp`, with declarations added to
`StringPrototype.h`. The function bodies are unchanged.
Binary size impact (Release arm64):
- Total: 42,039,840 -> 41,787,936 bytes (-251,904 / -246 KB)
- replaceUsingRegExpSearch family in __TEXT,__text: 281 KB -> 68 KB
Neutral on related microbenchmarks (JSTests/microbenchmarks/string-replace*).
* Source/JavaScriptCore/runtime/StringPrototype.cpp:
(JSC::replaceUsingRegExpSearch):
* Source/JavaScriptCore/runtime/StringPrototype.h:
* Source/JavaScriptCore/runtime/StringPrototypeInlines.h:
(JSC::replaceUsingRegExpSearch): Deleted.
Canonical link: https://commits.webkit.org/312932@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications