Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: ab6f33ed057a30928d4e6e01a8a4e4d5cfa4531f https://github.com/WebKit/WebKit/commit/ab6f33ed057a30928d4e6e01a8a4e4d5cfa4531f Author: Yusuke Suzuki <ysuz...@apple.com> Date: 2023-06-08 (Thu, 08 Jun 2023)
Changed paths: M Source/JavaScriptCore/wasm/WasmBBQJIT.cpp Log Message: ----------- [JSC] Optimize BBQJIT call_indirect https://bugs.webkit.org/show_bug.cgi?id=257864 rdar://110485655 Reviewed by Justin Michaud. 1. Clean up some of call_indirect setup to shrink # of instructions / use cheaper instructions. 2. We should restore memoryBase / memorySize only when we may change it. Adding restoreWebAssemblyGlobalStateAfterWasmCall, which avoids costly restoring when it is not changed. * Source/JavaScriptCore/wasm/WasmBBQJIT.cpp: (JSC::Wasm::BBQJIT::restoreWebAssemblyGlobalStateAfterWasmCall): (JSC::Wasm::BBQJIT::addCall): (JSC::Wasm::BBQJIT::emitIndirectCall): (JSC::Wasm::BBQJIT::addCallIndirect): Canonical link: https://commits.webkit.org/265000@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes