org.jikesrvm.compilers.opt.ssa
Class SSADictionary.HeapKey<T>

java.lang.Object
  extended by org.jikesrvm.compilers.opt.ssa.SSADictionary.HeapKey<T>
Enclosing class:
SSADictionary

private static final class SSADictionary.HeapKey<T>
extends Object

This class represents the name of a heap variable in the heap array SSA form.


Field Summary
private  int number
          The number and type comprise the name of a heap variable in array SSA form
private  T type
          The number and type comprise the name of a heap variable in array SSA form
 
Constructor Summary
SSADictionary.HeapKey(int number, T type)
          Create a new name for a heap variable.
 
Method Summary
 boolean equals(Object key)
          Test against another key for equality.
 int hashCode()
          Return a hash code for this name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

number

private final int number
The number and type comprise the name of a heap variable in array SSA form


type

private final T type
The number and type comprise the name of a heap variable in array SSA form

Constructor Detail

SSADictionary.HeapKey

SSADictionary.HeapKey(int number,
                      T type)
Create a new name for a heap variable.

Parameters:
number - the number, a unique integer from SSA renaming
type - the type (a RVMField or TypeReference
Method Detail

equals

public boolean equals(Object key)
Test against another key for equality. This function is used to retrive items from hashtables.

Overrides:
equals in class Object
Parameters:
key - the object to compare with
Returns:
true or false as appropriate

hashCode

public int hashCode()
Return a hash code for this name. TODO: come up with a better hash function.

Overrides:
hashCode in class Object
Returns:
the hash code