runner

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2018 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Env env

Functions

This section is empty.

Types

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

func (*Executor) Wait

func (e *Executor) Wait() (result int32, err error)

type Program

type Program struct {
	Text   []byte
	ROData []byte
	// contains filtered or unexported fields
}

func NewProgram

func NewProgram(maxTextSize, maxRODataSize int) (p *Program, err error)

func (*Program) CallSites

func (p *Program) CallSites() map[int]callSite

func (*Program) Close

func (p *Program) Close() (first error)

func (*Program) NewRunner

func (p *Program) NewRunner(initMemorySize, growMemorySize wasm.MemorySize, stackSize int) (r *Runner, err error)

func (*Program) RODataAddr

func (p *Program) RODataAddr() int32

func (*Program) Seal

func (p *Program) Seal() (err error)

func (*Program) SetCallMap

func (p *Program) SetCallMap(callMap []module.CallSite)

func (*Program) SetData

func (p *Program) SetData(data []byte, memoryOffset int)

func (*Program) SetFunctionMap

func (p *Program) SetFunctionMap(funcMap []int32)

type Runner

type Runner struct {
	Snapshots []*Snapshot
	// contains filtered or unexported fields
}

func (*Runner) Close

func (r *Runner) Close() (first error)

func (*Runner) NewExecutor

func (r *Runner) NewExecutor(sigs []function.Type, printer io.Writer) (e *Executor, trigger chan<- struct{})

func (*Runner) Run

func (r *Runner) Run(arg int64, sigs []function.Type, printer io.Writer) (result int32, err error)

func (*Runner) WriteStacktraceTo

func (r *Runner) WriteStacktraceTo(w io.Writer, funcSigs []function.Type, ns *section.NameSection) (err error)

type Snapshot

type Snapshot struct {
	// contains filtered or unexported fields
}

func (*Snapshot) NewRunner

func (s *Snapshot) NewRunner(growMemorySize wasm.MemorySize, stackSize int) (r *Runner, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL