-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Decode local indices at runtime in WASM in-place interpreter
https://bugs.webkit.org/show_bug.cgi?id=270376 rdar://123720682 Reviewed by Justin Michaud and Yusuke Suzuki. Removes metadata generation for local.get, local.set, and local.tee from the WASM in-place interpreter. Instead, local indices for these instructions are decoded at runtime. Since most local indices are small, this actually saves us time - the added microbenchmark runs 3% faster with this change. More importantly, this saves on memory, eliminating metadata for the most common WASM instructions. * JSTests/microbenchmarks/local-get-set-tee.wasm: Added. * Source/JavaScriptCore/llint/InPlaceInterpreter.asm: * Source/JavaScriptCore/wasm/WasmIPIntGenerator.cpp: (JSC::Wasm::IPIntGenerator::getLocal): (JSC::Wasm::IPIntGenerator::setLocal): Canonical link: https://commits.webkit.org/275815@main
- Loading branch information
Showing
3 changed files
with
53 additions
and
55 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters