-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow host functions to call Wasm functions (#590)
* add StashArena data structure to wasmi_arena * rename wasmi_arena::Index to ArenaIndex * import core::ops::Index[Mut] since wasmi_arena::Index got renamed * properly forward to Stash::is_empty * put shared engine resources behind RwLock This will later allow multiple EngineExecutors to share a single read-only EngineResources. * remove unnecessary clone call * remove redundant clone in stash tests * add proper Default impls to Stash[Arena] * add EngineStacks struct * integrate new EngineStacks type * add cached_stacks option to Config * add Config::cached_stacks option * fix various compile warnings and errors * add test for host calling wasm back * remove [Arena]Stash data structure again * apply clippy suggestions * apply rustfmt suggestions * apply rustfmt suggestions v2 * apply rustfmt suggestions v3 * apply rustfmt suggestions v4
- Loading branch information
Showing
5 changed files
with
234 additions
and
47 deletions.
There are no files selected for viewing
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
Oops, something went wrong.