public class org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase extends org.graalvm.compiler.phases.BasePhase<org.graalvm.compiler.phases.tiers.LowTierContext>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase
super_class: org.graalvm.compiler.phases.BasePhase
{
private static final org.graalvm.compiler.debug.CounterKey counterTrappingNullCheck;
descriptor: Lorg/graalvm/compiler/debug/CounterKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.graalvm.compiler.debug.CounterKey counterTrappingNullCheckExistingRead;
descriptor: Lorg/graalvm/compiler/debug/CounterKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.graalvm.compiler.debug.CounterKey counterTrappingNullCheckUnreached;
descriptor: Lorg/graalvm/compiler/debug/CounterKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.graalvm.compiler.debug.CounterKey counterTrappingNullCheckDynamicDeoptimize;
descriptor: Lorg/graalvm/compiler/debug/CounterKey;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/phases/common/UseTrappingNullChecksPhase;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.$assertionsDisabled:Z
3: ldc "TrappingNullCheck"
invokestatic org.graalvm.compiler.debug.DebugContext.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/CounterKey;
putstatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.counterTrappingNullCheck:Lorg/graalvm/compiler/debug/CounterKey;
4: ldc "TrappingNullCheckExistingRead"
invokestatic org.graalvm.compiler.debug.DebugContext.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/CounterKey;
putstatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.counterTrappingNullCheckExistingRead:Lorg/graalvm/compiler/debug/CounterKey;
5: ldc "TrappingNullCheckUnreached"
invokestatic org.graalvm.compiler.debug.DebugContext.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/CounterKey;
putstatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.counterTrappingNullCheckUnreached:Lorg/graalvm/compiler/debug/CounterKey;
6: ldc "TrappingNullCheckDynamicDeoptimize"
invokestatic org.graalvm.compiler.debug.DebugContext.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/CounterKey;
putstatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.counterTrappingNullCheckDynamicDeoptimize:Lorg/graalvm/compiler/debug/CounterKey;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.phases.BasePhase.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/phases/common/UseTrappingNullChecksPhase;
protected void run(org.graalvm.compiler.nodes.StructuredGraph, org.graalvm.compiler.phases.tiers.LowTierContext);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/phases/tiers/LowTierContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual org.graalvm.compiler.phases.tiers.LowTierContext.getTarget:()Ljdk/vm/ci/code/TargetDescription;
getfield jdk.vm.ci.code.TargetDescription.implicitNullCheckLimit:I
ifgt 2
1: return
2: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.$assertionsDisabled:Z
ifne 3
aload 1
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getGuardsStage:()Lorg/graalvm/compiler/nodes/StructuredGraph$GuardsStage;
invokevirtual org.graalvm.compiler.nodes.StructuredGraph$GuardsStage.areFrameStatesAtDeopts:()Z
ifne 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.graalvm.compiler.phases.tiers.LowTierContext.getTarget:()Ljdk/vm/ci/code/TargetDescription;
getfield jdk.vm.ci.code.TargetDescription.implicitNullCheckLimit:I
i2l
lstore 3
start local 3 4: aload 1
getstatic org.graalvm.compiler.nodes.DeoptimizeNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:(Lorg/graalvm/compiler/graph/NodeClass;)Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
astore 6
goto 7
StackMap locals: org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.phases.tiers.LowTierContext long top java.util.Iterator
StackMap stack:
5: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.DeoptimizeNode
astore 5
start local 5 6: aload 5
aload 5
invokevirtual org.graalvm.compiler.nodes.DeoptimizeNode.predecessor:()Lorg/graalvm/compiler/graph/Node;
aload 5
invokevirtual org.graalvm.compiler.nodes.DeoptimizeNode.reason:()Ljdk/vm/ci/meta/DeoptimizationReason;
aload 5
invokevirtual org.graalvm.compiler.nodes.DeoptimizeNode.getSpeculation:()Ljdk/vm/ci/meta/JavaConstant;
lload 3
invokestatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.tryUseTrappingNullCheck:(Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;Lorg/graalvm/compiler/graph/Node;Ljdk/vm/ci/meta/DeoptimizationReason;Ljdk/vm/ci/meta/JavaConstant;J)V
end local 5 7: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: aload 1
getstatic org.graalvm.compiler.nodes.DynamicDeoptimizeNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:(Lorg/graalvm/compiler/graph/NodeClass;)Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
astore 6
goto 11
StackMap locals:
StackMap stack:
9: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.DynamicDeoptimizeNode
astore 5
start local 5 10: aload 2
invokevirtual org.graalvm.compiler.phases.tiers.LowTierContext.getMetaAccess:()Ljdk/vm/ci/meta/MetaAccessProvider;
aload 5
lload 3
invokestatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.tryUseTrappingNullCheck:(Ljdk/vm/ci/meta/MetaAccessProvider;Lorg/graalvm/compiler/nodes/DynamicDeoptimizeNode;J)V
end local 5 11: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/graalvm/compiler/phases/common/UseTrappingNullChecksPhase;
0 13 1 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
0 13 2 context Lorg/graalvm/compiler/phases/tiers/LowTierContext;
4 13 3 implicitNullCheckLimit J
6 7 5 deopt Lorg/graalvm/compiler/nodes/DeoptimizeNode;
10 11 5 deopt Lorg/graalvm/compiler/nodes/DynamicDeoptimizeNode;
MethodParameters:
Name Flags
graph
context
private static void tryUseTrappingNullCheck(jdk.vm.ci.meta.MetaAccessProvider, org.graalvm.compiler.nodes.DynamicDeoptimizeNode, long);
descriptor: (Ljdk/vm/ci/meta/MetaAccessProvider;Lorg/graalvm/compiler/nodes/DynamicDeoptimizeNode;J)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=19, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.graalvm.compiler.nodes.DynamicDeoptimizeNode.predecessor:()Lorg/graalvm/compiler/graph/Node;
astore 4
start local 4 1: aload 4
instanceof org.graalvm.compiler.nodes.AbstractMergeNode
ifeq 41
2: aload 4
checkcast org.graalvm.compiler.nodes.AbstractMergeNode
astore 5
start local 5 3: aload 1
invokevirtual org.graalvm.compiler.nodes.DynamicDeoptimizeNode.getActionAndReason:()Lorg/graalvm/compiler/nodes/ValueNode;
astore 6
start local 6 4: aconst_null
astore 7
start local 7 5: aconst_null
astore 8
start local 8 6: iconst_0
istore 9
start local 9 7: aload 6
instanceof org.graalvm.compiler.nodes.ValuePhiNode
ifeq 14
8: aload 6
checkcast org.graalvm.compiler.nodes.ValuePhiNode
astore 7
9: aload 7
invokevirtual org.graalvm.compiler.nodes.ValuePhiNode.merge:()Lorg/graalvm/compiler/nodes/AbstractMergeNode;
aload 5
if_acmpeq 11
10: return
11: StackMap locals: jdk.vm.ci.meta.MetaAccessProvider org.graalvm.compiler.nodes.DynamicDeoptimizeNode long org.graalvm.compiler.graph.Node org.graalvm.compiler.nodes.AbstractMergeNode org.graalvm.compiler.nodes.ValueNode org.graalvm.compiler.nodes.ValuePhiNode java.util.List int
StackMap stack:
aload 7
invokevirtual org.graalvm.compiler.nodes.ValuePhiNode.values:()Lorg/graalvm/compiler/graph/NodeInputList;
invokevirtual org.graalvm.compiler.graph.NodeInputList.snapshot:()Ljava/util/List;
astore 8
12: iinc 9 1
13: goto 16
StackMap locals:
StackMap stack:
14: aload 6
invokevirtual org.graalvm.compiler.nodes.ValueNode.isConstant:()Z
ifne 16
15: return
16: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.graalvm.compiler.nodes.DynamicDeoptimizeNode.getSpeculation:()Lorg/graalvm/compiler/nodes/ValueNode;
astore 10
start local 10 17: aconst_null
astore 11
start local 11 18: aconst_null
astore 12
start local 12 19: aload 10
instanceof org.graalvm.compiler.nodes.ValuePhiNode
ifeq 25
20: aload 10
checkcast org.graalvm.compiler.nodes.ValuePhiNode
astore 11
21: aload 11
invokevirtual org.graalvm.compiler.nodes.ValuePhiNode.merge:()Lorg/graalvm/compiler/nodes/AbstractMergeNode;
aload 5
if_acmpeq 23
22: return
23: StackMap locals: org.graalvm.compiler.nodes.ValueNode org.graalvm.compiler.nodes.ValuePhiNode java.util.List
StackMap stack:
aload 11
invokevirtual org.graalvm.compiler.nodes.ValuePhiNode.values:()Lorg/graalvm/compiler/graph/NodeInputList;
invokevirtual org.graalvm.compiler.graph.NodeInputList.snapshot:()Ljava/util/List;
astore 12
24: iinc 9 1
25: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.graalvm.compiler.nodes.AbstractMergeNode.phis:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.count:()I
iload 9
if_icmpeq 27
26: return
27: StackMap locals:
StackMap stack:
iconst_0
istore 13
start local 13 28: aload 5
invokevirtual org.graalvm.compiler.nodes.AbstractMergeNode.cfgPredecessors:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.snapshot:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 15
goto 40
StackMap locals: jdk.vm.ci.meta.MetaAccessProvider org.graalvm.compiler.nodes.DynamicDeoptimizeNode long org.graalvm.compiler.graph.Node org.graalvm.compiler.nodes.AbstractMergeNode org.graalvm.compiler.nodes.ValueNode org.graalvm.compiler.nodes.ValuePhiNode java.util.List int org.graalvm.compiler.nodes.ValueNode org.graalvm.compiler.nodes.ValuePhiNode java.util.List int top java.util.Iterator
StackMap stack:
29: aload 15
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.AbstractEndNode
astore 14
start local 14 30: aload 8
ifnull 31
aload 8
iload 13
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.ValueNode
goto 32
StackMap locals: jdk.vm.ci.meta.MetaAccessProvider org.graalvm.compiler.nodes.DynamicDeoptimizeNode long org.graalvm.compiler.graph.Node org.graalvm.compiler.nodes.AbstractMergeNode org.graalvm.compiler.nodes.ValueNode org.graalvm.compiler.nodes.ValuePhiNode java.util.List int org.graalvm.compiler.nodes.ValueNode org.graalvm.compiler.nodes.ValuePhiNode java.util.List int org.graalvm.compiler.nodes.AbstractEndNode java.util.Iterator
StackMap stack:
31: aload 6
StackMap locals:
StackMap stack: org.graalvm.compiler.nodes.ValueNode
32: astore 16
start local 16 33: aload 12
ifnull 34
aload 12
iload 13
iinc 13 1
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.ValueNode
goto 35
StackMap locals: org.graalvm.compiler.nodes.ValueNode
StackMap stack:
34: aload 10
StackMap locals:
StackMap stack: org.graalvm.compiler.nodes.ValueNode
35: astore 17
start local 17 36: aload 16
invokevirtual org.graalvm.compiler.nodes.ValueNode.isConstant:()Z
ifeq 40
aload 17
invokevirtual org.graalvm.compiler.nodes.ValueNode.isConstant:()Z
ifeq 40
aload 17
invokevirtual org.graalvm.compiler.nodes.ValueNode.asConstant:()Ljdk/vm/ci/meta/Constant;
getstatic jdk.vm.ci.meta.JavaConstant.NULL_POINTER:Ljdk/vm/ci/meta/JavaConstant;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 38
37: goto 40
38: StackMap locals: org.graalvm.compiler.nodes.ValueNode
StackMap stack:
aload 0
aload 16
invokevirtual org.graalvm.compiler.nodes.ValueNode.asJavaConstant:()Ljdk/vm/ci/meta/JavaConstant;
invokeinterface jdk.vm.ci.meta.MetaAccessProvider.decodeDeoptReason:(Ljdk/vm/ci/meta/JavaConstant;)Ljdk/vm/ci/meta/DeoptimizationReason;
astore 18
start local 18 39: aload 1
aload 14
invokevirtual org.graalvm.compiler.nodes.AbstractEndNode.predecessor:()Lorg/graalvm/compiler/graph/Node;
aload 18
aconst_null
lload 2
invokestatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.tryUseTrappingNullCheck:(Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;Lorg/graalvm/compiler/graph/Node;Ljdk/vm/ci/meta/DeoptimizationReason;Ljdk/vm/ci/meta/JavaConstant;J)V
end local 18 end local 17 end local 16 end local 14 40: StackMap locals: jdk.vm.ci.meta.MetaAccessProvider org.graalvm.compiler.nodes.DynamicDeoptimizeNode long org.graalvm.compiler.graph.Node org.graalvm.compiler.nodes.AbstractMergeNode org.graalvm.compiler.nodes.ValueNode org.graalvm.compiler.nodes.ValuePhiNode java.util.List int org.graalvm.compiler.nodes.ValueNode org.graalvm.compiler.nodes.ValuePhiNode java.util.List int top java.util.Iterator
StackMap stack:
aload 15
invokeinterface java.util.Iterator.hasNext:()Z
ifne 29
end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 41: StackMap locals: jdk.vm.ci.meta.MetaAccessProvider org.graalvm.compiler.nodes.DynamicDeoptimizeNode long org.graalvm.compiler.graph.Node
StackMap stack:
return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 metaAccessProvider Ljdk/vm/ci/meta/MetaAccessProvider;
0 42 1 deopt Lorg/graalvm/compiler/nodes/DynamicDeoptimizeNode;
0 42 2 implicitNullCheckLimit J
1 42 4 predecessor Lorg/graalvm/compiler/graph/Node;
3 41 5 merge Lorg/graalvm/compiler/nodes/AbstractMergeNode;
4 41 6 reason Lorg/graalvm/compiler/nodes/ValueNode;
5 41 7 reasonPhi Lorg/graalvm/compiler/nodes/ValuePhiNode;
6 41 8 reasons Ljava/util/List<Lorg/graalvm/compiler/nodes/ValueNode;>;
7 41 9 expectedPhis I
17 41 10 speculation Lorg/graalvm/compiler/nodes/ValueNode;
18 41 11 speculationPhi Lorg/graalvm/compiler/nodes/ValuePhiNode;
19 41 12 speculations Ljava/util/List<Lorg/graalvm/compiler/nodes/ValueNode;>;
28 41 13 index I
30 40 14 end Lorg/graalvm/compiler/nodes/AbstractEndNode;
33 40 16 thisReason Lorg/graalvm/compiler/nodes/ValueNode;
36 40 17 thisSpeculation Lorg/graalvm/compiler/nodes/ValueNode;
39 40 18 deoptimizationReason Ljdk/vm/ci/meta/DeoptimizationReason;
MethodParameters:
Name Flags
metaAccessProvider
deopt
implicitNullCheckLimit
private static void tryUseTrappingNullCheck(org.graalvm.compiler.nodes.AbstractDeoptimizeNode, org.graalvm.compiler.graph.Node, jdk.vm.ci.meta.DeoptimizationReason, jdk.vm.ci.meta.JavaConstant, long);
descriptor: (Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;Lorg/graalvm/compiler/graph/Node;Ljdk/vm/ci/meta/DeoptimizationReason;Ljdk/vm/ci/meta/JavaConstant;J)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 2
getstatic jdk.vm.ci.meta.DeoptimizationReason.NullCheckException:Ljdk/vm/ci/meta/DeoptimizationReason;
if_acmpeq 2
aload 2
getstatic jdk.vm.ci.meta.DeoptimizationReason.UnreachedCode:Ljdk/vm/ci/meta/DeoptimizationReason;
if_acmpeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 3
ifnull 4
aload 3
getstatic jdk.vm.ci.meta.JavaConstant.NULL_POINTER:Ljdk/vm/ci/meta/JavaConstant;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 4
3: return
4: StackMap locals:
StackMap stack:
aload 1
instanceof org.graalvm.compiler.nodes.AbstractMergeNode
ifeq 12
5: aload 1
checkcast org.graalvm.compiler.nodes.AbstractMergeNode
astore 6
start local 6 6: aload 6
invokevirtual org.graalvm.compiler.nodes.AbstractMergeNode.phis:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.isEmpty:()Z
ifeq 14
7: aload 6
invokevirtual org.graalvm.compiler.nodes.AbstractMergeNode.cfgPredecessors:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.snapshot:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 10
StackMap locals: org.graalvm.compiler.nodes.AbstractDeoptimizeNode org.graalvm.compiler.graph.Node jdk.vm.ci.meta.DeoptimizationReason jdk.vm.ci.meta.JavaConstant long org.graalvm.compiler.nodes.AbstractMergeNode top java.util.Iterator
StackMap stack:
8: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.AbstractEndNode
astore 7
start local 7 9: aload 0
aload 7
invokevirtual org.graalvm.compiler.nodes.AbstractEndNode.predecessor:()Lorg/graalvm/compiler/graph/Node;
aload 2
lload 4
invokestatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.checkPredecessor:(Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;Lorg/graalvm/compiler/graph/Node;Ljdk/vm/ci/meta/DeoptimizationReason;J)V
end local 7 10: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
end local 6 11: goto 14
StackMap locals: org.graalvm.compiler.nodes.AbstractDeoptimizeNode org.graalvm.compiler.graph.Node jdk.vm.ci.meta.DeoptimizationReason jdk.vm.ci.meta.JavaConstant long
StackMap stack:
12: aload 1
instanceof org.graalvm.compiler.nodes.AbstractBeginNode
ifeq 14
13: aload 0
aload 1
aload 2
lload 4
invokestatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.checkPredecessor:(Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;Lorg/graalvm/compiler/graph/Node;Ljdk/vm/ci/meta/DeoptimizationReason;J)V
14: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 deopt Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;
0 15 1 predecessor Lorg/graalvm/compiler/graph/Node;
0 15 2 deoptimizationReason Ljdk/vm/ci/meta/DeoptimizationReason;
0 15 3 speculation Ljdk/vm/ci/meta/JavaConstant;
0 15 4 implicitNullCheckLimit J
6 11 6 merge Lorg/graalvm/compiler/nodes/AbstractMergeNode;
9 10 7 end Lorg/graalvm/compiler/nodes/AbstractEndNode;
MethodParameters:
Name Flags
deopt
predecessor
deoptimizationReason
speculation
implicitNullCheckLimit
private static void checkPredecessor(org.graalvm.compiler.nodes.AbstractDeoptimizeNode, org.graalvm.compiler.graph.Node, jdk.vm.ci.meta.DeoptimizationReason, long);
descriptor: (Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;Lorg/graalvm/compiler/graph/Node;Ljdk/vm/ci/meta/DeoptimizationReason;J)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
astore 5
start local 5 1: aconst_null
astore 6
start local 6 2: goto 7
3: StackMap locals: org.graalvm.compiler.graph.Node org.graalvm.compiler.nodes.AbstractBeginNode
StackMap stack:
aload 5
checkcast org.graalvm.compiler.nodes.AbstractBeginNode
astore 6
4: aload 6
invokevirtual org.graalvm.compiler.nodes.AbstractBeginNode.anchored:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.isNotEmpty:()Z
ifeq 6
5: return
6: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.graalvm.compiler.graph.Node.predecessor:()Lorg/graalvm/compiler/graph/Node;
astore 5
7: StackMap locals:
StackMap stack:
aload 5
instanceof org.graalvm.compiler.nodes.AbstractBeginNode
ifne 3
8: aload 5
instanceof org.graalvm.compiler.nodes.IfNode
ifeq 15
9: aload 5
checkcast org.graalvm.compiler.nodes.IfNode
astore 7
start local 7 10: aload 6
aload 7
invokevirtual org.graalvm.compiler.nodes.IfNode.trueSuccessor:()Lorg/graalvm/compiler/nodes/AbstractBeginNode;
if_acmpeq 12
11: return
12: StackMap locals: org.graalvm.compiler.nodes.IfNode
StackMap stack:
aload 7
invokevirtual org.graalvm.compiler.nodes.IfNode.condition:()Lorg/graalvm/compiler/nodes/LogicNode;
astore 8
start local 8 13: aload 8
instanceof org.graalvm.compiler.nodes.calc.IsNullNode
ifeq 15
14: aload 0
aload 7
aload 8
aload 2
lload 3
invokestatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.replaceWithTrappingNullCheck:(Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;Lorg/graalvm/compiler/nodes/IfNode;Lorg/graalvm/compiler/nodes/LogicNode;Ljdk/vm/ci/meta/DeoptimizationReason;J)V
end local 8 end local 7 15: StackMap locals:
StackMap stack:
return
end local 6 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 deopt Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;
0 16 1 predecessor Lorg/graalvm/compiler/graph/Node;
0 16 2 deoptimizationReason Ljdk/vm/ci/meta/DeoptimizationReason;
0 16 3 implicitNullCheckLimit J
1 16 5 current Lorg/graalvm/compiler/graph/Node;
2 16 6 branch Lorg/graalvm/compiler/nodes/AbstractBeginNode;
10 15 7 ifNode Lorg/graalvm/compiler/nodes/IfNode;
13 15 8 condition Lorg/graalvm/compiler/nodes/LogicNode;
MethodParameters:
Name Flags
deopt
predecessor
deoptimizationReason
implicitNullCheckLimit
private static void replaceWithTrappingNullCheck(org.graalvm.compiler.nodes.AbstractDeoptimizeNode, org.graalvm.compiler.nodes.IfNode, org.graalvm.compiler.nodes.LogicNode, jdk.vm.ci.meta.DeoptimizationReason, long);
descriptor: (Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;Lorg/graalvm/compiler/nodes/IfNode;Lorg/graalvm/compiler/nodes/LogicNode;Ljdk/vm/ci/meta/DeoptimizationReason;J)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=17, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokevirtual org.graalvm.compiler.nodes.AbstractDeoptimizeNode.getDebug:()Lorg/graalvm/compiler/debug/DebugContext;
astore 6
start local 6 1: getstatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.counterTrappingNullCheck:Lorg/graalvm/compiler/debug/CounterKey;
aload 6
invokeinterface org.graalvm.compiler.debug.CounterKey.increment:(Lorg/graalvm/compiler/debug/DebugContext;)V
2: aload 0
instanceof org.graalvm.compiler.nodes.DynamicDeoptimizeNode
ifeq 4
3: getstatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.counterTrappingNullCheckDynamicDeoptimize:Lorg/graalvm/compiler/debug/CounterKey;
aload 6
invokeinterface org.graalvm.compiler.debug.CounterKey.increment:(Lorg/graalvm/compiler/debug/DebugContext;)V
4: StackMap locals: org.graalvm.compiler.debug.DebugContext
StackMap stack:
aload 3
getstatic jdk.vm.ci.meta.DeoptimizationReason.UnreachedCode:Ljdk/vm/ci/meta/DeoptimizationReason;
if_acmpne 6
5: getstatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.counterTrappingNullCheckUnreached:Lorg/graalvm/compiler/debug/CounterKey;
aload 6
invokeinterface org.graalvm.compiler.debug.CounterKey.increment:(Lorg/graalvm/compiler/debug/DebugContext;)V
6: StackMap locals:
StackMap stack:
aload 2
checkcast org.graalvm.compiler.nodes.calc.IsNullNode
astore 7
start local 7 7: aload 1
invokevirtual org.graalvm.compiler.nodes.IfNode.falseSuccessor:()Lorg/graalvm/compiler/nodes/AbstractBeginNode;
astore 8
start local 8 8: aload 1
invokevirtual org.graalvm.compiler.nodes.IfNode.trueSuccessor:()Lorg/graalvm/compiler/nodes/AbstractBeginNode;
astore 9
start local 9 9: aconst_null
astore 10
start local 10 10: aload 8
invokevirtual org.graalvm.compiler.nodes.AbstractBeginNode.next:()Lorg/graalvm/compiler/nodes/FixedNode;
astore 11
start local 11 11: aload 7
invokevirtual org.graalvm.compiler.nodes.calc.IsNullNode.getValue:()Lorg/graalvm/compiler/nodes/ValueNode;
astore 12
start local 12 12: getstatic org.graalvm.compiler.core.common.GraalOptions.OptImplicitNullChecks:Lorg/graalvm/compiler/options/OptionKey;
aload 1
invokevirtual org.graalvm.compiler.nodes.IfNode.graph:()Lorg/graalvm/compiler/nodes/StructuredGraph;
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getOptions:()Lorg/graalvm/compiler/options/OptionValues;
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 31
lload 4
lconst_0
lcmp
ifle 31
13: aload 11
instanceof org.graalvm.compiler.nodes.memory.FixedAccessNode
ifeq 31
14: aload 11
checkcast org.graalvm.compiler.nodes.memory.FixedAccessNode
astore 13
start local 13 15: aload 13
invokevirtual org.graalvm.compiler.nodes.memory.FixedAccessNode.canNullCheck:()Z
ifeq 31
16: aload 13
invokevirtual org.graalvm.compiler.nodes.memory.FixedAccessNode.getAddress:()Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
astore 14
start local 14 17: aload 14
invokevirtual org.graalvm.compiler.nodes.memory.address.AddressNode.getBase:()Lorg/graalvm/compiler/nodes/ValueNode;
astore 15
start local 15 18: aload 14
invokevirtual org.graalvm.compiler.nodes.memory.address.AddressNode.getIndex:()Lorg/graalvm/compiler/nodes/ValueNode;
astore 16
start local 16 19: aload 15
ifnull 21
aload 15
instanceof org.graalvm.compiler.nodes.CompressionNode
ifeq 21
20: aload 15
checkcast org.graalvm.compiler.nodes.CompressionNode
invokevirtual org.graalvm.compiler.nodes.CompressionNode.getValue:()Lorg/graalvm/compiler/nodes/ValueNode;
astore 15
21: StackMap locals: org.graalvm.compiler.nodes.AbstractDeoptimizeNode org.graalvm.compiler.nodes.IfNode org.graalvm.compiler.nodes.LogicNode jdk.vm.ci.meta.DeoptimizationReason long org.graalvm.compiler.debug.DebugContext org.graalvm.compiler.nodes.calc.IsNullNode org.graalvm.compiler.nodes.AbstractBeginNode org.graalvm.compiler.nodes.AbstractBeginNode org.graalvm.compiler.nodes.DeoptimizingFixedWithNextNode org.graalvm.compiler.nodes.FixedNode org.graalvm.compiler.nodes.ValueNode org.graalvm.compiler.nodes.memory.FixedAccessNode org.graalvm.compiler.nodes.memory.address.AddressNode org.graalvm.compiler.nodes.ValueNode org.graalvm.compiler.nodes.ValueNode
StackMap stack:
aload 16
ifnull 23
aload 16
instanceof org.graalvm.compiler.nodes.CompressionNode
ifeq 23
22: aload 16
checkcast org.graalvm.compiler.nodes.CompressionNode
invokevirtual org.graalvm.compiler.nodes.CompressionNode.getValue:()Lorg/graalvm/compiler/nodes/ValueNode;
astore 16
23: StackMap locals:
StackMap stack:
aload 15
aload 12
if_acmpne 24
aload 16
ifnull 25
StackMap locals:
StackMap stack:
24: aload 15
ifnonnull 31
aload 16
aload 12
if_acmpne 31
StackMap locals:
StackMap stack:
25: aload 14
invokevirtual org.graalvm.compiler.nodes.memory.address.AddressNode.getMaxConstantDisplacement:()J
lload 4
lcmp
ifge 31
26: aload 13
aload 0
invokevirtual org.graalvm.compiler.nodes.AbstractDeoptimizeNode.stateBefore:()Lorg/graalvm/compiler/nodes/FrameState;
invokevirtual org.graalvm.compiler.nodes.memory.FixedAccessNode.setStateBefore:(Lorg/graalvm/compiler/nodes/FrameState;)V
27: aload 13
iconst_1
invokevirtual org.graalvm.compiler.nodes.memory.FixedAccessNode.setNullCheck:(Z)V
28: aload 0
invokevirtual org.graalvm.compiler.nodes.AbstractDeoptimizeNode.graph:()Lorg/graalvm/compiler/nodes/StructuredGraph;
aload 1
aload 8
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.removeSplit:(Lorg/graalvm/compiler/nodes/ControlSplitNode;Lorg/graalvm/compiler/nodes/AbstractBeginNode;)V
29: aload 13
astore 10
30: getstatic org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.counterTrappingNullCheckExistingRead:Lorg/graalvm/compiler/debug/CounterKey;
aload 6
invokeinterface org.graalvm.compiler.debug.CounterKey.increment:(Lorg/graalvm/compiler/debug/DebugContext;)V
end local 16 end local 15 end local 14 end local 13 31: StackMap locals: org.graalvm.compiler.nodes.AbstractDeoptimizeNode org.graalvm.compiler.nodes.IfNode org.graalvm.compiler.nodes.LogicNode jdk.vm.ci.meta.DeoptimizationReason long org.graalvm.compiler.debug.DebugContext org.graalvm.compiler.nodes.calc.IsNullNode org.graalvm.compiler.nodes.AbstractBeginNode org.graalvm.compiler.nodes.AbstractBeginNode org.graalvm.compiler.nodes.DeoptimizingFixedWithNextNode org.graalvm.compiler.nodes.FixedNode org.graalvm.compiler.nodes.ValueNode
StackMap stack:
aload 10
ifnonnull 34
32: aload 0
invokevirtual org.graalvm.compiler.nodes.AbstractDeoptimizeNode.graph:()Lorg/graalvm/compiler/nodes/StructuredGraph;
new org.graalvm.compiler.nodes.extended.NullCheckNode
dup
aload 12
invokespecial org.graalvm.compiler.nodes.extended.NullCheckNode.<init>:(Lorg/graalvm/compiler/nodes/ValueNode;)V
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.add:(Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.nodes.DeoptimizingFixedWithNextNode
astore 10
33: aload 0
invokevirtual org.graalvm.compiler.nodes.AbstractDeoptimizeNode.graph:()Lorg/graalvm/compiler/nodes/StructuredGraph;
aload 1
aload 10
aload 8
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.replaceSplit:(Lorg/graalvm/compiler/nodes/ControlSplitNode;Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/AbstractBeginNode;)V
34: StackMap locals:
StackMap stack:
aload 10
aload 0
invokevirtual org.graalvm.compiler.nodes.AbstractDeoptimizeNode.stateBefore:()Lorg/graalvm/compiler/nodes/FrameState;
invokevirtual org.graalvm.compiler.nodes.DeoptimizingFixedWithNextNode.setStateBefore:(Lorg/graalvm/compiler/nodes/FrameState;)V
35: aload 8
getstatic org.graalvm.compiler.nodeinfo.InputType.Guard:Lorg/graalvm/compiler/nodeinfo/InputType;
aload 10
invokevirtual org.graalvm.compiler.nodes.AbstractBeginNode.replaceAtUsages:(Lorg/graalvm/compiler/nodeinfo/InputType;Lorg/graalvm/compiler/graph/Node;)V
36: aload 8
instanceof org.graalvm.compiler.nodes.BeginNode
ifeq 39
37: aload 8
invokestatic org.graalvm.compiler.nodes.util.GraphUtil.unlinkFixedNode:(Lorg/graalvm/compiler/nodes/FixedWithNextNode;)V
38: aload 8
invokevirtual org.graalvm.compiler.nodes.AbstractBeginNode.safeDelete:()V
39: StackMap locals:
StackMap stack:
aload 9
invokestatic org.graalvm.compiler.nodes.util.GraphUtil.killCFG:(Lorg/graalvm/compiler/nodes/FixedNode;)V
40: aload 7
invokestatic org.graalvm.compiler.nodes.util.GraphUtil.tryKillUnused:(Lorg/graalvm/compiler/graph/Node;)Z
pop
41: return
end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 deopt Lorg/graalvm/compiler/nodes/AbstractDeoptimizeNode;
0 42 1 ifNode Lorg/graalvm/compiler/nodes/IfNode;
0 42 2 condition Lorg/graalvm/compiler/nodes/LogicNode;
0 42 3 deoptimizationReason Ljdk/vm/ci/meta/DeoptimizationReason;
0 42 4 implicitNullCheckLimit J
1 42 6 debug Lorg/graalvm/compiler/debug/DebugContext;
7 42 7 isNullNode Lorg/graalvm/compiler/nodes/calc/IsNullNode;
8 42 8 nonTrappingContinuation Lorg/graalvm/compiler/nodes/AbstractBeginNode;
9 42 9 trappingContinuation Lorg/graalvm/compiler/nodes/AbstractBeginNode;
10 42 10 trappingNullCheck Lorg/graalvm/compiler/nodes/DeoptimizingFixedWithNextNode;
11 42 11 nextNonTrapping Lorg/graalvm/compiler/nodes/FixedNode;
12 42 12 value Lorg/graalvm/compiler/nodes/ValueNode;
15 31 13 fixedAccessNode Lorg/graalvm/compiler/nodes/memory/FixedAccessNode;
17 31 14 address Lorg/graalvm/compiler/nodes/memory/address/AddressNode;
18 31 15 base Lorg/graalvm/compiler/nodes/ValueNode;
19 31 16 index Lorg/graalvm/compiler/nodes/ValueNode;
MethodParameters:
Name Flags
deopt
ifNode
condition
deoptimizationReason
implicitNullCheckLimit
protected void run(org.graalvm.compiler.nodes.StructuredGraph, java.lang.Object);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
checkcast org.graalvm.compiler.phases.tiers.LowTierContext
invokevirtual org.graalvm.compiler.phases.common.UseTrappingNullChecksPhase.run:(Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/phases/tiers/LowTierContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lorg/graalvm/compiler/phases/BasePhase<Lorg/graalvm/compiler/phases/tiers/LowTierContext;>;
SourceFile: "UseTrappingNullChecksPhase.java"
InnerClasses:
public final GuardsStage = org.graalvm.compiler.nodes.StructuredGraph$GuardsStage of org.graalvm.compiler.nodes.StructuredGraph