org.jikesrvm.compilers.opt.bc2ir
Class OperandStack

java.lang.Object
  extended by org.jikesrvm.compilers.opt.bc2ir.OperandStack

final class OperandStack
extends Object

Simulated Operand Stack


Field Summary
private  Operand[] stack
           
private  int top
           
 
Constructor Summary
OperandStack(int size)
           
 
Method Summary
(package private)  void clear()
           
(package private)  OperandStack copy()
           
(package private)  int getCapacity()
           
(package private)  Operand getFromTop(int n)
           
(package private)  int getSize()
           
(package private)  boolean isEmpty()
           
(package private)  Operand peek(int depth)
           
(package private)  Operand peekAt(int pos)
           
(package private)  Operand pop()
           
(package private)  void pop2()
           
(package private)  void push(Operand val)
           
(package private)  void replaceFromTop(int n, Operand op)
           
(package private)  void swap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stack

private final Operand[] stack

top

private int top
Constructor Detail

OperandStack

OperandStack(int size)
Method Detail

copy

OperandStack copy()

clear

void clear()

push

void push(Operand val)

pop

Operand pop()

peek

Operand peek(int depth)

peekAt

Operand peekAt(int pos)

pop2

void pop2()

swap

void swap()

isEmpty

boolean isEmpty()

getSize

int getSize()

getCapacity

int getCapacity()

getFromTop

Operand getFromTop(int n)

replaceFromTop

void replaceFromTop(int n,
                    Operand op)