Versions in this module Expand all Collapse all v1 v1.0.0 Oct 31, 2019 Changes in this version + var ErrStackUnderflow = errors.New("disasm: stack underflow") + func Assemble(instr []Instr) ([]byte, error) + func SetDebugMode(l bool) + type BlockInfo struct + BlockStartIndex int + ElseIfIndex int + EndIndex int + IfElseIndex int + Signature wasm.BlockType + Start bool + type Disassembly struct + Code []Instr + MaxDepth int + func NewDisassembly(fn wasm.Function, module *wasm.Module) (*Disassembly, error) + type Instr struct + Block *BlockInfo + Branches []StackInfo + Immediates []interface{} + IsReturn bool + NewStack *StackInfo + Op ops.Op + Unreachable bool + func Disassemble(code []byte) ([]Instr, error) + type StackInfo struct + IsReturn bool + PreserveTop bool + StackTopDiff int64