org.jikesrvm.compilers.opt.liveness
Class LiveSetElement

java.lang.Object
  extended by org.jikesrvm.compilers.opt.liveness.LiveSetElement

final class LiveSetElement
extends Object

A simple class that holds an element in a LiveSet.


Field Summary
private  LiveSetElement next
          The next field
private  RegisterOperand regOp
          The register operand, i.e., the data
 
Constructor Summary
LiveSetElement(RegisterOperand register)
          Construct an LiveSetElement.
 
Method Summary
 LiveSetElement getNext()
          Returns the next element on this list
 Register getRegister()
          Returns the register associated with this element
 RegisterOperand getRegisterOperand()
          Returns the register operand associated with this element
 TypeReference getRegisterType()
          Returns the register type associated with this element
 void setNext(LiveSetElement newNext)
          Sets the next element field
 void setRegisterOperand(RegisterOperand newRegOp)
          Change the register operand.
 String toString()
          Returns a string version of this element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

regOp

private RegisterOperand regOp
The register operand, i.e., the data


next

private LiveSetElement next
The next field

Constructor Detail

LiveSetElement

LiveSetElement(RegisterOperand register)
Construct an LiveSetElement.

Parameters:
register - An RegisterOperand
Method Detail

getRegisterOperand

public RegisterOperand getRegisterOperand()
Returns the register operand associated with this element

Returns:
the register operand associated with this element

setRegisterOperand

public void setRegisterOperand(RegisterOperand newRegOp)
Change the register operand. New operand must represent the same register This is done to promote something of WordType to ReferenceType for the purposes of GC mapping.


getRegister

public Register getRegister()
Returns the register associated with this element

Returns:
the register associated with this element

getRegisterType

public TypeReference getRegisterType()
Returns the register type associated with this element

Returns:
the register type associated with this element

getNext

public LiveSetElement getNext()
Returns the next element on this list

Returns:
the next element on this list

setNext

public void setNext(LiveSetElement newNext)
Sets the next element field

Parameters:
newNext - the next element field

toString

public String toString()
Returns a string version of this element

Overrides:
toString in class Object
Returns:
a string version of this element