public final class VariableMap extends Object
VariableMap ---> LinkedList of VariableMapElement VariableMapElement ---> (OsrPoint, LinkedList of MethodVariables) MethodVariables ---> (Method, PC, List of LocalRegTuple) LocalRegTuple ---> ( LocalNum, regOp, Type ) or ( StackNum, regOp, Type )*
Modifier and Type | Field and Description |
---|---|
LinkedList<VariableMapElement> |
list |
Constructor and Description |
---|
VariableMap() |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfElements() |
void |
insert(Instruction inst,
LinkedList<MethodVariables> mvarList)
Inserts a new entry into the GCIRMap
|
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() |
public final LinkedList<VariableMapElement> list
public VariableMap()
public int getNumberOfElements()
public void insert(Instruction inst, LinkedList<MethodVariables> mvarList)
inst
- the IR instruction we care aboutmvarList
- the set of symbolic registers as a listpublic void insertFirst(Instruction inst, LinkedList<MethodVariables> mvarList)
inst
- the IR instruction we care aboutmvarList
- the set of symbolic registers as a listpublic ListIterator<VariableMapElement> iterator()