Struct wasm::execution::value_stack::CallFrame
source · pub(crate) struct CallFrame {
pub module_idx: usize,
pub func_idx: usize,
pub locals: Locals,
pub return_addr: usize,
pub value_stack_base_idx: usize,
pub return_value_count: usize,
pub return_stp: usize,
}
Expand description
The WASM spec calls this Activations
, however it refers to the call frames of functions.
Fields§
§module_idx: usize
Index to the module idx the function originates in.
func_idx: usize
Index to the function of this CallFrame
locals: Locals
Local variables such as parameters for this CallFrame
’s function
return_addr: usize
Value that the PC has to be set to when this function returns
value_stack_base_idx: usize
The index to the first value on Stack::values
that belongs to this CallFrame
return_value_count: usize
Number of return values to retain on Stack::values
when unwinding/popping a CallFrame
return_stp: usize
Auto Trait Implementations§
impl Freeze for CallFrame
impl RefUnwindSafe for CallFrame
impl Send for CallFrame
impl Sync for CallFrame
impl Unpin for CallFrame
impl UnwindSafe for CallFrame
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more