public class NewSiteReference extends ProgramCounter
NewSiteReference
depends on two things: the program counter, and the containing IR
. Thus, it suffices
to defines equals() and hashCode() from ProgramCounter, since this class does not maintain a pointer to the containing IR (or
CGNode) anyway. If using a hashtable of NewSiteReference from different IRs, you probably want to use a wrapper which also holds
a pointer to the governing CGNode.NO_SOURCE_LINE_NUMBER
Constructor and Description |
---|
NewSiteReference(int programCounter,
TypeReference declaredType) |
Modifier and Type | Method and Description |
---|---|
TypeReference |
getDeclaredType() |
static NewSiteReference |
make(int programCounter,
TypeReference declaredType) |
String |
toString() |
equals, getProgramCounter, hashCode
public NewSiteReference(int programCounter, TypeReference declaredType)
programCounter
- bytecode index of the allocation sitedeclaredType
- declared type that is allocatedpublic TypeReference getDeclaredType()
public static NewSiteReference make(int programCounter, TypeReference declaredType)
public String toString()
toString
in class ProgramCounter