[webkit-changes] [WebKit/WebKit] 4f277a: [JSC] Fix restoreWebAssemblyGlobalState in new was...
Yusuke Suzuki
noreply at github.com
Fri Feb 17 14:04:09 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4f277a90e568dcc05d57cb96abf3820d031c5f4a
https://github.com/WebKit/WebKit/commit/4f277a90e568dcc05d57cb96abf3820d031c5f4a
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2023-02-17 (Fri, 17 Feb 2023)
Changed paths:
M Source/JavaScriptCore/wasm/WasmBBQJIT.cpp
Log Message:
-----------
[JSC] Fix restoreWebAssemblyGlobalState in new wasm baseline JIT
https://bugs.webkit.org/show_bug.cgi?id=252503
rdar://105611063
Reviewed by Justin Michaud.
cageConditionallyAndUntag cannot take m_dataScratchGPR for multiple scratch registers. They need different one.
This patch changes the new wasm baseline JIT to always reserve GPRInfo::wasmBoundsCheckingSizeRegister.
We anyway reserving all callee-save registers right now, so it does not change the code generation. Plus, this
makes implementation simpler.
* Source/JavaScriptCore/wasm/WasmBBQJIT.cpp:
(JSC::Wasm::BBQJIT::BBQJIT):
(JSC::Wasm::BBQJIT::emitCheckAndPreparePointer):
(JSC::Wasm::BBQJIT::restoreWebAssemblyGlobalState):
(JSC::Wasm::BBQJIT::emitIndirectCall):
Canonical link: https://commits.webkit.org/260466@main
More information about the webkit-changes
mailing list