PrimitiveValueProfile
public final class PrimitiveValueProfile extends ValueProfile- Inheritance
ObjectNodeCloneableProfileValueProfilePrimitiveValueProfile
Represents a ValueProfile that speculates on the primitive equality or object identity of values. Note that for float and double values we compare primitive equality via Float.floatToRawIntBits and Double.doubleToRawLongBits, so that for example -0.0 is not considered the same as 0.0, even though primitive equality would normally say that it was.
Methods15 + 6 inherited
T profile(T)Described in profile().
byte profile(byte)No description.
profile
since 0.8 or earlierpublic byte profile(byte value)No description.
Parameters
valuebyte- No description.
Returns
byte- No description.
short profile(short)No description.
profile
since 0.8 or earlierpublic short profile(short value)No description.
Parameters
valueshort- No description.
Returns
short- No description.
int profile(int)No description.
profile
since 0.8 or earlierpublic int profile(int value)No description.
Parameters
valueint- No description.
Returns
int- No description.
long profile(long)No description.
profile
since 0.8 or earlierpublic long profile(long value)No description.
Parameters
valuelong- No description.
Returns
long- No description.
float profile(float)No description.
profile
since 0.8 or earlierpublic float profile(float value)No description.
Parameters
valuefloat- No description.
Returns
float- No description.
double profile(double)No description.
profile
since 0.8 or earlierpublic double profile(double value)No description.
Parameters
valuedouble- No description.
Returns
double- No description.
boolean profile(boolean)No description.
profile
since 0.8 or earlierpublic boolean profile(boolean value)No description.
Parameters
valueboolean- No description.
Returns
boolean- No description.
char profile(char)No description.
profile
since 0.8 or earlierpublic char profile(char value)No description.
Parameters
valuechar- No description.
Returns
char- No description.
void disable()
disable
since 22.1public void disable()Disables this profile by setting it to its generic state. After disabling it is guaranteed to never deoptimize on any invocation of a profile method.
This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile.
Overrides disable().
void reset()
reset
since 22.1public void reset()Resets this profile to its uninitialized state. Has no effect if this profile is already in its uninitialized state or a disabled version of this profile is used.
This method must not be called on compiled code paths. Note that disabling the profile will not invalidate existing compiled code that uses this profile.
Overrides reset().
String toString()Described in toString().
static PrimitiveValueProfile createEqualityProfile()
createEqualityProfile
staticsince 0.10public static PrimitiveValueProfile createEqualityProfile()Returns a PrimitiveValueProfile that speculates on the primitive equality or object identity of a value.
Returns
PrimitiveValueProfile- No description.
static PrimitiveValueProfile create()
create
staticsince 22.1public static PrimitiveValueProfile create()Returns a PrimitiveValueProfile that speculates on the primitive equality or object identity of a value.
Returns
PrimitiveValueProfile- No description.
static PrimitiveValueProfile getUncached()
getUncached
staticsince 19.0public static PrimitiveValueProfile getUncached()Returns the uncached version of the profile. The uncached version of a profile does nothing.
Returns
PrimitiveValueProfile- No description.