Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2d0855229c8f35a87c7bca8f36456ed76f86a5fb
https://github.com/WebKit/WebKit/commit/2d0855229c8f35a87c7bca8f36456ed76f86a5fb
Author: Yusuke Suzuki <[email protected]>
Date: 2026-08-16 (Sun, 16 Aug 2026)
Changed paths:
M Source/JavaScriptCore/b3/B3Operations.cpp
M Source/WTF/wtf/UnalignedAccess.h
M Source/WTF/wtf/text/StringCommon.h
Log Message:
-----------
[WTF] Add small inlined memcpy for copyElements
https://bugs.webkit.org/show_bug.cgi?id=321902
rdar://185078337
Reviewed by Yijia Huang.
We found that our memcpy / memmove is not efficient enough for small
copying, and it is commonly happening in practice. This patch moves B3's
MemoryCopy's preceding small copying code to WTF so that we can apply
the same optimizations to copyElements.
* Source/JavaScriptCore/b3/B3Operations.cpp:
(JSC::B3::JSC_DEFINE_NOEXCEPT_JIT_OPERATION):
* Source/WTF/wtf/UnalignedAccess.h:
(WTF::copyOverlappingEnds):
(WTF::copyOverlappingEndPairs):
(WTF::copySmallMemory):
* Source/WTF/wtf/text/StringCommon.h:
(WTF::copyElements):
Canonical link: https://commits.webkit.org/319274@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications