Class ControlFlowParser
java.lang.Object
org.teavm.backend.wasm.debug.parser.ControlFlowParser
- All Implemented Interfaces:
AddressListener, CodeListener, CodeSectionListener, SectionListener
public class ControlFlowParser
extends Object
implements CodeSectionListener, CodeListener, AddressListener
-
Field Summary
Fields inherited from interface AddressListener
EMPTYFields inherited from interface CodeListener
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddress(int address) voidbranch(BranchOpcode opcode, int depth, int target) build()voidcall(int functionIndex) code()voidendBlock(int token, boolean loop) voidbooleanfunctionStart(int index, int size) voidindirectCall(int typeIndex, int tableIndex) voidintstartBlock(boolean loop, WasmHollowBlockType type) intvoidstartElseSection(int token) voidtableBranch(int[] depths, int[] targets, int defaultDepth, int defaultTarget) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CodeListener
arrayCopy, arrayGet, arrayNewDefault, arrayNewFixed, arraySet, binary, binary, callReference, cast, castBranch, convert, error, float32Constant, float64Constant, functionReference, getGlobal, int31Get, int31Reference, int32Constant, int64Constant, loadFloat32, loadFloat64, loadInt32, loadInt64, local, memoryCopy, memoryFill, memoryGrow, nullConstant, setGlobal, startCatch, startTry, storeFloat32, storeFloat64, storeInt32, storeInt64, structGet, structNew, structNewDefault, structSet, test, throwInstruction, unary, unaryMethods inherited from interface CodeSectionListener
local, localsStartMethods inherited from interface SectionListener
sectionEnd, sectionStart
-
Constructor Details
-
ControlFlowParser
public ControlFlowParser()
-
-
Method Details
-
build
-
address
public void address(int address) - Specified by:
addressin interfaceAddressListener
-
functionStart
public boolean functionStart(int index, int size) - Specified by:
functionStartin interfaceCodeSectionListener
-
code
- Specified by:
codein interfaceCodeSectionListener
-
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
-
call
public void call(int functionIndex) - Specified by:
callin interfaceCodeListener
-
indirectCall
public void indirectCall(int typeIndex, int tableIndex) - Specified by:
indirectCallin interfaceCodeListener
-
opcode
- Specified by:
opcodein interfaceCodeListener
-
branch
- Specified by:
branchin interfaceCodeListener
-
tableBranch
public void tableBranch(int[] depths, int[] targets, int defaultDepth, int defaultTarget) - Specified by:
tableBranchin interfaceCodeListener
-
functionEnd
public void functionEnd()- Specified by:
functionEndin interfaceCodeSectionListener
-