Module wasmer_vm::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§

Modules§

Structs§

  • Instance πŸ”’
    A WebAssembly instance.
  • 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.
  • Compute the offset for a memory data initializer.
  • get_memory_slice πŸ”’ ⚠
    Return a byte-slice view of a memory’s data.
  • Compute the offset for a table element initializer.
  • Initialize the table memory from the provided initializers.
  • Initialize the Instance::passive_elements map by resolving the ModuleInfo::passive_elements’s FunctionIndexs into VMCallerCheckedAnyfuncs for this instance.
  • Initialize the table memory from the provided initializers.