runner

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resolver res

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
	DebugMap debug.InsnMap
	// contains filtered or unexported fields
}

func NewProgram

func NewProgram(maxTextSize int, startFunc, entryFunc uint32) (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, stackSize int) (r *Runner, err error)

func (*Program) Seal

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

func (*Program) SetData

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

func (*Program) SetEntryAddr added in v0.32.0

func (p *Program) SetEntryAddr(addr uint32)

func (*Program) TextAddr added in v0.32.0

func (p *Program) TextAddr() uintptr

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 []wa.FuncType, printer io.Writer) (e *Executor, eventHandler func(event.Event))

func (*Runner) Run

func (r *Runner) Run(testArg int64, sigs []wa.FuncType, printer io.Writer) (result int32, err error)

func (*Runner) WriteStacktraceTo

func (r *Runner) WriteStacktraceTo(w io.Writer, funcs []wa.FuncType, ns *section.NameSection) (err error)

type Snapshot

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

func (*Snapshot) NewRunner

func (s *Snapshot) NewRunner(p *Program, growMemorySize, stackSize int) (r *Runner, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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