Class StackInspector

java.lang.Object
de.inetsoftware.jwebassembly.module.StackInspector

class StackInspector extends Object
Inspect the current parsed instructions to find details over specific stack information.
  • 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 instructions
      count - 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