public class TypeCheckHints extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TypeCheckHints.Hint
A receiver type profiled in a type check instruction.
|
| Modifier and Type | Field and Description |
|---|---|
ResolvedJavaType |
exact
If non-null, then this is the only type that could pass the type check because the target of
the type check is a final class or has been speculated to be a final class and this value is
the only concrete subclass of the target type.
|
double |
hintHitProbability
The total probability that the type check will hit one of the types in
TypeCheckHints.hints. |
TypeCheckHints.Hint[] |
hints
The most likely types that the type check instruction will see.
|
JavaTypeProfile |
profile
The profile from which this information was derived.
|
| Constructor and Description |
|---|
TypeCheckHints(TypeReference targetType,
JavaTypeProfile profile,
Assumptions assumptions,
double minHintHitProbability,
int maxHints)
Derives hint information for use when generating the code for a type check instruction.
|
public final ResolvedJavaType exact
public final TypeCheckHints.Hint[] hints
public final JavaTypeProfile profile
public final double hintHitProbability
TypeCheckHints.hints.public TypeCheckHints(TypeReference targetType, JavaTypeProfile profile, Assumptions assumptions, double minHintHitProbability, int maxHints)
targetType - the target type of the type checkprofile - the profiling information available for the instruction (if any)assumptions - the object in which speculations are recorded. This is null if
speculations are not supported.minHintHitProbability - if the probability that the type check will hit one of the
profiled types (up to maxHints) is below this value, then TypeCheckHints.hints
will be nullmaxHints - the maximum length of TypeCheckHints.hints