Elide GraalVM25.6.0-elide.4
All types
Versions and modules

PrimitiveValueProfile

Javaclassin com.oracle.truffle.api.profilessince 0.10

public final class PrimitiveValueProfile extends ValueProfile
Inheritance
  1. Object
  2. NodeCloneable
  3. Profile
  4. ValueProfile
  5. PrimitiveValueProfile

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.

Members shown

Methods15 + 6 inherited

T profile(T)Described in profile().

profile

since 0.8 or earlier
public <T> T profile(T v)

Described in profile().

Parameters

vT
No description.

Returns

T
No description.
byte profile(byte)No description.

profile

since 0.8 or earlier
public byte profile(byte value)

No description.

Parameters

valuebyte
No description.

Returns

byte
No description.
short profile(short)No description.

profile

since 0.8 or earlier
public short profile(short value)

No description.

Parameters

valueshort
No description.

Returns

short
No description.
int profile(int)No description.

profile

since 0.8 or earlier
public int profile(int value)

No description.

Parameters

valueint
No description.

Returns

int
No description.
long profile(long)No description.

profile

since 0.8 or earlier
public long profile(long value)

No description.

Parameters

valuelong
No description.

Returns

long
No description.
float profile(float)No description.

profile

since 0.8 or earlier
public float profile(float value)

No description.

Parameters

valuefloat
No description.

Returns

float
No description.
double profile(double)No description.

profile

since 0.8 or earlier
public double profile(double value)

No description.

Parameters

valuedouble
No description.

Returns

double
No description.
boolean profile(boolean)No description.

profile

since 0.8 or earlier
public boolean profile(boolean value)

No description.

Parameters

valueboolean
No description.

Returns

boolean
No description.
char profile(char)No description.

profile

since 0.8 or earlier
public char profile(char value)

No description.

Parameters

valuechar
No description.

Returns

char
No description.
void disable()

disable

since 22.1
public 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.1
public 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().

toString

since 22.1
public String toString()

Described in toString().

Returns

String
No description.
static PrimitiveValueProfile createEqualityProfile()

createEqualityProfile

staticsince 0.10
public 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.1
public 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.0
public static PrimitiveValueProfile getUncached()

Returns the uncached version of the profile. The uncached version of a profile does nothing.

Returns

PrimitiveValueProfile
No description.

Inherited members