harpoon.Backend.Generic
Class GCInfo.WrappedStackOffsetLoc

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

public static class GCInfo.WrappedStackOffsetLoc
extends Object

WrappedStackOffsetLoc is a wrapper object for StackOffsetLocs that implement special equals and hashCode methods. Two StackOffsetLoc objects are equal if the underlying StackOffsetLocs represent the same stack offset.


Field Summary
protected  RegFileInfo.StackOffsetLoc sol
           
 
Constructor Summary
GCInfo.WrappedStackOffsetLoc(RegFileInfo.StackOffsetLoc sol)
          Creates a WrappedStackOffsetLoc object
 
Method Summary
 boolean equals(Object obj)
          Compares two WrappedStackOffsetLoc objects for equality.
 int hashCode()
          Returns the hash code value for the object.
 int stackOffset()
          Returns the abstract stack offset of underlying StackOffsetLoc.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sol

protected RegFileInfo.StackOffsetLoc sol
Constructor Detail

GCInfo.WrappedStackOffsetLoc

public GCInfo.WrappedStackOffsetLoc(RegFileInfo.StackOffsetLoc sol)
Creates a WrappedStackOffsetLoc object

Method Detail

stackOffset

public int stackOffset()
Returns the abstract stack offset of underlying StackOffsetLoc. The absolute location in memory to which a stack offset refers is context-dependent. For example, the stack offset of an object in one method may have the same abstract value as the stack offset of another object in a different method, but they do not necessarily refer to the same absolute location in the stack. The stack offset returned is identical to what is returned by the stackOffset method of the underlying StackOffsetLoc object.


equals

public boolean equals(Object obj)
Compares two WrappedStackOffsetLoc objects for equality. Two WrappedStackOffsetLoc objects are equal if they refer to the same abstract stack offset.

Overrides:
equals in class Object

hashCode

public int hashCode()
Returns the hash code value for the object. Two WrappedStackOffsetLoc return the same hash code if the underlying StackOffsetLoc refer to the same abstract stack offset.

Overrides:
hashCode in class Object