Versions in this module Expand all Collapse all v0 v0.2.0 Aug 7, 2018 Changes in this version + func Assemble(instr []Instr) ([]byte, error) v0.1.0 Jul 28, 2018 Changes in this version + var ErrStackUnderflow = errors.New("disasm: stack underflow") + 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