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 Object
implements AddressListener, CodeSectionListener, CodeListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddress(int address) voidbinary(WasmFloatBinaryOperation opcode, WasmFloatType type) voidbinary(WasmIntBinaryOperation opcode, WasmIntType type) voidbranch(BranchOpcode opcode, int depth, int target) voidcall(int functionIndex) code()voidvoidendBlock(int token, boolean loop) voiderror(int depth) voidfloat32Constant(float value) voidfloat64Constant(double value) voidbooleanfunctionStart(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) voidvoidlocal(LocalOpcode opcode, int index) voidlocalsStart(int count) static voidvoidvoidvoidvoidsectionStart(int functionCount) intstartBlock(boolean loop, WasmType type) intvoidstartElseSection(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 Details
-
DisassemblyCodeSectionListener
-
-
Method Details
-
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
- Specified by:
localin interfaceCodeSectionListener
-
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
- Specified by:
startBlockin interfaceCodeListener
-
startConditionalBlock
- 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
- Specified by:
branchin interfaceCodeListener
-
tableBranch
public void tableBranch(int[] depths, int[] targets, int defaultDepth, int defaultTarget) - Specified by:
tableBranchin interfaceCodeListener
-
opcode
- Specified by:
opcodein interfaceCodeListener
-
local
- 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
- Specified by:
loadInt32in interfaceCodeListener
-
storeInt32
- Specified by:
storeInt32in interfaceCodeListener
-
loadInt64
- Specified by:
loadInt64in interfaceCodeListener
-
storeInt64
- 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
- Specified by:
unaryin interfaceCodeListener
-
unary
- Specified by:
unaryin interfaceCodeListener
-
binary
- Specified by:
binaryin interfaceCodeListener
-
binary
- Specified by:
binaryin interfaceCodeListener
-
convert
- 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
- Throws:
IOException
-