-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Wasm
multi-memory
proposal (#1191)
* add Memory index type * adjust load instructions for multi-memory proposal * improve docs for 16-bit offset variants * re-design store instruction for multi-memory proposal * minor fix in store instruction docs * adjust executor to support re-designed load instructions * fix docs for fetch_ptr_and_offset * adjust executor to support new and re-designed store instructions * optionally encode Instruction::MemoryIndex after load_at instructions * implement translation of new load instruction * apply clippy suggestion * apply rustfmt * fix 32_store16_imm snake name * teach Wasmi translator to encode the new store instruction * update encoding docs of store_at instructions * add multi-memory support to wasmi::Config * support optional MemoryIndex param for store instrs in executor * add #[inline] to fetch_optional_memory * improve docs of TableFill instructions * update docs for bulk memory instructions * implement multi-memory support for bulk-memory instrs in translator and executor * disable multi-memory for MVP test config * fix bug in load instruction translation * apply rustfmt * fix memory_size translation tests * update and fix load instruction translation tests * fix translation of memory.grow * update and fix memory.grow translation tests * update and fix memory.copy translation tests * fix and adjust memory.fill translation tests * fix and adjust memory.init translation tests * adjust and fix some store instruction translation tests * add store_imm16 translation test * update and fix remaining store translation tests * fix bug in executor for memory.grow * fix clippy warnings * remove commented out code * remove commented out code (2) * remove outdated debug assertion * include multi-memory spec tests * update Wasm spec testsuite by 1 rev * fix bug in memory.copy execution * improve naming of locals
- Loading branch information
Showing
29 changed files
with
2,077 additions
and
591 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,7 @@ impl_host_visitor_for!( | |
Func, | ||
FuncType, | ||
Global, | ||
Memory, | ||
Table, | ||
Elem, | ||
Data, | ||
|
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
Oops, something went wrong.