public final class MethodPointerStamp extends MetaspacePointerStamp
SpeculationReasonGroup.SpeculationContextObject.Visitor| 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(Constant constant)
Check that the constant
other is compatible with this stamp. |
boolean |
isCompatible(Stamp otherStamp)
Check that the constant
other is compatible with this stamp. |
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, joinaccept, alwaysNull, asAlwaysNull, asConstant, asMaybeNull, asNonNull, defaultPointerJoin, equals, getStackKind, hashCode, improveWith, isCompressed, meet, nonNull, nullConstant, pointerAlwaysNull, pointerMaybeNull, pointerNonNull, unrestrictedalwaysDistinct, isEmpty, isPointerStamp, isUnrestricted, makeSymbolic, neverDistinct, readConstant, tryImproveWithpublic static MethodPointerStamp method()
public static MethodPointerStamp methodNonNull()
protected AbstractPointerStamp copyWith(boolean newNonNull, boolean newAlwaysNull)
copyWith in class AbstractPointerStamppublic boolean isCompatible(Stamp otherStamp)
Stampother is compatible with this stamp.isCompatible in class MetaspacePointerStamppublic boolean isCompatible(Constant constant)
Stampother is compatible with this stamp.isCompatible in class MetaspacePointerStamppublic Stamp constant(Constant c, MetaAccessProvider meta)
StampIf 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)
StampreadConstant in class Stamp