Class StackInspector
- java.lang.Object
-
- de.inetsoftware.jwebassembly.module.StackInspector
-
class StackInspector extends java.lang.ObjectInspect the current parsed instructions to find details over specific stack information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classStackInspector.StackValueHold the state of the stack.
-
Constructor Summary
Constructors Constructor Description StackInspector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static StackInspector.StackValuefindInstructionThatPushValue(java.util.List<WasmInstruction> instructions, int count, int javaCodePos)Inspect the instructions to find details over a specific stack position.
-
-
-
Method Detail
-
findInstructionThatPushValue
@Nonnull static StackInspector.StackValue findInstructionThatPushValue(java.util.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
-
-