Package com.oracle.truffle.api.utilities
Class IdentityValueProfile
- java.lang.Object
-
- com.oracle.truffle.api.utilities.ValueProfile
-
- com.oracle.truffle.api.utilities.IdentityValueProfile
-
public final class IdentityValueProfile extends ValueProfile
Represents aValueProfile
that speculates on the object identity of a value.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object
cachedValue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getCachedValue()
boolean
isGeneric()
boolean
isUninitialized()
<T> T
profile(T value)
java.lang.String
toString()
-
Methods inherited from class com.oracle.truffle.api.utilities.ValueProfile
createClassProfile, createIdentityProfile, createPrimitiveProfile
-
-
-
-
Method Detail
-
profile
public <T> T profile(T value)
- Specified by:
profile
in classValueProfile
-
isGeneric
public boolean isGeneric()
-
isUninitialized
public boolean isUninitialized()
-
getCachedValue
public java.lang.Object getCachedValue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-