Expand description
An Instance contains all the runtime state used by execution of
a WebAssembly module (except its callstack and register state). An
VMInstance is a wrapper around Instance that manages
how it is allocated and deallocated.
Re-exportsΒ§
pub use allocator::InstanceAllocator;
ModulesΒ§
- allocator π
StructsΒ§
- Instance π
- A WebAssembly instance.
- VMInstance
- A handle holding an
Instanceof a WebAssembly module.
EnumsΒ§
- Evaluated
Init πExpr
FunctionsΒ§
- build_
funcrefs π - Eagerly builds all the
VMFuncRefs for imported and local functions so that all future funcref operations are just looking up this data. - eval_
init_ πexpr - get_
global π - get_
memory_ π βslice - Return a byte-slice view of a memoryβs data.
- initialize_
globals π - initialize_
memories π - Initialize the table memory from the provided initializers.
- initialize_
passive_ πelements - Initialize the
Instance::passive_elementsmap by resolving theModuleInfo::passive_elementsβsFunctionIndexs intoVMCallerCheckedAnyfuncs for this instance. - initialize_
tables π - Initialize the table memory from the provided initializers.