Package org.teavm.backend.wasm.disasm
Class DisassemblyCodeSectionListener
- java.lang.Object
-
- org.teavm.backend.wasm.disasm.DisassemblyCodeSectionListener
-
- All Implemented Interfaces:
AddressListener,CodeListener,CodeSectionListener
public class DisassemblyCodeSectionListener extends java.lang.Object implements AddressListener, CodeSectionListener, CodeListener
-
-
Constructor Summary
Constructors Constructor Description DisassemblyCodeSectionListener(DisassemblyWriter writer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddress(int address)voidbinary(WasmFloatBinaryOperation opcode, WasmFloatType type)voidbinary(WasmIntBinaryOperation opcode, WasmIntType type)voidbranch(BranchOpcode opcode, int depth, int target)voidcall(int functionIndex)CodeListenercode()voidconvert(WasmType sourceType, WasmType targetType, boolean signed, boolean reinterpret)voidendBlock(int token, boolean loop)voiderror(int depth)voidfloat32Constant(float value)voidfloat64Constant(double value)voidfunctionEnd()booleanfunctionStart(int index, int size)voidindirectCall(int typeIndex, int tableIndex)voidint32Constant(int value)voidint64Constant(long value)voidloadFloat32(int align, int offset)voidloadFloat64(int align, int offset)voidloadInt32(WasmInt32Subtype convertFrom, int align, int offset)voidloadInt64(WasmInt64Subtype convertFrom, int align, int offset)voidlocal(int start, int count, WasmType type)voidlocal(LocalOpcode opcode, int index)voidlocalsStart(int count)static voidmain(java.lang.String[] args)voidmemoryGrow()voidopcode(Opcode opcode)voidsectionEnd()voidsectionStart(int functionCount)intstartBlock(boolean loop, WasmType type)intstartConditionalBlock(WasmType type)voidstartElseSection(int token)voidstoreFloat32(int align, int offset)voidstoreFloat64(int align, int offset)voidstoreInt32(WasmInt32Subtype convertTo, int align, int offset)voidstoreInt64(WasmInt64Subtype convertTo, int align, int offset)voidtableBranch(int[] depths, int[] targets, int defaultDepth, int defaultTarget)voidunary(WasmFloatUnaryOperation opcode, WasmFloatType type)voidunary(WasmIntUnaryOperation opcode, WasmIntType type)
-
-
-
Constructor Detail
-
DisassemblyCodeSectionListener
public DisassemblyCodeSectionListener(DisassemblyWriter writer)
-
-
Method Detail
-
address
public void address(int address)
- Specified by:
addressin interfaceAddressListener
-
sectionStart
public void sectionStart(int functionCount)
- Specified by:
sectionStartin interfaceCodeSectionListener
-
functionStart
public boolean functionStart(int index, int size)- Specified by:
functionStartin interfaceCodeSectionListener
-
localsStart
public void localsStart(int count)
- Specified by:
localsStartin interfaceCodeSectionListener
-
local
public void local(int start, int count, WasmType type)- Specified by:
localin interfaceCodeSectionListener
-
code
public CodeListener code()
- Specified by:
codein interfaceCodeSectionListener
-
functionEnd
public void functionEnd()
- Specified by:
functionEndin interfaceCodeSectionListener
-
sectionEnd
public void sectionEnd()
- Specified by:
sectionEndin interfaceCodeSectionListener
-
error
public void error(int depth)
- Specified by:
errorin interfaceCodeListener
-
startBlock
public int startBlock(boolean loop, WasmType type)- Specified by:
startBlockin interfaceCodeListener
-
startConditionalBlock
public int startConditionalBlock(WasmType type)
- Specified by:
startConditionalBlockin interfaceCodeListener
-
startElseSection
public void startElseSection(int token)
- Specified by:
startElseSectionin interfaceCodeListener
-
endBlock
public void endBlock(int token, boolean loop)- Specified by:
endBlockin interfaceCodeListener
-
branch
public void branch(BranchOpcode opcode, int depth, int target)
- Specified by:
branchin interfaceCodeListener
-
tableBranch
public void tableBranch(int[] depths, int[] targets, int defaultDepth, int defaultTarget)- Specified by:
tableBranchin interfaceCodeListener
-
opcode
public void opcode(Opcode opcode)
- Specified by:
opcodein interfaceCodeListener
-
local
public void local(LocalOpcode opcode, int index)
- Specified by:
localin interfaceCodeListener
-
call
public void call(int functionIndex)
- Specified by:
callin interfaceCodeListener
-
indirectCall
public void indirectCall(int typeIndex, int tableIndex)- Specified by:
indirectCallin interfaceCodeListener
-
loadInt32
public void loadInt32(WasmInt32Subtype convertFrom, int align, int offset)
- Specified by:
loadInt32in interfaceCodeListener
-
storeInt32
public void storeInt32(WasmInt32Subtype convertTo, int align, int offset)
- Specified by:
storeInt32in interfaceCodeListener
-
loadInt64
public void loadInt64(WasmInt64Subtype convertFrom, int align, int offset)
- Specified by:
loadInt64in interfaceCodeListener
-
storeInt64
public void storeInt64(WasmInt64Subtype convertTo, int align, int offset)
- Specified by:
storeInt64in interfaceCodeListener
-
loadFloat32
public void loadFloat32(int align, int offset)- Specified by:
loadFloat32in interfaceCodeListener
-
storeFloat32
public void storeFloat32(int align, int offset)- Specified by:
storeFloat32in interfaceCodeListener
-
loadFloat64
public void loadFloat64(int align, int offset)- Specified by:
loadFloat64in interfaceCodeListener
-
storeFloat64
public void storeFloat64(int align, int offset)- Specified by:
storeFloat64in interfaceCodeListener
-
memoryGrow
public void memoryGrow()
- Specified by:
memoryGrowin interfaceCodeListener
-
unary
public void unary(WasmIntUnaryOperation opcode, WasmIntType type)
- Specified by:
unaryin interfaceCodeListener
-
unary
public void unary(WasmFloatUnaryOperation opcode, WasmFloatType type)
- Specified by:
unaryin interfaceCodeListener
-
binary
public void binary(WasmIntBinaryOperation opcode, WasmIntType type)
- Specified by:
binaryin interfaceCodeListener
-
binary
public void binary(WasmFloatBinaryOperation opcode, WasmFloatType type)
- Specified by:
binaryin interfaceCodeListener
-
convert
public void convert(WasmType sourceType, WasmType targetType, boolean signed, boolean reinterpret)
- Specified by:
convertin interfaceCodeListener
-
int32Constant
public void int32Constant(int value)
- Specified by:
int32Constantin interfaceCodeListener
-
int64Constant
public void int64Constant(long value)
- Specified by:
int64Constantin interfaceCodeListener
-
float32Constant
public void float32Constant(float value)
- Specified by:
float32Constantin interfaceCodeListener
-
float64Constant
public void float64Constant(double value)
- Specified by:
float64Constantin interfaceCodeListener
-
main
public static void main(java.lang.String[] args) throws java.io.IOException- Throws:
java.io.IOException
-
-