Class StackFrame

java.lang.Object
com.dylibso.chicory.runtime.StackFrame

public class StackFrame extends Object
Represents a frame, doesn't hold the stack, just local variables and the `pc` which is the program counter in this function. Instead of keeping an absolute pointer to positions in code the program counter is relative to the function and we store it here so we know where to resume when we return from an inner function call. This also means it's not possible to set the program counter to an instruction in another function on accident, as this is not allowed in the spec. You can only jump to instructions within the function you are in and only specific places.
  • Method Details

    • localIndexOf

      public int localIndexOf(int idx)
    • toString

      public String toString()
      Overrides:
      toString in class Object