org.jikesrvm.osr
Class VariableMap
java.lang.Object
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 )
*
list
public final LinkedList<VariableMapElement> list
VariableMap
public VariableMap()
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