org.jikesrvm.compilers.opt.ir
Class RegSpillListElement

java.lang.Object
  extended by org.jikesrvm.compilers.opt.ir.RegSpillListElement

public class RegSpillListElement
extends Object

A class to hold each element in the GCIRMap


Field Summary
private  Register symbolicReg
          this should be a symbolic register
private  int value
          this could be either a spill or a real reg number
 
Constructor Summary
RegSpillListElement(Register symbolicReg)
          Constructor
 
Method Summary
 int getRealRegNumber()
          returns the real (physical) register associated with this object
 int getSpill()
          returns the spill value associated with this object
 Register getSymbolicReg()
          returns the symbolic register associated with this object
 boolean isSpill()
          Is this a spill?
 void setRealReg(Register reg)
          Sets the real (i.e., physical) register component associated with this object
 void setSpill(int value)
          Sets the spill component associated with this object
 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

symbolicReg

private final Register symbolicReg
this should be a symbolic register


value

private int value
this could be either a spill or a real reg number

Constructor Detail

RegSpillListElement

public RegSpillListElement(Register symbolicReg)
Constructor

Parameters:
symbolicReg - the symbolic register holding the reference
Method Detail

setSpill

public final void setSpill(int value)
Sets the spill component associated with this object

Parameters:
value - the spill value

setRealReg

public final void setRealReg(Register reg)
Sets the real (i.e., physical) register component associated with this object

Parameters:
reg - the real (physical) register

isSpill

public final boolean isSpill()
Is this a spill?

Returns:
whether this is a spill

getSymbolicReg

public final Register getSymbolicReg()
returns the symbolic register associated with this object

Returns:
the symbolic register associated with this object

getRealRegNumber

public final int getRealRegNumber()
returns the real (physical) register associated with this object

Returns:
the real (physical) register associated with this object

getSpill

public final int getSpill()
returns the spill value associated with this object

Returns:
the spill value associated with this object

toString

public String toString()
return a string version of this object

Overrides:
toString in class Object
Returns:
string version of this object