harpoon.Backend.Generic
Class GCInfo.WrappedMachineRegLoc

java.lang.Object
  extended by harpoon.Backend.Generic.GCInfo.WrappedMachineRegLoc
Enclosing class:
GCInfo

public static class GCInfo.WrappedMachineRegLoc
extends Object

WrappedMachineRegLoc is a wrapper object for MachineRegLocs that implement special equals and hashCode methods. Two WrappedMachineRegLoc objects are equal if the underlying MachineRegLocs represent the same register.


Field Summary
protected  RegFileInfo.MachineRegLoc mrl
           
 
Constructor Summary
GCInfo.WrappedMachineRegLoc(RegFileInfo.MachineRegLoc mrl)
          Creates a WrappedMachineRegLoc object
 
Method Summary
 boolean equals(Object obj)
          Compares two WrappedMachineRegLoc objects for equality.
 int hashCode()
          Returns the hash code value for the object.
 int regIndex()
          Returns the abstract index of underlying MachineRegLoc in the register file.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mrl

protected RegFileInfo.MachineRegLoc mrl
Constructor Detail

GCInfo.WrappedMachineRegLoc

public GCInfo.WrappedMachineRegLoc(RegFileInfo.MachineRegLoc mrl)
Creates a WrappedMachineRegLoc object

Method Detail

regIndex

public int regIndex()
Returns the abstract index of underlying MachineRegLoc in the register file. The index returned is identical to what is returned by the regIndex method of the underlying MachineRegLoc object.


equals

public boolean equals(Object obj)
Compares two WrappedMachineRegLoc objects for equality. Two WrappedMachineRegLoc objects are equal if they represent the same register.

Overrides:
equals in class Object

hashCode

public int hashCode()
Returns the hash code value for the object. Two WrappedMachineRegLoc return the same hash code if the underlying MachineRegLoc objects represent the same register.

Overrides:
hashCode in class Object