public final class MethodPointerStamp extends MetaspacePointerStamp
Modifier and Type | Field and Description |
---|---|
private static MethodPointerStamp |
METHOD |
private static MethodPointerStamp |
METHOD_ALWAYS_NULL |
private static MethodPointerStamp |
METHOD_NON_NULL |
Modifier | Constructor and Description |
---|---|
private |
MethodPointerStamp(boolean nonNull,
boolean alwaysNull) |
Modifier and Type | Method and Description |
---|---|
Stamp |
constant(Constant c,
MetaAccessProvider meta)
If it is possible to represent single value stamps of this kind, this method returns the
stamp representing the single value c.
|
protected AbstractPointerStamp |
copyWith(boolean newNonNull,
boolean newAlwaysNull) |
boolean |
isCompatible(Stamp otherStamp)
Test whether two stamps have the same base type.
|
static MethodPointerStamp |
method() |
static MethodPointerStamp |
methodNonNull() |
Constant |
readConstant(MemoryAccessProvider provider,
Constant base,
long displacement)
Read a value of this stamp from memory.
|
String |
toString() |
appendString, empty, getLIRKind, hasValues, javaType
alwaysNull, asConstant, equals, getStackKind, hashCode, improveWith, join, meet, nonNull, unrestricted
alwaysDistinct, isEmpty, neverDistinct, tryImproveWith
private static final MethodPointerStamp METHOD
private static final MethodPointerStamp METHOD_NON_NULL
private static final MethodPointerStamp METHOD_ALWAYS_NULL
private MethodPointerStamp(boolean nonNull, boolean alwaysNull)
public static MethodPointerStamp method()
public static MethodPointerStamp methodNonNull()
protected AbstractPointerStamp copyWith(boolean newNonNull, boolean newAlwaysNull)
copyWith
in class AbstractPointerStamp
public boolean isCompatible(Stamp otherStamp)
Stamp
isCompatible
in class Stamp
public Stamp constant(Constant c, MetaAccessProvider meta)
Stamp
If it is not possible to represent single value stamps, this method returns a stamp that includes c, and is otherwise as narrow as possible.
public Constant readConstant(MemoryAccessProvider provider, Constant base, long displacement)
Stamp
readConstant
in class Stamp