runner

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 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 []meta.CallSite)

func (*Program) SetData

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

func (*Program) SetFuncMap added in v0.3.1

func (p *Program) SetFuncMap(funcMap []meta.TextAddr)

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 []abi.Sig, printer io.Writer) (e *Executor, trigger chan<- struct{})

func (*Runner) Run

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

func (*Runner) WriteStacktraceTo

func (r *Runner) WriteStacktraceTo(w io.Writer, funcSigs []abi.Sig, 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