Versions in this module Expand all Collapse all v0 v0.6.0 Sep 13, 2019 Changes in this version + type NativeCompilationError struct + End uint + Err error + FuncIndex int + Start uint + func (e NativeCompilationError) Error() string + type NativeCompileStats struct + NumCompiledBlocks int + Ops map[byte]*OpStats + type OpStats struct + Compiled int + Interpreted int type Process + func (proc *Process) MemSize() int type VM + func (vm *VM) Close() error + func (vm *VM) CompileStats() NativeCompileStats + func (vm *VM) Restart() + type VMOption func(c *config) + func EnableAOT(v bool) VMOption v0.3.0 Aug 7, 2018 Changes in this version + var ErrInvalidArgumentCount = errors.New("exec: invalid number of arguments to function") + var ErrMultipleLinearMemories = errors.New("exec: more than one linear memories in module") + var ErrOutOfBoundsMemoryAccess = errors.New("exec: out of bounds memory access") + var ErrSignatureMismatch = errors.New("exec: signature mismatch in call_indirect") + var ErrUndefinedElementIndex = errors.New("exec: undefined element index") + var ErrUnreachable = errors.New("exec: reached unreachable") + type InvalidFunctionIndexError int64 + func (e InvalidFunctionIndexError) Error() string + type InvalidReturnTypeError int8 + func (e InvalidReturnTypeError) Error() string + type Process struct + func NewProcess(vm *VM) *Process + func (proc *Process) ReadAt(p []byte, off int64) (int, error) + func (proc *Process) Terminate() + func (proc *Process) WriteAt(p []byte, off int64) (int, error) + type VM struct + RecoverPanic bool + func NewVM(module *wasm.Module) (*VM, error) + func (vm *VM) ExecCode(fnIndex int64, args ...uint64) (rtrn interface{}, err error) + func (vm *VM) Memory() []byte