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 the
VMFuncRef
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.