public class InstanceOfSnippets extends Object implements Snippets
Modifier and Type | Class and Description |
---|---|
static class |
InstanceOfSnippets.Templates |
Constructor and Description |
---|
InstanceOfSnippets() |
Modifier and Type | Method and Description |
---|---|
static Object |
instanceofDynamic(KlassPointer hub,
Object object,
Object trueValue,
Object falseValue,
boolean allowNull,
boolean exact,
org.graalvm.compiler.hotspot.replacements.TypeCheckSnippetUtils.Counters counters)
Type test used when the type being tested against is not known at compile time.
|
static Object |
instanceofExact(Object object,
KlassPointer exactHub,
Object trueValue,
Object falseValue,
org.graalvm.compiler.hotspot.replacements.TypeCheckSnippetUtils.Counters counters)
A test against a final type.
|
static Object |
instanceofPrimary(KlassPointer hub,
Object object,
int superCheckOffset,
Object trueValue,
Object falseValue,
org.graalvm.compiler.hotspot.replacements.TypeCheckSnippetUtils.Counters counters)
A test against a primary type.
|
static Object |
instanceofSecondary(KlassPointer hub,
Object object,
KlassPointer[] hints,
boolean[] hintIsPositive,
Object trueValue,
Object falseValue,
org.graalvm.compiler.hotspot.replacements.TypeCheckSnippetUtils.Counters counters)
A test against a restricted secondary type type.
|
static Object |
instanceofWithProfile(Object object,
KlassPointer[] hints,
boolean[] hintIsPositive,
Object trueValue,
Object falseValue,
boolean nullSeen,
org.graalvm.compiler.hotspot.replacements.TypeCheckSnippetUtils.Counters counters)
A test against a set of hints derived from a profile with 100% precise coverage of seen
types.
|
static Object |
isAssignableFrom(Class<?> thisClassNonNull,
Class<?> otherClassNonNull,
Object trueValue,
Object falseValue,
org.graalvm.compiler.hotspot.replacements.TypeCheckSnippetUtils.Counters counters) |
public static Object instanceofWithProfile(Object object, KlassPointer[] hints, boolean[] hintIsPositive, Object trueValue, Object falseValue, boolean nullSeen, org.graalvm.compiler.hotspot.replacements.TypeCheckSnippetUtils.Counters counters)
public static Object instanceofExact(Object object, KlassPointer exactHub, Object trueValue, Object falseValue, org.graalvm.compiler.hotspot.replacements.TypeCheckSnippetUtils.Counters counters)
public static Object instanceofPrimary(KlassPointer hub, Object object, int superCheckOffset, Object trueValue, Object falseValue, org.graalvm.compiler.hotspot.replacements.TypeCheckSnippetUtils.Counters counters)
public static Object instanceofSecondary(KlassPointer hub, Object object, KlassPointer[] hints, boolean[] hintIsPositive, Object trueValue, Object falseValue, org.graalvm.compiler.hotspot.replacements.TypeCheckSnippetUtils.Counters counters)
public static Object instanceofDynamic(KlassPointer hub, Object object, Object trueValue, Object falseValue, boolean allowNull, boolean exact, org.graalvm.compiler.hotspot.replacements.TypeCheckSnippetUtils.Counters counters)