public class org.graalvm.compiler.nodes.test.IfNodeCanonicalizationTest 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.nodes.test.IfNodeCanonicalizationTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
static int value;
descriptor: I
flags: (0x0008) ACC_STATIC
static final byte[] testValues;
descriptor: [B
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: iconst_5
newarray 8
dup
iconst_0
bipush -128
bastore
dup
iconst_1
iconst_m1
bastore
dup
iconst_3
iconst_1
bastore
dup
iconst_4
bipush 127
bastore
putstatic org.graalvm.compiler.nodes.test.IfNodeCanonicalizationTest.testValues:[B
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.core.test.GraalCompilerTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/nodes/test/IfNodeCanonicalizationTest;
public void test1();
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/nodes/test/IfNodeCanonicalizationTest;
RuntimeInvisibleAnnotations:
Test()
public int testSnippet1(byte[]);
descriptor: ([B)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
iconst_0
baload
aload 1
iconst_1
baload
isub
istore 2
start local 2 1: iload 2
ifge 3
2: iconst_2
putstatic org.graalvm.compiler.nodes.test.IfNodeCanonicalizationTest.value:I
3: StackMap locals: int
StackMap stack:
aload 1
iconst_3
baload
aload 1
iconst_2
baload
isub
istore 2
4: iload 2
ifge 6
5: iconst_1
putstatic org.graalvm.compiler.nodes.test.IfNodeCanonicalizationTest.value:I
6: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.nodes.test.IfNodeCanonicalizationTest.value:I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/compiler/nodes/test/IfNodeCanonicalizationTest;
0 7 1 values [B
1 7 2 v I
MethodParameters:
Name Flags
values
public void test2();
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/nodes/test/IfNodeCanonicalizationTest;
RuntimeInvisibleAnnotations:
Test()
public boolean testSnippet2(int, int[]);
descriptor: (I[I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
istore 3
start local 3 1: iload 1
iflt 2
iload 1
iload 3
if_icmplt 4
2: StackMap locals: int
StackMap stack:
iload 1
putstatic org.graalvm.compiler.nodes.test.IfNodeCanonicalizationTest.value:I
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/nodes/test/IfNodeCanonicalizationTest;
0 5 1 a I
0 5 2 limit [I
1 5 3 l I
MethodParameters:
Name Flags
a
limit
public void test3();
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 problems: \n\tIgnore cannot be resolved to a type\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/nodes/test/IfNodeCanonicalizationTest;
RuntimeInvisibleAnnotations:
Test()
public boolean testSnippet3(int, int[]);
descriptor: (I[I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
istore 3
start local 3 1: iload 1
iload 3
if_icmpge 4
iload 1
iflt 4
2: bipush 9
putstatic org.graalvm.compiler.nodes.test.IfNodeCanonicalizationTest.value:I
3: iconst_1
ireturn
4: StackMap locals: int
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/nodes/test/IfNodeCanonicalizationTest;
0 5 1 a I
0 5 2 limit [I
1 5 3 l I
MethodParameters:
Name Flags
a
limit
public void test4();
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/nodes/test/IfNodeCanonicalizationTest;
RuntimeInvisibleAnnotations:
Test()
public boolean testSnippet4(int, int[]);
descriptor: (I[I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
istore 3
start local 3 1: iload 1
ifge 3
2: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.deoptimize:()V
3: StackMap locals: int
StackMap stack:
iload 1
iload 3
if_icmplt 5
4: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.deoptimize:()V
5: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/nodes/test/IfNodeCanonicalizationTest;
0 6 1 a I
0 6 2 limit [I
1 6 3 l I
MethodParameters:
Name Flags
a
limit
public void test5();
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 problems: \n\tIgnore cannot be resolved to a type\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/nodes/test/IfNodeCanonicalizationTest;
RuntimeInvisibleAnnotations:
Test()
public boolean testSnippet5(int, int[]);
descriptor: (I[I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
arraylength
istore 3
start local 3 1: iload 1
iload 3
if_icmplt 3
2: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.deoptimize:()V
3: StackMap locals: int
StackMap stack:
iload 1
ifge 5
4: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.deoptimize:()V
5: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/nodes/test/IfNodeCanonicalizationTest;
0 6 1 a I
0 6 2 limit [I
1 6 3 l I
MethodParameters:
Name Flags
a
limit
public void test(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
ldc Lorg/graalvm/compiler/nodes/LogicNode;
iload 2
invokevirtual org.graalvm.compiler.nodes.test.IfNodeCanonicalizationTest.test:(Ljava/lang/String;Ljava/lang/Class;I)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/nodes/test/IfNodeCanonicalizationTest;
0 2 1 name Ljava/lang/String;
0 2 2 logicCount I
MethodParameters:
Name Flags
name
logicCount
public void test(java.lang.String, java.lang.Class<? extends org.graalvm.compiler.graph.Node>, );
descriptor: (Ljava/lang/String;Ljava/lang/Class;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \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/nodes/test/IfNodeCanonicalizationTest;
Signature: (Ljava/lang/String;Ljava/lang/Class<+Lorg/graalvm/compiler/graph/Node;>;I)V
MethodParameters:
Name Flags
name
expectedClass
expectedCount
}
SourceFile: "IfNodeCanonicalizationTest.java"