wasm_interp: remove CallStack, create Frame, & share value storage for stack and locals

This allows us to do calls without moving arguments from one place to another
This commit is contained in:
Brian Carroll 2022-12-16 21:38:37 +00:00
parent 8b8e385cde
commit caedb9060b
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
7 changed files with 487 additions and 570 deletions

View file

@ -1,4 +1,4 @@
mod call_stack;
mod frame;
mod instance;
mod tests;
mod value_stack;
@ -10,7 +10,6 @@ pub use wasi::{WasiDispatcher, WasiFile};
pub use roc_wasm_module::Value;
use roc_wasm_module::{ValueType, WasmModule};
use value_stack::ValueStack;
pub trait ImportDispatcher {
/// Dispatch a call from WebAssembly to your own code, based on module and function name.