Class DisassemblyCodeListener
java.lang.Object
org.teavm.backend.wasm.disasm.BaseDisassemblyListener
org.teavm.backend.wasm.disasm.DisassemblyCodeListener
- All Implemented Interfaces:
CodeListener
-
Field Summary
Fields inherited from class BaseDisassemblyListener
nameProvider, writerFields inherited from interface CodeListener
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionDisassemblyCodeListener(DisassemblyWriter writer, NameProvider nameProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidarrayCopy(int targetTypeIndex, int sourceTypeIndex) voidarrayGet(WasmSignedType signedType, int typeIndex) voidarrayNewDefault(int typeIndex) voidarrayNewFixed(int typeIndex, int size) voidarraySet(int typeIndex) voidbinary(WasmFloatBinaryOperation opcode, WasmFloatType type) voidbinary(WasmIntBinaryOperation opcode, WasmIntType type) voidbranch(BranchOpcode opcode, int depth, int target) voidcall(int functionIndex) voidcallReference(int typeIndex) voidcast(WasmHollowType.Reference type) voidcastBranch(boolean success, int depth, int target, WasmHollowType.Reference sourceType, WasmHollowType.Reference targetType) voidconvert(WasmNumType sourceType, WasmNumType targetType, boolean signed, boolean reinterpret, boolean nonTrapping) voidendBlock(int token, boolean loop) voiderror(int depth) voidfloat32Constant(float value) voidfloat64Constant(double value) voidfunctionReference(int functionIndex) voidgetGlobal(int globalIndex) voidindirectCall(int typeIndex, int tableIndex) voidint31Get(WasmSignedType signedType) voidvoidint32Constant(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(LocalOpcode opcode, int index) voidvoidvoidvoidvoidvoidreset()voidsetCurrentFunctionId(int currentFunctionId) voidsetGlobal(int globalIndex) intstartBlock(boolean loop, WasmHollowBlockType type) voidstartCatch(int tagIndex) intvoidstartElseSection(int token) intstartTry(WasmHollowType type) voidstoreFloat32(int align, int offset) voidstoreFloat64(int align, int offset) voidstoreInt32(WasmInt32Subtype convertTo, int align, int offset) voidstoreInt64(WasmInt64Subtype convertTo, int align, int offset) voidstructGet(WasmSignedType signedType, int typeIndex, int fieldIndex) voidstructNew(int typeIndex) voidstructNewDefault(int typeIndex) voidstructSet(int typeIndex, int fieldIndex) voidtableBranch(int[] depths, int[] targets, int defaultDepth, int defaultTarget) voidtest(WasmHollowType.Reference type) voidthrowInstruction(int tagIndex) voidunary(WasmFloatUnaryOperation opcode, WasmFloatType type) voidunary(WasmIntUnaryOperation opcode, WasmIntType type) Methods inherited from class BaseDisassemblyListener
writeBlockType, writeFieldRef, writeFunctionRef, writeGlobalRef, writeLocalRef, writeType, writeType, writeTypeRef
-
Constructor Details
-
DisassemblyCodeListener
-
-
Method Details
-
setCurrentFunctionId
public void setCurrentFunctionId(int currentFunctionId) -
reset
public void reset() -
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
-
startTry
- Specified by:
startTryin interfaceCodeListener
-
startCatch
public void startCatch(int tagIndex) - Specified by:
startCatchin interfaceCodeListener
-
endBlock
public void endBlock(int token, boolean loop) - Specified by:
endBlockin interfaceCodeListener
-
branch
- Specified by:
branchin interfaceCodeListener
-
castBranch
public void castBranch(boolean success, int depth, int target, WasmHollowType.Reference sourceType, WasmHollowType.Reference targetType) - Specified by:
castBranchin interfaceCodeListener
-
tableBranch
public void tableBranch(int[] depths, int[] targets, int defaultDepth, int defaultTarget) - Specified by:
tableBranchin interfaceCodeListener
-
throwInstruction
public void throwInstruction(int tagIndex) - Specified by:
throwInstructionin interfaceCodeListener
-
opcode
- Specified by:
opcodein interfaceCodeListener
-
local
- Specified by:
localin interfaceCodeListener
-
getGlobal
public void getGlobal(int globalIndex) - Specified by:
getGlobalin interfaceCodeListener
-
setGlobal
public void setGlobal(int globalIndex) - Specified by:
setGlobalin interfaceCodeListener
-
call
public void call(int functionIndex) - Specified by:
callin interfaceCodeListener
-
indirectCall
public void indirectCall(int typeIndex, int tableIndex) - Specified by:
indirectCallin interfaceCodeListener
-
callReference
public void callReference(int typeIndex) - Specified by:
callReferencein 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
-
memoryFill
public void memoryFill()- Specified by:
memoryFillin interfaceCodeListener
-
memoryCopy
public void memoryCopy()- Specified by:
memoryCopyin interfaceCodeListener
-
unary
- Specified by:
unaryin interfaceCodeListener
-
unary
- Specified by:
unaryin interfaceCodeListener
-
binary
- Specified by:
binaryin interfaceCodeListener
-
binary
- Specified by:
binaryin interfaceCodeListener
-
convert
public void convert(WasmNumType sourceType, WasmNumType targetType, boolean signed, boolean reinterpret, boolean nonTrapping) - 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
-
nullConstant
- Specified by:
nullConstantin interfaceCodeListener
-
cast
- Specified by:
castin interfaceCodeListener
-
test
- Specified by:
testin interfaceCodeListener
-
structNew
public void structNew(int typeIndex) - Specified by:
structNewin interfaceCodeListener
-
structNewDefault
public void structNewDefault(int typeIndex) - Specified by:
structNewDefaultin interfaceCodeListener
-
structGet
- Specified by:
structGetin interfaceCodeListener
-
structSet
public void structSet(int typeIndex, int fieldIndex) - Specified by:
structSetin interfaceCodeListener
-
arrayNewDefault
public void arrayNewDefault(int typeIndex) - Specified by:
arrayNewDefaultin interfaceCodeListener
-
arrayNewFixed
public void arrayNewFixed(int typeIndex, int size) - Specified by:
arrayNewFixedin interfaceCodeListener
-
arrayGet
- Specified by:
arrayGetin interfaceCodeListener
-
arraySet
public void arraySet(int typeIndex) - Specified by:
arraySetin interfaceCodeListener
-
arrayCopy
public void arrayCopy(int targetTypeIndex, int sourceTypeIndex) - Specified by:
arrayCopyin interfaceCodeListener
-
functionReference
public void functionReference(int functionIndex) - Specified by:
functionReferencein interfaceCodeListener
-
int31Reference
public void int31Reference()- Specified by:
int31Referencein interfaceCodeListener
-
int31Get
- Specified by:
int31Getin interfaceCodeListener
-