Class ControlFlowParser
java.lang.Object
org.teavm.backend.wasm.debug.parser.ControlFlowParser
- All Implemented Interfaces:
AddressListener
,CodeListener
,CodeSectionListener
public class ControlFlowParser
extends Object
implements CodeSectionListener, CodeListener, AddressListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
address
(int address) void
branch
(BranchOpcode opcode, int depth, int target) build()
void
call
(int functionIndex) code()
void
endBlock
(int token, boolean loop) void
boolean
functionStart
(int index, int size) void
indirectCall
(int typeIndex, int tableIndex) void
int
startBlock
(boolean loop, WasmType type) int
void
startElseSection
(int token) void
tableBranch
(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, memoryCopy, memoryFill, memoryGrow, storeFloat32, storeFloat64, storeInt32, storeInt64, unary, unary
Methods inherited from interface org.teavm.backend.wasm.parser.CodeSectionListener
local, localsStart, sectionEnd, sectionStart
-
Constructor Details
-
ControlFlowParser
public ControlFlowParser()
-
-
Method Details
-
build
-
address
public void address(int address) - Specified by:
address
in interfaceAddressListener
-
functionStart
public boolean functionStart(int index, int size) - Specified by:
functionStart
in interfaceCodeSectionListener
-
code
- Specified by:
code
in interfaceCodeSectionListener
-
startBlock
- Specified by:
startBlock
in interfaceCodeListener
-
startConditionalBlock
- Specified by:
startConditionalBlock
in interfaceCodeListener
-
startElseSection
public void startElseSection(int token) - Specified by:
startElseSection
in interfaceCodeListener
-
endBlock
public void endBlock(int token, boolean loop) - Specified by:
endBlock
in interfaceCodeListener
-
call
public void call(int functionIndex) - Specified by:
call
in interfaceCodeListener
-
indirectCall
public void indirectCall(int typeIndex, int tableIndex) - Specified by:
indirectCall
in interfaceCodeListener
-
opcode
- Specified by:
opcode
in interfaceCodeListener
-
branch
- Specified by:
branch
in interfaceCodeListener
-
tableBranch
public void tableBranch(int[] depths, int[] targets, int defaultDepth, int defaultTarget) - Specified by:
tableBranch
in interfaceCodeListener
-
functionEnd
public void functionEnd()- Specified by:
functionEnd
in interfaceCodeSectionListener
-