Module instance

Source
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 VMFuncRefs 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 the ModuleInfo::passive_elements’s FunctionIndexs into VMCallerCheckedAnyfuncs for this instance.
initialize_tables πŸ”’
Initialize the table memory from the provided initializers.