/** * Call to create a new instance of a branch profile. * * @since 0.10 */ public static BranchProfile create() { if (Profile.isProfilingEnabled()) { return Enabled.create0(); } else { return Disabled.INSTANCE; } }
/** * Returns a value profile that profiles the exact value of an <code>long</code>. * * @see LongValueProfile * @since 0.10 */ public static LongValueProfile createIdentityProfile() { if (Profile.isProfilingEnabled()) { return Enabled.create(); } else { return Disabled.INSTANCE; } }
/** * Returns a value profile that profiles the exact value of a <code>double</code> using * {@link Double#doubleToRawLongBits(double)}. * * @see IntValueProfile * @since 0.10 */ public static DoubleValueProfile createRawIdentityProfile() { if (Profile.isProfilingEnabled()) { return Enabled.create(); } else { return Disabled.INSTANCE; } }
@Override public String toString() { return toString(PrimitiveValueProfile.class, isUninitialized(), isGeneric(), formatSpecialization()); }
/** * Returns a value profile that profiles the exact value of a <code>byte</code>. * * @see ByteValueProfile * @since 0.10 */ public static ByteValueProfile createIdentityProfile() { if (Profile.isProfilingEnabled()) { return Enabled.create(); } else { return Disabled.INSTANCE; } }
/** * Returns a {@link PrimitiveValueProfile} that speculates on the primitive equality or object * identity of a value. * * @since 0.10 */ public static PrimitiveValueProfile createEqualityProfile() { if (Profile.isProfilingEnabled()) { return Enabled.create(); } else { return Disabled.INSTANCE; } }
/** * Returns a value profile that profiles the exact value of an <code>int</code>. * * @see IntValueProfile * @since 0.10 */ public static IntValueProfile createIdentityProfile() { if (Profile.isProfilingEnabled()) { return Enabled.create(); } else { return Disabled.INSTANCE; } }
/** * Returns a {@link PrimitiveValueProfile} that speculates on the primitive equality or * object identity of a value. */ static PrimitiveValueProfile create() { return new Enabled(); } }
@Override public String toString() { return toStringDisabled(LongValueProfile.class); }
static DoubleValueProfile create() { return new Enabled(); } }
@Override public String toString() { return toStringDisabled(PrimitiveValueProfile.class); }
@Override public String toString() { return toStringDisabled(ValueProfile.class); }
static ConditionProfile create() { return new Counting(); } }
static FloatValueProfile create() { return new Enabled(); } }
/** * Call to create a new instance of a branch profile. * * @since 0.10 */ public static BranchProfile create() { if (Profile.isProfilingEnabled()) { return Enabled.create0(); } else { return Disabled.INSTANCE; } }
/** * Returns a value profile that profiles the exact value of an <code>long</code>. * * @see LongValueProfile * @since 0.10 */ public static LongValueProfile createIdentityProfile() { if (Profile.isProfilingEnabled()) { return Enabled.create(); } else { return Disabled.INSTANCE; } }
/** * Returns a value profile that profiles the exact value of a <code>double</code> using * {@link Double#doubleToRawLongBits(double)}. * * @see IntValueProfile * @since 0.10 */ public static DoubleValueProfile createRawIdentityProfile() { if (Profile.isProfilingEnabled()) { return Enabled.create(); } else { return Disabled.INSTANCE; } }
/** * Returns a value profile that profiles the exact value of a <code>byte</code>. * * @see ByteValueProfile * @since 0.10 */ public static ByteValueProfile createIdentityProfile() { if (Profile.isProfilingEnabled()) { return Enabled.create(); } else { return Disabled.INSTANCE; } }
/** * Returns a {@link PrimitiveValueProfile} that speculates on the primitive equality or object * identity of a value. * * @since 0.10 */ public static PrimitiveValueProfile createEqualityProfile() { if (Profile.isProfilingEnabled()) { return Enabled.create(); } else { return Disabled.INSTANCE; } }
/** * Returns a value profile that profiles the exact value of an <code>int</code>. * * @see IntValueProfile * @since 0.10 */ public static IntValueProfile createIdentityProfile() { if (Profile.isProfilingEnabled()) { return Enabled.create(); } else { return Disabled.INSTANCE; } }