Package jminusminus

Class CLBranchStack

java.lang.Object
jminusminus.CLBranchStack

class CLBranchStack extends Object
This class is used for control flow analysis to compute maximum depth of operand stack for a method.
  • Constructor Details

    • CLBranchStack

      public CLBranchStack()
      Constructs a CLBranchStack object.
  • Method Details

    • push

      public void push(CLInstruction target, int stackDepth)
      Pushes the specified information into the stack as a CLBranchTarget instance if the target has not been visited yet.
      Parameters:
      target - the target instruction.
      stackDepth - depth of stack before the target instruction is executed.
    • pop

      public CLBranchTarget pop()
      Pops and returns an element from the stack, or null.
      Returns:
      an element from the stack, or null.