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
Instance
of a WebAssembly module.
FunctionsΒ§
- build_
funcrefs π - Eagerly builds all the
VMFuncRef
s for imported and local functions so that all future funcref operations are just looking up this data. - get_
memory_ πinit_ start - Compute the offset for a memory data initializer.
- get_
memory_ π βslice - Return a byte-slice view of a memoryβs data.
- get_
table_ πinit_ start - Compute the offset for a table element initializer.
- initialize_
globals π - initialize_
memories π - Initialize the table memory from the provided initializers.
- initialize_
passive_ πelements - Initialize the
Instance::passive_elements
map by resolving theModuleInfo::passive_elements
βsFunctionIndex
s intoVMCallerCheckedAnyfunc
s for this instance. - initialize_
tables π - Initialize the table memory from the provided initializers.