Class StackInspector
java.lang.Object
de.inetsoftware.jwebassembly.module.StackInspector
Inspect the current parsed instructions to find details over specific stack information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
Hold the state of the stack. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static StackInspector.StackValue
findInstructionThatPushValue
(List<WasmInstruction> instructions, int count, int javaCodePos) Inspect the instructions to find details over a specific stack position.
-
Constructor Details
-
StackInspector
StackInspector()
-
-
Method Details
-
findInstructionThatPushValue
@Nonnull static StackInspector.StackValue findInstructionThatPushValue(List<WasmInstruction> instructions, int count, int javaCodePos) Inspect the instructions to find details over a specific stack position.- Parameters:
instructions
- the parsed instructionscount
- the count of values on the stack back. 1 means the last value. 2 means the penultimate value.javaCodePos
- the current code position, important to follow jumps in the code- Returns:
- details of the stack position
-