Package jminusminus
Class CLBranchStack
java.lang.Object
jminusminus.CLBranchStack
This class is used for control flow analysis to compute maximum depth of operand stack for a
method.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpop()
Pops and returns an element from the stack, or null.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.
-
Constructor Details
-
CLBranchStack
public CLBranchStack()Constructs a CLBranchStack object.
-
-
Method Details
-
push
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
Pops and returns an element from the stack, or null.- Returns:
- an element from the stack, or null.
-