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.
- A handle holding an
Instance
of a WebAssembly module.
FunctionsΒ§
- build_
funcrefs πEagerly builds all theVMFuncRef
s for imported and local functions so that all future funcref operations are just looking up this data. - 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 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.