Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: aa6c00c696e60d57f228c0921b316171eed272c1
https://github.com/WebKit/WebKit/commit/aa6c00c696e60d57f228c0921b316171eed272c1
Author: Yusuke Suzuki <[email protected]>
Date: 2026-04-27 (Mon, 27 Apr 2026)
Changed paths:
M Source/JavaScriptCore/b3/B3AbstractHeapRepository.h
M Source/JavaScriptCore/dfg/DFGOperations.cpp
M Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp
M Source/JavaScriptCore/runtime/JSGlobalObject.cpp
M Source/JavaScriptCore/runtime/JSGlobalObject.h
Log Message:
-----------
[JSC] Inline tight loop of String#localeCompare in FTL
https://bugs.webkit.org/show_bug.cgi?id=313291
rdar://175559239
Reviewed by Yijia Huang.
This patch implements a fast path of String#localeCompare in FTL.
Right now, we do this intentionally in FTL as it indicates that this
is hot enough to do this optimization.
* Source/JavaScriptCore/b3/B3AbstractHeapRepository.h:
* Source/JavaScriptCore/dfg/DFGOperations.cpp:
(JSC::DFG::JSC_DEFINE_JIT_OPERATION):
* Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileStringLocaleCompare):
* Source/JavaScriptCore/runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::init):
* Source/JavaScriptCore/runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::canDoASCIIUCADUCETLocaleCompare const):
(JSC::JSGlobalObject::offsetOfCanDoASCIIUCADUCETLocaleCompare):
Canonical link: https://commits.webkit.org/312145@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications