Class Stack

  • All Implemented Interfaces:

    public final class Stack
    extends java.lang.Object
    Internal Class - DO NOT USE! (Public so that instrumented code can access it) ANY CHANGE IN THIS CLASS NEEDS TO BE SYNCHRONIZED WITH InstrumentMethod
    See Also:
    Serialized Form
    • Method Detail

      • getStack

        public static Stack getStack()
      • nextMethodEntry

        public final int nextMethodEntry()
        called at the beginning of a method
        the entry point of this method
      • isFirstInStackOrPushed

        public final boolean isFirstInStackOrPushed()
        called when nextMethodEntry returns 0
      • pushMethod

        public final void pushMethod​(int entry,
                                     int numSlots)
        Called before a method is called.
        entry - the entry point in the current method for resume
        numSlots - the number of required stack slots for storing the state of the current method
      • popMethod

        public final void popMethod​(int slots)
      • push

        public static void push​(int value,
                                Stack s,
                                int idx)
      • push

        public static void push​(float value,
                                Stack s,
                                int idx)
      • push

        public static void push​(long value,
                                Stack s,
                                int idx)
      • push

        public static void push​(double value,
                                Stack s,
                                int idx)
      • push

        public static void push​(java.lang.Object value,
                                Stack s,
                                int idx)
      • getInt

        public final int getInt​(int idx)
      • getFloat

        public final float getFloat​(int idx)
      • getLong

        public final long getLong​(int idx)
      • getDouble

        public final double getDouble​(int idx)
      • getObject

        public final java.lang.Object getObject​(int idx)