org.jikesrvm.compilers.opt.ssa
Class LeaveSSA.VariableStacks

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<Register,Stack<Operand>>
          extended by org.jikesrvm.compilers.opt.ssa.LeaveSSA.VariableStacks
All Implemented Interfaces:
Serializable, Cloneable, Map<Register,Stack<Operand>>
Enclosing class:
LeaveSSA

static final class LeaveSSA.VariableStacks
extends HashMap<Register,Stack<Operand>>

This class provides an abstraction over stacks of names for registers.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
(package private) static long serialVersionUID
          Support for map serialization
 
Constructor Summary
LeaveSSA.VariableStacks()
           
 
Method Summary
(package private)  Operand peek(Register s)
          Get the name at the top of the stack for a particular register
(package private)  Operand pop(Register s)
          Pop the name at the top of the stack for a particular register
(package private)  void push(Register s, Operand name)
          Push a name at the top of the stack for a particular register
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

serialVersionUID

static final long serialVersionUID
Support for map serialization

See Also:
Constant Field Values
Constructor Detail

LeaveSSA.VariableStacks

LeaveSSA.VariableStacks()
Method Detail

peek

Operand peek(Register s)
Get the name at the top of the stack for a particular register

Parameters:
s - the register in question
Returns:
the name at the top of the stack for the register

pop

Operand pop(Register s)
Pop the name at the top of the stack for a particular register

Parameters:
s - the register in question
Returns:
the name at the top of the stack for the register

push

void push(Register s,
          Operand name)
Push a name at the top of the stack for a particular register

Parameters:
s - the register in question
name - the name to push on the stack