Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 25eddb52ee733461a1e193f1f7a4df7cb0c623ee
https://github.com/WebKit/WebKit/commit/25eddb52ee733461a1e193f1f7a4df7cb0c623ee
Author: Sosuke Suzuki <[email protected]>
Date: 2026-05-11 (Mon, 11 May 2026)
Changed paths:
M Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp
Log Message:
-----------
[JSC] Mark obvious slow paths as `rarely()` instead of `unsure()` in
`FTLLowerDFGToB3`
https://bugs.webkit.org/show_bug.cgi?id=314518
Reviewed by Yusuke Suzuki.
unsure() maps to B3's Normal frequency class, same as usually(); only
rarely() affects B3's block layout. Many branches in FTLLowerDFGToB3.cpp
use unsure() even when one side is clearly a slow path (vmCall, lazy slow
path, exception fallback, rope bailout, OOB, cache miss), often inconsistent
with sibling branches that already use rarely()/usually().
This patch changes to convert 23 such branches to rarely()/usually().
* Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:
(JSC::FTL::DFG::LowerDFGToB3::compileGetPrivateName):
(JSC::FTL::DFG::LowerDFGToB3::compileGetPrivateNameById):
(JSC::FTL::DFG::LowerDFGToB3::compileGetPrototypeOf):
(JSC::FTL::DFG::LowerDFGToB3::compilePutByVal):
(JSC::FTL::DFG::LowerDFGToB3::compileArrayPush):
(JSC::FTL::DFG::LowerDFGToB3::compileCreateClonedArguments):
(JSC::FTL::DFG::LowerDFGToB3::compileFunctionToString):
(JSC::FTL::DFG::LowerDFGToB3::compileStringLocaleCompare):
(JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq):
Canonical link: https://commits.webkit.org/313045@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications