Struct parity_wasm::interpreter::CallerContext
[−]
[src]
pub struct CallerContext<'a, E: 'a + UserError> { pub value_stack_limit: usize, pub frame_stack_limit: usize, pub value_stack: &'a mut StackWithLimit<RuntimeValue, E>, pub externals: &'a HashMap<String, Arc<ModuleInstanceInterface<E> + 'a>>, }
Caller context.
Fields
value_stack_limit: usize
Value stack limit
frame_stack_limit: usize
Frame stack limit
value_stack: &'a mut StackWithLimit<RuntimeValue, E>
Stack of the input parameters
externals: &'a HashMap<String, Arc<ModuleInstanceInterface<E> + 'a>>
Execution-local external modules.
Methods
impl<'a, E> CallerContext<'a, E> where
E: UserError,
[src]
E: UserError,
fn topmost(
args: &'a mut StackWithLimit<RuntimeValue, E>,
externals: &'a HashMap<String, Arc<ModuleInstanceInterface<E> + 'a>>
) -> Self
[src]
args: &'a mut StackWithLimit<RuntimeValue, E>,
externals: &'a HashMap<String, Arc<ModuleInstanceInterface<E> + 'a>>
) -> Self
Top most args
fn nested(outer: &'a mut FunctionContext<E>) -> Self
[src]
Nested context