|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.ir.GCIRMapElement
public final class GCIRMapElement
This class holds each element in the GCIRMap
Field Summary | |
---|---|
private Instruction |
inst
The instruction, i.e., GC point |
private List<RegSpillListElement> |
regSpillList
The list of references (either symbolic regs or physical regs & spills) |
Constructor Summary | |
---|---|
GCIRMapElement(Instruction inst,
List<RegSpillListElement> regSpillList)
Constructor |
Method Summary | |
---|---|
void |
addRegSpillElement(RegSpillListElement e)
Add a new spill list element for this map element |
int |
countNumElements()
Counts and returns the number of references for this map |
int |
countNumRegElements()
Counts and returns the number of register elements (not spills) for this entry |
int |
countNumSpillElements()
Counts and returns the number of spill for this entry |
GCIRMapElement |
createTwin(Instruction inst)
Create a twin entry: required when the same MIR GC point is split into two instructions, both of which are PEIs after register allocation/GCIRMap creation. |
void |
deleteRegSpillElement(RegSpillListElement e)
Delete a spill list element from this map element |
Instruction |
getInstruction()
return the instruction with this entry |
List<RegSpillListElement> |
regSpillList()
returns an enumerator to access the registers/spills for this entry |
String |
toString()
Return a string version of this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final Instruction inst
private final List<RegSpillListElement> regSpillList
Constructor Detail |
---|
public GCIRMapElement(Instruction inst, List<RegSpillListElement> regSpillList)
inst
- the instruction of interestregSpillList
- the list of references either symbolic (before regalloc)
or physical/spill location (after regalloc)Method Detail |
---|
public GCIRMapElement createTwin(Instruction inst)
public Instruction getInstruction()
public List<RegSpillListElement> regSpillList()
public void addRegSpillElement(RegSpillListElement e)
public void deleteRegSpillElement(RegSpillListElement e)
public int countNumElements()
public int countNumRegElements()
public int countNumSpillElements()
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |