Versions in this module Expand all Collapse all v0 v0.4.2 Feb 13, 2020 v0.4.1 Dec 25, 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