/** * Returns a {@link ValueProfile} that speculates on the object identity of a value. */ public static ValueProfile createIdentityProfile() { return new IdentityValueProfile(); }
public boolean isGeneric() { return getCachedValue() == GENERIC; }
@Override public String toString() { return String.format("%s(%s)@%x", getClass().getSimpleName(), isUninitialized() ? "uninitialized" : (isGeneric() ? "generic" : String.format("@%x", Objects.hash(cachedValue))), hashCode()); }
public boolean isUninitialized() { return getCachedValue() == UNINITIALIZED; }