public class InstanceOfNode extends UnaryOpLogicNode implements Lowerable, Virtualizable
InstanceOfNode
represents an instanceof test.Node.ConstantNodeParameter, Node.InjectedNodeParameter, Node.Input, Node.NodeIntrinsic, Node.OptionalInput, Node.Successor, Node.ValueNumberable
Canonicalizable.Binary<T extends Node>, Canonicalizable.BinaryCommutative<T extends Node>, Canonicalizable.Unary<T extends Node>
Modifier and Type | Field and Description |
---|---|
protected jdk.internal.jvmci.meta.JavaTypeProfile |
profile |
protected jdk.internal.jvmci.meta.ResolvedJavaType |
type |
static NodeClass<InstanceOfNode> |
TYPE |
value
NODE_LIST, NOT_ITERABLE, USE_UNSAFE_TO_CLONE, WithAllEdges, WithNoEdges, WithOnlyInputEdges, WithOnlySucessorEdges
Modifier | Constructor and Description |
---|---|
protected |
InstanceOfNode(NodeClass<? extends InstanceOfNode> c,
jdk.internal.jvmci.meta.ResolvedJavaType type,
ValueNode object,
jdk.internal.jvmci.meta.JavaTypeProfile profile) |
private |
InstanceOfNode(jdk.internal.jvmci.meta.ResolvedJavaType type,
ValueNode object,
jdk.internal.jvmci.meta.JavaTypeProfile profile) |
Modifier and Type | Method and Description |
---|---|
ValueNode |
canonical(CanonicalizerTool tool,
ValueNode forValue) |
private ValueNode |
checkInstanceOf(ValueNode forValue,
jdk.internal.jvmci.meta.ResolvedJavaType inputType,
boolean nonNull,
boolean exactType) |
static LogicNode |
create(jdk.internal.jvmci.meta.ResolvedJavaType type,
ValueNode object,
jdk.internal.jvmci.meta.JavaTypeProfile profile) |
static LogicNode |
findSynonym(ValueNode object,
jdk.internal.jvmci.meta.ResolvedJavaType type,
jdk.internal.jvmci.meta.ResolvedJavaType inputType,
boolean nonNull,
boolean exactType) |
Stamp |
getSucceedingStampForValue(boolean negated) |
private static boolean |
isInterfaceOrArrayOfInterface(jdk.internal.jvmci.meta.ResolvedJavaType t) |
void |
lower(LoweringTool tool)
Expand this node into lower level nodes expressing the same semantics.
|
jdk.internal.jvmci.meta.JavaTypeProfile |
profile() |
void |
setProfile(jdk.internal.jvmci.meta.JavaTypeProfile profile) |
jdk.internal.jvmci.meta.TriState |
tryFold(Stamp valueStamp) |
jdk.internal.jvmci.meta.ResolvedJavaType |
type()
Gets the type being tested.
|
void |
virtualize(VirtualizerTool tool)
A node class can implement this method to convey information about what its effect would be
if some of its inputs were virtualized.
|
generate, getValue
and, and, isContradiction, isTautology, or, or
asNode
asConstant, asJavaConstant, getKind, graph, inferStamp, isAllowedUsageType, isConstant, isConstantPredicate, isNullConstant, setStamp, stamp, updateStamp
acceptInputs, acceptSuccessors, afterClone, assertFalse, assertTrue, cfgPredecessors, cfgSuccessors, clearInputs, clearSuccessors, copyWithInputs, copyWithInputs, equals, fail, formatTo, getDebugProperties, getDebugProperties, getId, getNodeClass, getUsageAt, getUsageCount, hashCode, hasNoUsages, hasUsages, inputs, isAlive, isDeleted, markDeleted, modCount, newIdentityMap, newIdentityMap, newIdentityMap, newMap, newMap, newMap, newSet, newSet, predecessor, pushInputs, removeUsage, replaceAndDelete, replaceAtMatchingUsages, replaceAtPredecessor, replaceAtUsages, replaceAtUsages, replaceAtUsages, replaceFirstInput, replaceFirstSuccessor, safeDelete, simplify, successors, toString, toString, updatePredecessor, updateUsages, updateUsagesInterface, usages, valueEquals, verify, verifyEdges, verifyInputs
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canonical
public static final NodeClass<InstanceOfNode> TYPE
protected final jdk.internal.jvmci.meta.ResolvedJavaType type
protected jdk.internal.jvmci.meta.JavaTypeProfile profile
private InstanceOfNode(jdk.internal.jvmci.meta.ResolvedJavaType type, ValueNode object, jdk.internal.jvmci.meta.JavaTypeProfile profile)
protected InstanceOfNode(NodeClass<? extends InstanceOfNode> c, jdk.internal.jvmci.meta.ResolvedJavaType type, ValueNode object, jdk.internal.jvmci.meta.JavaTypeProfile profile)
public static LogicNode create(jdk.internal.jvmci.meta.ResolvedJavaType type, ValueNode object, jdk.internal.jvmci.meta.JavaTypeProfile profile)
public void lower(LoweringTool tool)
Lowerable
public ValueNode canonical(CanonicalizerTool tool, ValueNode forValue)
canonical
in interface Canonicalizable.Unary<ValueNode>
private ValueNode checkInstanceOf(ValueNode forValue, jdk.internal.jvmci.meta.ResolvedJavaType inputType, boolean nonNull, boolean exactType)
public static LogicNode findSynonym(ValueNode object, jdk.internal.jvmci.meta.ResolvedJavaType type, jdk.internal.jvmci.meta.ResolvedJavaType inputType, boolean nonNull, boolean exactType)
public jdk.internal.jvmci.meta.ResolvedJavaType type()
public jdk.internal.jvmci.meta.JavaTypeProfile profile()
public void setProfile(jdk.internal.jvmci.meta.JavaTypeProfile profile)
public void virtualize(VirtualizerTool tool)
Virtualizable
virtualize
in interface Virtualizable
tool
- the tool used to describe the effects of this nodepublic Stamp getSucceedingStampForValue(boolean negated)
getSucceedingStampForValue
in class UnaryOpLogicNode
public jdk.internal.jvmci.meta.TriState tryFold(Stamp valueStamp)
tryFold
in class UnaryOpLogicNode
private static boolean isInterfaceOrArrayOfInterface(jdk.internal.jvmci.meta.ResolvedJavaType t)