package
0.6.0
Repository: https://github.com/go-interpreter/wagon.git
Documentation: pkg.go.dev

# Functions

EnableAOT enables ahead-of-time compilation of supported opcodes into runs of native instructions, if wagon supports native compilation for the current architecture.
NewProcess creates a VM interface object for host functions.
NewVM creates a new VM from a given module and options.

# Variables

ErrInvalidArgumentCount is returned by (*VM).ExecCode when an invalid number of arguments to the WebAssembly function are passed to it.
ErrMultipleLinearMemories is returned by (*VM).NewVM when the module has more then one entries in the linear memory space.
ErrOutOfBoundsMemoryAccess is the error value used while trapping the VM when it detects an out of bounds access to the linear memory.
ErrSignatureMismatch is the error value used while trapping the VM when a signature mismatch between the table entry and the type entry is found in a call_indirect operation.
ErrUndefinedElementIndex is the error value used while trapping the VM when an invalid index to the module's table space is used as an operand to call_indirect.
ErrUnreachable is the error value used while trapping the VM when an unreachable operator is reached during execution.

# Structs

NativeCompilationError represents a failure to compile a sequence of instructions to native code.
NativeCompileStats encapsulates statistics about any native compilation performed on the VM.
Process is a proxy passed to host functions in order to access things such as memory and control.
VM is the execution context for executing WebAssembly bytecode.

# Type aliases

InvalidFunctionIndexError is returned by (*VM).ExecCode when the function index provided is invalid.
InvalidReturnTypeError is returned by (*VM).ExecCode when the module specifies an invalid return type value for the executed function.
VMOption describes a customization that can be applied to the VM.