Class IdentityValueProfile

java.lang.Object
com.oracle.truffle.api.utilities.ValueProfile
com.oracle.truffle.api.utilities.IdentityValueProfile

public final class IdentityValueProfile extends ValueProfile
Represents a ValueProfile that speculates on the object identity of a value.
  • Field Details

    • cachedValue

      protected Object cachedValue
  • Method Details

    • profile

      public <T> T profile(T value)
      Specified by:
      profile in class ValueProfile
    • isGeneric

      public boolean isGeneric()
    • isUninitialized

      public boolean isUninitialized()
    • getCachedValue

      public Object getCachedValue()
    • toString

      public String toString()
      Overrides:
      toString in class Object