Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b0701b6a653baf7d52af34502e2febe3a27f307a
https://github.com/WebKit/WebKit/commit/b0701b6a653baf7d52af34502e2febe3a27f307a
Author: Yusuke Suzuki <[email protected]>
Date: 2026-02-03 (Tue, 03 Feb 2026)
Changed paths:
M Source/JavaScriptCore/assembler/MacroAssemblerARM64.h
M Source/JavaScriptCore/assembler/MacroAssemblerX86_64.h
M Source/JavaScriptCore/assembler/testmasm.cpp
M Source/JavaScriptCore/wasm/WasmBBQJIT.cpp
Log Message:
-----------
[JSC] BBQ should use moveConditionally32 for BrTable
https://bugs.webkit.org/show_bug.cgi?id=306839
rdar://169505768
Reviewed by Dan Hecht.
This patch introduces the same optimization to 306461@main in BBQJIT.
Let's use moveConditionally32 to make fallthrough case included in the
jump table, so we can unify BrTable into one jump.
* Source/JavaScriptCore/assembler/MacroAssemblerARM64.h:
(JSC::MacroAssemblerARM64::moveConditionally32):
(JSC::MacroAssemblerARM64::moveConditionallyTest32):
* Source/JavaScriptCore/assembler/MacroAssemblerX86_64.h:
(JSC::MacroAssemblerX86_64::moveConditionally32):
(JSC::MacroAssemblerX86_64::moveConditionallyTest32):
* Source/JavaScriptCore/assembler/testmasm.cpp:
(JSC::expectedResultForRelationalCondition):
(JSC::expectedResultForResultCondition):
(JSC::testMoveConditionally32WithImmThenCase):
(JSC::testMoveConditionallyTest32WithImmThenCaseRegMask):
(JSC::testMoveConditionallyTest32WithImmThenCaseImmMask):
* Source/JavaScriptCore/wasm/WasmBBQJIT.cpp:
(JSC::Wasm::BBQJITImpl::BBQJIT::addSwitch):
Canonical link: https://commits.webkit.org/306743@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications