public class org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest 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.ControlFlowAnchorDirectiveTest
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/ControlFlowAnchorDirectiveTest;
public static int verifyMergeSnippet(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
iconst_5
if_icmple 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
iconst_2
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 arg I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/ReturnNode;, expectedCount = 1)
MethodParameters:
Name Flags
arg
public static int preventMergeSnippet(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
iconst_5
if_icmple 3
1: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
2: iconst_1
ireturn
3: StackMap locals:
StackMap stack:
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
4: iconst_2
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 arg I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$AnchorSnippet(value = {org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/debug/ControlFlowAnchorNode;, expectedCount = 2), org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/ReturnNode;, expectedCount = 2)})
MethodParameters:
Name Flags
arg
public void testMerge();
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/ControlFlowAnchorDirectiveTest;
RuntimeInvisibleAnnotations:
Test()
public static int verifyDuplicateSnippet(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iload 0
iconst_5
if_icmple 3
1: bipush 17
istore 1
start local 1 2: goto 4
end local 1 3: StackMap locals:
StackMap stack:
iload 0
istore 1
start local 1 4: StackMap locals: int
StackMap stack:
bipush 42
iload 1
idiv
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 arg I
2 3 1 ret I
4 5 1 ret I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/ReturnNode;, expectedCount = 2)
MethodParameters:
Name Flags
arg
public static int preventDuplicateSnippet(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iload 0
iconst_5
if_icmple 3
1: bipush 17
istore 1
start local 1 2: goto 4
end local 1 3: StackMap locals:
StackMap stack:
iload 0
istore 1
start local 1 4: StackMap locals: int
StackMap stack:
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
5: bipush 42
iload 1
idiv
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 arg I
2 3 1 ret I
4 6 1 ret I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$AnchorSnippet(value = {org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/debug/ControlFlowAnchorNode;, expectedCount = 1), org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/ReturnNode;, expectedCount = 1)})
MethodParameters:
Name Flags
arg
public void testDuplicate();
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/ControlFlowAnchorDirectiveTest;
RuntimeInvisibleAnnotations:
Test()
public static int verifyFullUnrollSnippet(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: iload 0
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: int int
StackMap stack:
iload 1
iconst_3
imul
iconst_1
iadd
istore 1
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iconst_5
if_icmplt 3
end local 2 6: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 arg I
1 7 1 ret I
2 6 2 i I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/LoopBeginNode;, expectedCount = 0)
MethodParameters:
Name Flags
arg
public static int preventFullUnrollSnippet(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: iload 0
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 6
3: StackMap locals: int int
StackMap stack:
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
4: iload 1
iconst_3
imul
iconst_1
iadd
istore 1
5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
iconst_5
if_icmplt 3
end local 2 7: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 arg I
1 8 1 ret I
2 7 2 i I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$AnchorSnippet(value = {org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/LoopBeginNode;, expectedCount = 1), org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/debug/ControlFlowAnchorNode;, expectedCount = 1)})
MethodParameters:
Name Flags
arg
public void testFullUnroll();
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/ControlFlowAnchorDirectiveTest;
RuntimeInvisibleAnnotations:
Test()
public static void verifyPeelSnippet(int);
descriptor: (I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iload 0
istore 1
start local 1 1: goto 6
2: StackMap locals: int
StackMap stack:
iload 1
iconst_2
irem
ifne 5
3: iload 1
iconst_2
idiv
istore 1
4: goto 6
5: StackMap locals:
StackMap stack:
iconst_3
iload 1
imul
iconst_1
iadd
istore 1
6: StackMap locals:
StackMap stack:
iload 1
iconst_1
if_icmpgt 2
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 arg I
1 8 1 ret I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$AnchorSnippet(value = {org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/LoopBeginNode;, expectedCount = 1), org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/IfNode;, expectedCount = 4)})
MethodParameters:
Name Flags
arg
public static void preventPeelSnippet(int);
descriptor: (I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iload 0
istore 1
start local 1 1: goto 8
2: StackMap locals: int
StackMap stack:
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
3: iload 1
iconst_2
irem
ifne 7
4: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
5: iload 1
iconst_2
idiv
istore 1
6: goto 8
7: StackMap locals:
StackMap stack:
iconst_3
iload 1
imul
iconst_1
iadd
istore 1
8: StackMap locals:
StackMap stack:
iload 1
iconst_1
if_icmpgt 2
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 arg I
1 10 1 ret I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$AnchorSnippet(value = {org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/LoopBeginNode;, expectedCount = 1), org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/IfNode;, expectedCount = 2)})
MethodParameters:
Name Flags
arg
public void testPeel();
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/ControlFlowAnchorDirectiveTest;
RuntimeInvisibleAnnotations:
Test()
public static void verifyUnswitchSnippet(int, boolean);
descriptor: (IZ)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iload 0
istore 2
start local 2 1: goto 6
2: StackMap locals: int
StackMap stack:
iload 1
ifeq 5
3: iload 2
iconst_2
imul
iconst_1
iadd
istore 2
4: goto 6
5: StackMap locals:
StackMap stack:
iload 2
iconst_3
imul
iconst_1
iadd
istore 2
6: StackMap locals:
StackMap stack:
ldc 0.9999
iload 2
sipush 1000
if_icmpge 7
iconst_1
goto 8
StackMap locals:
StackMap stack: double
7: iconst_0
StackMap locals: int int int
StackMap stack: double int
8: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifne 2
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 arg I
0 10 1 flag Z
1 10 2 ret I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/LoopBeginNode;, expectedCount = 2)
MethodParameters:
Name Flags
arg
flag
public static void preventUnswitchSnippet(int, boolean);
descriptor: (IZ)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iload 0
istore 2
start local 2 1: goto 7
2: StackMap locals: int
StackMap stack:
iload 1
ifeq 6
3: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
4: iinc 2 1
5: goto 7
6: StackMap locals:
StackMap stack:
iinc 2 2
7: StackMap locals:
StackMap stack:
ldc 0.9999
iload 2
sipush 1000
if_icmpge 8
iconst_1
goto 9
StackMap locals:
StackMap stack: double
8: iconst_0
StackMap locals: int int int
StackMap stack: double int
9: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectBranchProbability:(DZ)Z
ifne 2
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 arg I
0 11 1 flag Z
1 11 2 ret I
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$AnchorSnippet(value = {org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/LoopBeginNode;, expectedCount = 1), org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount(nodeClass = Lorg/graalvm/compiler/nodes/IfNode;, expectedCount = 2)})
MethodParameters:
Name Flags
arg
flag
public void testUnswitch();
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/ControlFlowAnchorDirectiveTest;
RuntimeInvisibleAnnotations:
Test()
public void testClone();
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/ControlFlowAnchorDirectiveTest;
RuntimeInvisibleAnnotations:
Test()
private static java.util.List<org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount> getNodeCountAnnotations(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.method:()Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 1
start local 1 1: aload 1
ldc Lorg/graalvm/compiler/api/directives/test/ControlFlowAnchorDirectiveTest$AnchorSnippet;
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$AnchorSnippet
astore 2
start local 2 2: aload 2
ifnull 4
3: aload 2
invokeinterface org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$AnchorSnippet.value:()[Lorg/graalvm/compiler/api/directives/test/ControlFlowAnchorDirectiveTest$NodeCount;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
areturn
4: StackMap locals: jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$AnchorSnippet
StackMap stack:
aload 1
ldc Lorg/graalvm/compiler/api/directives/test/ControlFlowAnchorDirectiveTest$NodeCount;
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount
astore 3
start local 3 5: aload 3
ifnull 7
6: aload 3
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
areturn
7: StackMap locals: org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
1 8 1 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
2 8 2 snippet Lorg/graalvm/compiler/api/directives/test/ControlFlowAnchorDirectiveTest$AnchorSnippet;
5 8 3 single Lorg/graalvm/compiler/api/directives/test/ControlFlowAnchorDirectiveTest$NodeCount;
Signature: (Lorg/graalvm/compiler/nodes/StructuredGraph;)Ljava/util/List<Lorg/graalvm/compiler/api/directives/test/ControlFlowAnchorDirectiveTest$NodeCount;>;
MethodParameters:
Name Flags
graph
protected org.graalvm.compiler.phases.OptimisticOptimizations getOptimisticOptimizations();
descriptor: ()Lorg/graalvm/compiler/phases/OptimisticOptimizations;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=1, args_size=1
start local 0 0: getstatic org.graalvm.compiler.phases.OptimisticOptimizations.ALL:Lorg/graalvm/compiler/phases/OptimisticOptimizations;
iconst_1
anewarray org.graalvm.compiler.phases.OptimisticOptimizations$Optimization
dup
iconst_0
getstatic org.graalvm.compiler.phases.OptimisticOptimizations$Optimization.RemoveNeverExecutedCode:Lorg/graalvm/compiler/phases/OptimisticOptimizations$Optimization;
aastore
invokevirtual org.graalvm.compiler.phases.OptimisticOptimizations.remove:([Lorg/graalvm/compiler/phases/OptimisticOptimizations$Optimization;)Lorg/graalvm/compiler/phases/OptimisticOptimizations;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/api/directives/test/ControlFlowAnchorDirectiveTest;
protected void checkLowTierGraph(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)V
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/ControlFlowAnchorDirectiveTest;
MethodParameters:
Name Flags
graph
}
SourceFile: "ControlFlowAnchorDirectiveTest.java"
NestMembers:
org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$AnchorSnippet org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount
InnerClasses:
private abstract AnchorSnippet = org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$AnchorSnippet of org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest
private abstract NodeCount = org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest$NodeCount of org.graalvm.compiler.api.directives.test.ControlFlowAnchorDirectiveTest
public final Optimization = org.graalvm.compiler.phases.OptimisticOptimizations$Optimization of org.graalvm.compiler.phases.OptimisticOptimizations