org.jikesrvm.osr
Class VariableMap

java.lang.Object
  extended by org.jikesrvm.osr.VariableMap

public final class VariableMap
extends Object

VariableMap, non-encoded yet

 VariableMap          ---> LinkedList of VariableMapElement
 VariableMapElement   ---> (OsrPoint, LinkedList of MethodVariables)
 MethodVariables      ---> (Method, PC, List of LocalRegTuple)
 LocalRegTuple   ---> ( LocalNum, regOp, Type ) or ( StackNum, regOp, Type )
 
*


Field Summary
 LinkedList<VariableMapElement> list
           
 
Constructor Summary
VariableMap()
           
 
Method Summary
 int getNumberOfElements()
           
 void insert(Instruction inst, LinkedList<MethodVariables> mvarList)
           
 void insertFirst(Instruction inst, LinkedList<MethodVariables> mvarList)
          Inserts a new entry at the begin of the list.
 ListIterator<VariableMapElement> iterator()
          Creates and returns an enumerator for this object
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

list

public final LinkedList<VariableMapElement> list
Constructor Detail

VariableMap

public VariableMap()
Method Detail

getNumberOfElements

public int getNumberOfElements()

insert

public void insert(Instruction inst,
                   LinkedList<MethodVariables> mvarList)

insertFirst

public void insertFirst(Instruction inst,
                        LinkedList<MethodVariables> mvarList)
Inserts a new entry at the begin of the list.


iterator

public ListIterator<VariableMapElement> iterator()
Creates and returns an enumerator for this object

Returns:
an iterator for this object

toString

public String toString()
Overrides:
toString in class Object
Returns:
string version of this object