Class ControlFlowParser
- java.lang.Object
-
- org.teavm.backend.wasm.debug.parser.ControlFlowParser
-
- All Implemented Interfaces:
AddressListener,CodeListener,CodeSectionListener
public class ControlFlowParser extends java.lang.Object implements CodeSectionListener, CodeListener, AddressListener
-
-
Constructor Summary
Constructors Constructor Description ControlFlowParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddress(int address)voidbranch(BranchOpcode opcode, int depth, int target)ControlFlowInfobuild()voidcall(int functionIndex)CodeListenercode()voidendBlock(int token, boolean loop)voidfunctionEnd()booleanfunctionStart(int index, int size)voidindirectCall(int typeIndex, int tableIndex)voidopcode(Opcode opcode)intstartBlock(boolean loop, WasmType type)intstartConditionalBlock(WasmType type)voidstartElseSection(int token)voidtableBranch(int[] depths, int[] targets, int defaultDepth, int defaultTarget)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.teavm.backend.wasm.parser.CodeListener
binary, binary, convert, error, float32Constant, float64Constant, int32Constant, int64Constant, loadFloat32, loadFloat64, loadInt32, loadInt64, local, memoryGrow, storeFloat32, storeFloat64, storeInt32, storeInt64, unary, unary
-
Methods inherited from interface org.teavm.backend.wasm.parser.CodeSectionListener
local, localsStart, sectionEnd, sectionStart
-
-
-
-
Method Detail
-
build
public ControlFlowInfo build()
-
address
public void address(int address)
- Specified by:
addressin interfaceAddressListener
-
functionStart
public boolean functionStart(int index, int size)- Specified by:
functionStartin interfaceCodeSectionListener
-
code
public CodeListener code()
- Specified by:
codein interfaceCodeSectionListener
-
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
-
call
public void call(int functionIndex)
- Specified by:
callin interfaceCodeListener
-
indirectCall
public void indirectCall(int typeIndex, int tableIndex)- Specified by:
indirectCallin interfaceCodeListener
-
opcode
public void opcode(Opcode opcode)
- Specified by:
opcodein 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
-
functionEnd
public void functionEnd()
- Specified by:
functionEndin interfaceCodeSectionListener
-
-