Versions in this module Expand all Collapse all v0 v0.6.0 Sep 13, 2019 Changes in this version type Disassembly + func NewDisassembly(fn wasm.Function, module *wasm.Module) (*Disassembly, error) v0.3.0 Aug 7, 2018 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 Disassemble(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 + type StackInfo struct + IsReturn bool + PreserveTop bool + StackTopDiff int64