mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
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:
parent
8b8e385cde
commit
caedb9060b
7 changed files with 487 additions and 570 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue