Read stack values based on state map.

This commit is contained in:
losfair
2019-06-12 22:02:15 +08:00
parent 00b6bf632a
commit 32008eba88
8 changed files with 599 additions and 144 deletions

View File

@ -1,10 +1,10 @@
use crate::{
error::CompileResult,
module::ModuleInner,
state::ModuleStateMap,
typed_func::Wasm,
types::{LocalFuncIndex, SigIndex},
vm,
state::ModuleStateMap,
};
use crate::{
@ -85,9 +85,9 @@ pub trait RunnableModule: Send + Sync {
local_func_index: LocalFuncIndex,
) -> Option<NonNull<vm::Func>>;
fn get_module_state_map(
&self,
) -> Option<ModuleStateMap> { None }
fn get_module_state_map(&self) -> Option<ModuleStateMap> {
None
}
/// A wasm trampoline contains the necesarry data to dynamically call an exported wasm function.
/// Given a particular signature index, we are returned a trampoline that is matched with that