public final class org.graalvm.compiler.nodes.extended.BranchProbabilityNode extends org.graalvm.compiler.nodes.calc.FloatingNode implements org.graalvm.compiler.graph.spi.Simplifiable, org.graalvm.compiler.nodes.spi.Lowerable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.nodes.extended.BranchProbabilityNode
super_class: org.graalvm.compiler.nodes.calc.FloatingNode
{
public static final org.graalvm.compiler.graph.NodeClass<org.graalvm.compiler.nodes.extended.BranchProbabilityNode> TYPE;
descriptor: Lorg/graalvm/compiler/graph/NodeClass;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Lorg/graalvm/compiler/graph/NodeClass<Lorg/graalvm/compiler/nodes/extended/BranchProbabilityNode;>;
public static final double LIKELY_PROBABILITY;
descriptor: D
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0.6
public static final double NOT_LIKELY_PROBABILITY;
descriptor: D
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0.4
public static final double FREQUENT_PROBABILITY;
descriptor: D
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0.9
public static final double NOT_FREQUENT_PROBABILITY;
descriptor: D
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0.09999999999999998
public static final double FAST_PATH_PROBABILITY;
descriptor: D
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0.99
public static final double SLOW_PATH_PROBABILITY;
descriptor: D
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0.010000000000000009
public static final double VERY_FAST_PATH_PROBABILITY;
descriptor: D
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0.999
public static final double VERY_SLOW_PATH_PROBABILITY;
descriptor: D
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0.0010000000000000009
org.graalvm.compiler.nodes.ValueNode probability;
descriptor: Lorg/graalvm/compiler/nodes/ValueNode;
flags: (0x0000)
RuntimeVisibleAnnotations:
org.graalvm.compiler.graph.Node$Input()
org.graalvm.compiler.nodes.ValueNode condition;
descriptor: Lorg/graalvm/compiler/nodes/ValueNode;
flags: (0x0000)
RuntimeVisibleAnnotations:
org.graalvm.compiler.graph.Node$Input()
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/nodes/extended/BranchProbabilityNode;
invokestatic org.graalvm.compiler.graph.NodeClass.create:(Ljava/lang/Class;)Lorg/graalvm/compiler/graph/NodeClass;
putstatic org.graalvm.compiler.nodes.extended.BranchProbabilityNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.graalvm.compiler.nodes.ValueNode, org.graalvm.compiler.nodes.ValueNode);
descriptor: (Lorg/graalvm/compiler/nodes/ValueNode;Lorg/graalvm/compiler/nodes/ValueNode;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic org.graalvm.compiler.nodes.extended.BranchProbabilityNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
aload 2
invokevirtual org.graalvm.compiler.nodes.ValueNode.stamp:()Lorg/graalvm/compiler/core/common/type/Stamp;
invokespecial org.graalvm.compiler.nodes.calc.FloatingNode.<init>:(Lorg/graalvm/compiler/graph/NodeClass;Lorg/graalvm/compiler/core/common/type/Stamp;)V
1: aload 0
aload 1
putfield org.graalvm.compiler.nodes.extended.BranchProbabilityNode.probability:Lorg/graalvm/compiler/nodes/ValueNode;
2: aload 0
aload 2
putfield org.graalvm.compiler.nodes.extended.BranchProbabilityNode.condition:Lorg/graalvm/compiler/nodes/ValueNode;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/nodes/extended/BranchProbabilityNode;
0 4 1 probability Lorg/graalvm/compiler/nodes/ValueNode;
0 4 2 condition Lorg/graalvm/compiler/nodes/ValueNode;
MethodParameters:
Name Flags
probability
condition
public org.graalvm.compiler.nodes.ValueNode getProbability();
descriptor: ()Lorg/graalvm/compiler/nodes/ValueNode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.nodes.extended.BranchProbabilityNode.probability:Lorg/graalvm/compiler/nodes/ValueNode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/nodes/extended/BranchProbabilityNode;
public org.graalvm.compiler.nodes.ValueNode getCondition();
descriptor: ()Lorg/graalvm/compiler/nodes/ValueNode;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.nodes.extended.BranchProbabilityNode.condition:Lorg/graalvm/compiler/nodes/ValueNode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/nodes/extended/BranchProbabilityNode;
public void simplify(org.graalvm.compiler.graph.spi.SimplifierTool);
descriptor: (Lorg/graalvm/compiler/graph/spi/SimplifierTool;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=12, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.nodes.extended.BranchProbabilityNode.probability:Lorg/graalvm/compiler/nodes/ValueNode;
invokevirtual org.graalvm.compiler.nodes.ValueNode.isConstant:()Z
ifeq 35
1: aload 0
getfield org.graalvm.compiler.nodes.extended.BranchProbabilityNode.probability:Lorg/graalvm/compiler/nodes/ValueNode;
invokevirtual org.graalvm.compiler.nodes.ValueNode.asJavaConstant:()Ljdk/vm/ci/meta/JavaConstant;
invokeinterface jdk.vm.ci.meta.JavaConstant.asDouble:()D
dstore 2
start local 2 2: dload 2
dconst_0
dcmpg
ifge 4
3: new org.graalvm.compiler.debug.GraalError
dup
new java.lang.StringBuilder
dup
ldc "A negative probability of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
dload 2
invokevirtual java.lang.StringBuilder.append:(D)Ljava/lang/StringBuilder;
ldc " is not allowed!"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.graalvm.compiler.debug.GraalError.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: double
StackMap stack:
dload 2
dconst_1
dcmpl
ifle 6
5: new org.graalvm.compiler.debug.GraalError
dup
new java.lang.StringBuilder
dup
ldc "A probability of more than 1.0 ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
dload 2
invokevirtual java.lang.StringBuilder.append:(D)Ljava/lang/StringBuilder;
ldc ") is not allowed!"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.graalvm.compiler.debug.GraalError.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
dload 2
invokestatic java.lang.Double.isNaN:(D)Z
ifeq 8
7: return
8: StackMap locals:
StackMap stack:
iconst_0
istore 4
start local 4 9: aload 0
invokevirtual org.graalvm.compiler.nodes.extended.BranchProbabilityNode.usages:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
ldc Lorg/graalvm/compiler/nodes/calc/IntegerEqualsNode;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.filter:(Ljava/lang/Class;)Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
astore 6
goto 26
StackMap locals: org.graalvm.compiler.nodes.extended.BranchProbabilityNode org.graalvm.compiler.graph.spi.SimplifierTool double int top java.util.Iterator
StackMap stack:
10: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.calc.IntegerEqualsNode
astore 5
start local 5 11: aload 5
invokevirtual org.graalvm.compiler.nodes.calc.IntegerEqualsNode.condition:()Lorg/graalvm/compiler/core/common/calc/Condition;
getstatic org.graalvm.compiler.core.common.calc.Condition.EQ:Lorg/graalvm/compiler/core/common/calc/Condition;
if_acmpne 26
12: aload 5
invokevirtual org.graalvm.compiler.nodes.calc.IntegerEqualsNode.getX:()Lorg/graalvm/compiler/nodes/ValueNode;
astore 7
start local 7 13: aload 5
invokevirtual org.graalvm.compiler.nodes.calc.IntegerEqualsNode.getX:()Lorg/graalvm/compiler/nodes/ValueNode;
aload 0
if_acmpne 15
14: aload 5
invokevirtual org.graalvm.compiler.nodes.calc.IntegerEqualsNode.getY:()Lorg/graalvm/compiler/nodes/ValueNode;
astore 7
15: StackMap locals: org.graalvm.compiler.nodes.extended.BranchProbabilityNode org.graalvm.compiler.graph.spi.SimplifierTool double int org.graalvm.compiler.nodes.calc.IntegerEqualsNode java.util.Iterator org.graalvm.compiler.nodes.ValueNode
StackMap stack:
aload 7
invokevirtual org.graalvm.compiler.nodes.ValueNode.isConstant:()Z
ifeq 26
16: dload 2
dstore 8
start local 8 17: aload 7
invokevirtual org.graalvm.compiler.nodes.ValueNode.asJavaConstant:()Ljdk/vm/ci/meta/JavaConstant;
invokeinterface jdk.vm.ci.meta.JavaConstant.asInt:()I
ifne 19
18: dconst_1
dload 8
dsub
dstore 8
19: StackMap locals: double
StackMap stack:
aload 5
invokevirtual org.graalvm.compiler.nodes.calc.IntegerEqualsNode.usages:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
ldc Lorg/graalvm/compiler/nodes/IfNode;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.filter:(Ljava/lang/Class;)Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
astore 11
goto 23
StackMap locals: org.graalvm.compiler.nodes.extended.BranchProbabilityNode org.graalvm.compiler.graph.spi.SimplifierTool double int org.graalvm.compiler.nodes.calc.IntegerEqualsNode java.util.Iterator org.graalvm.compiler.nodes.ValueNode double top java.util.Iterator
StackMap stack:
20: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.IfNode
astore 10
start local 10 21: iconst_1
istore 4
22: aload 10
dload 8
invokevirtual org.graalvm.compiler.nodes.IfNode.setTrueSuccessorProbability:(D)V
end local 10 23: StackMap locals:
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 20
24: iload 4
ifne 26
25: aload 5
invokevirtual org.graalvm.compiler.nodes.calc.IntegerEqualsNode.usages:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
ldc Lorg/graalvm/compiler/nodes/FixedGuardNode;
invokestatic org.graalvm.compiler.graph.iterators.NodePredicates.isA:(Ljava/lang/Class;)Lorg/graalvm/compiler/graph/iterators/NodePredicates$PositiveTypePredicate;
ldc Lorg/graalvm/compiler/nodes/calc/ConditionalNode;
invokevirtual org.graalvm.compiler.graph.iterators.NodePredicates$PositiveTypePredicate.or:(Ljava/lang/Class;)Lorg/graalvm/compiler/graph/iterators/NodePredicates$PositiveTypePredicate;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.filter:(Lorg/graalvm/compiler/graph/iterators/NodePredicate;)Lorg/graalvm/compiler/graph/iterators/FilteredNodeIterable;
invokevirtual org.graalvm.compiler.graph.iterators.FilteredNodeIterable.isNotEmpty:()Z
istore 4
end local 8 end local 7 end local 5 26: StackMap locals: org.graalvm.compiler.nodes.extended.BranchProbabilityNode org.graalvm.compiler.graph.spi.SimplifierTool double int top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
27: iload 4
ifeq 33
28: aload 0
getfield org.graalvm.compiler.nodes.extended.BranchProbabilityNode.condition:Lorg/graalvm/compiler/nodes/ValueNode;
astore 5
start local 5 29: aload 0
aload 5
invokevirtual org.graalvm.compiler.nodes.extended.BranchProbabilityNode.replaceAndDelete:(Lorg/graalvm/compiler/graph/Node;)V
30: aload 1
ifnull 35
31: aload 1
aload 5
invokevirtual org.graalvm.compiler.nodes.ValueNode.usages:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.spi.SimplifierTool.addToWorkList:(Ljava/lang/Iterable;)V
end local 5 32: goto 35
33: StackMap locals: org.graalvm.compiler.nodes.extended.BranchProbabilityNode org.graalvm.compiler.graph.spi.SimplifierTool double int
StackMap stack:
aload 0
invokevirtual org.graalvm.compiler.nodes.extended.BranchProbabilityNode.isSubstitutionGraph:()Z
ifne 35
34: new org.graalvm.compiler.debug.GraalError
dup
ldc "Wrong usage of branch probability injection!"
invokespecial org.graalvm.compiler.debug.GraalError.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 2 35: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lorg/graalvm/compiler/nodes/extended/BranchProbabilityNode;
0 36 1 tool Lorg/graalvm/compiler/graph/spi/SimplifierTool;
2 35 2 probabilityValue D
9 35 4 usageFound Z
11 26 5 node Lorg/graalvm/compiler/nodes/calc/IntegerEqualsNode;
13 26 7 other Lorg/graalvm/compiler/nodes/ValueNode;
17 26 8 probabilityToSet D
21 23 10 ifNodeUsages Lorg/graalvm/compiler/nodes/IfNode;
29 32 5 currentCondition Lorg/graalvm/compiler/nodes/ValueNode;
MethodParameters:
Name Flags
tool
private boolean isSubstitutionGraph();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.nodes.extended.BranchProbabilityNode.getUsageCount:()I
iconst_1
if_icmpne 1
aload 0
invokevirtual org.graalvm.compiler.nodes.extended.BranchProbabilityNode.usages:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.first:()Lorg/graalvm/compiler/graph/Node;
instanceof org.graalvm.compiler.nodes.ReturnNode
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/nodes/extended/BranchProbabilityNode;
public static native boolean probability(double, boolean);
descriptor: (DZ)Z
flags: (0x0109) ACC_PUBLIC, ACC_STATIC, ACC_NATIVE
RuntimeVisibleAnnotations:
org.graalvm.compiler.graph.Node$NodeIntrinsic()
MethodParameters:
Name Flags
probability
condition
public void lower(org.graalvm.compiler.nodes.spi.LoweringTool);
descriptor: (Lorg/graalvm/compiler/nodes/spi/LoweringTool;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new org.graalvm.compiler.debug.GraalError
dup
ldc "Branch probability could not be injected, because the probability value did not reduce to a constant value."
invokespecial org.graalvm.compiler.debug.GraalError.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/nodes/extended/BranchProbabilityNode;
0 1 1 tool Lorg/graalvm/compiler/nodes/spi/LoweringTool;
MethodParameters:
Name Flags
tool
}
SourceFile: "BranchProbabilityNode.java"
InnerClasses:
public abstract Input = org.graalvm.compiler.graph.Node$Input of org.graalvm.compiler.graph.Node
public abstract NodeIntrinsic = org.graalvm.compiler.graph.Node$NodeIntrinsic of org.graalvm.compiler.graph.Node
public final PositiveTypePredicate = org.graalvm.compiler.graph.iterators.NodePredicates$PositiveTypePredicate of org.graalvm.compiler.graph.iterators.NodePredicates
RuntimeVisibleAnnotations:
org.graalvm.compiler.nodeinfo.NodeInfo(cycles = org.graalvm.compiler.nodeinfo.NodeCycles.CYCLES_0:Lorg/graalvm/compiler/nodeinfo/NodeCycles;, cyclesRationale = "Artificial Node", size = org.graalvm.compiler.nodeinfo.NodeSize.SIZE_0:Lorg/graalvm/compiler/nodeinfo/NodeSize;)