[webkit-changes] [WebKit/WebKit] 572552: [JSC] Remove m_dataScratch register in WasmBBQJIT
Yusuke Suzuki
noreply at github.com
Thu Mar 2 03:44:24 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5725527e969ef5d52759e35d253f6ca9b05741d4
https://github.com/WebKit/WebKit/commit/5725527e969ef5d52759e35d253f6ca9b05741d4
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2023-03-02 (Thu, 02 Mar 2023)
Changed paths:
M Source/JavaScriptCore/assembler/MacroAssembler.h
M Source/JavaScriptCore/assembler/MacroAssemblerARM64.h
M Source/JavaScriptCore/assembler/MacroAssemblerX86_64.h
M Source/JavaScriptCore/wasm/WasmBBQJIT.cpp
Log Message:
-----------
[JSC] Remove m_dataScratch register in WasmBBQJIT
https://bugs.webkit.org/show_bug.cgi?id=253230
rdar://106129794
Reviewed by Mark Lam.
Using m_dataScratch caused *so* many problems. It is rax in x64, which causes the
problem that returnValueGPR is not usable as a scratch. And our calling convension
needs a hack to avoid this problem.
Also, we do not need m_dataScratch much. MacroAssembler itself has a scratch register
for normal use (non B3 / Air use), so that we can implement a lot of operations in
MacroAssembler without using m_dataScratch.
* Source/JavaScriptCore/assembler/MacroAssembler.h:
(JSC::MacroAssembler::moveFloat):
(JSC::MacroAssembler::moveDouble):
* Source/JavaScriptCore/assembler/MacroAssemblerARM64.h:
(JSC::MacroAssemblerARM64::transfer32):
(JSC::MacroAssemblerARM64::materializeVector):
* Source/JavaScriptCore/assembler/MacroAssemblerX86_64.h:
(JSC::MacroAssemblerX86_64::transfer32):
(JSC::MacroAssemblerX86_64::materializeVector):
* Source/JavaScriptCore/wasm/WasmBBQJIT.cpp:
(JSC::Wasm::BBQJIT::BBQJIT):
(JSC::Wasm::BBQJIT::addF32ConvertUI32):
(JSC::Wasm::BBQJIT::addF32ConvertUI64):
(JSC::Wasm::BBQJIT::addF64ConvertUI32):
(JSC::Wasm::BBQJIT::addF64ConvertUI64):
(JSC::Wasm::BBQJIT::addF32Copysign):
(JSC::Wasm::BBQJIT::addF64Copysign):
(JSC::Wasm::BBQJIT::addF32Abs):
(JSC::Wasm::BBQJIT::addF64Abs):
(JSC::Wasm::BBQJIT::restoreWebAssemblyGlobalState):
(JSC::Wasm::BBQJIT::emitIndirectCall):
(JSC::Wasm::BBQJIT::materializeVectorConstant):
(JSC::Wasm::BBQJIT::addSIMDV_V):
(JSC::Wasm::BBQJIT::emitVectorMul):
(JSC::Wasm::BBQJIT::addSIMDV_VV):
(JSC::Wasm::BBQJIT::isScratch):
(JSC::Wasm::BBQJIT::emitMoveConst):
(JSC::Wasm::BBQJIT::emitMoveMemory):
Canonical link: https://commits.webkit.org/261060@main
More information about the webkit-changes
mailing list