public class org.graalvm.compiler.api.directives.test.ProbabilityDirectiveTest extends org.graalvm.compiler.core.test.GraalCompilerTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.api.directives.test.ProbabilityDirectiveTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
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.core.test.GraalCompilerTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/api/directives/test/ProbabilityDirectiveTest;
public static int branchProbabilitySnippet(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: ldc 0.125
iload 0
ifle 1
iconst_1
goto 2
StackMap locals:
StackMap stack: double
1: iconst_0
StackMap locals: int
StackMap stack: double int
2: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifeq 5
3: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
4: iconst_1
ireturn
5: StackMap locals:
StackMap stack:
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
6: iconst_2
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 arg I
MethodParameters:
Name Flags
arg
public void testBranchProbability();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/api/directives/test/ProbabilityDirectiveTest;
RuntimeInvisibleAnnotations:
Test()
public static int branchProbabilitySnippet2(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: ldc 0.125
iload 0
ifgt 1
iconst_1
goto 2
StackMap locals:
StackMap stack: double
1: iconst_0
StackMap locals: int
StackMap stack: double int
2: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifne 5
3: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
4: iconst_2
ireturn
5: StackMap locals:
StackMap stack:
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
6: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 arg I
MethodParameters:
Name Flags
arg
public void testBranchProbability2();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/api/directives/test/ProbabilityDirectiveTest;
RuntimeInvisibleAnnotations:
Test()
protected boolean checkLowTierGraph(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tAssert cannot be resolved\n\tAssert cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/api/directives/test/ProbabilityDirectiveTest;
MethodParameters:
Name Flags
graph
private static int returnValue(org.graalvm.compiler.nodes.AbstractBeginNode);
descriptor: (Lorg/graalvm/compiler/nodes/AbstractBeginNode;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.nodes.AbstractBeginNode.next:()Lorg/graalvm/compiler/nodes/FixedNode;
checkcast org.graalvm.compiler.nodes.debug.ControlFlowAnchorNode
astore 1
start local 1 1: aload 1
invokevirtual org.graalvm.compiler.nodes.debug.ControlFlowAnchorNode.next:()Lorg/graalvm/compiler/nodes/FixedNode;
checkcast org.graalvm.compiler.nodes.ReturnNode
astore 2
start local 2 2: aload 2
invokevirtual org.graalvm.compiler.nodes.ReturnNode.result:()Lorg/graalvm/compiler/nodes/ValueNode;
invokevirtual org.graalvm.compiler.nodes.ValueNode.asJavaConstant:()Ljdk/vm/ci/meta/JavaConstant;
invokeinterface jdk.vm.ci.meta.JavaConstant.asInt:()I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 b Lorg/graalvm/compiler/nodes/AbstractBeginNode;
1 3 1 anchor Lorg/graalvm/compiler/nodes/debug/ControlFlowAnchorNode;
2 3 2 returnNode Lorg/graalvm/compiler/nodes/ReturnNode;
MethodParameters:
Name Flags
b
}
SourceFile: "ProbabilityDirectiveTest.java"