public class org.graalvm.compiler.core.test.NodePropertiesTest 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.core.test.NodePropertiesTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
public static java.lang.Object sideEffect;
descriptor: Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
public static java.lang.Object[] array;
descriptor: [Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
public static final int ITERATIONS_LOOP_1;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 128
public static final int ITERATIONS_LOOP_2;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 256
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: iconst_3
anewarray java.lang.Object
dup
iconst_0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
aastore
dup
iconst_1
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
aastore
dup
iconst_2
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
aastore
putstatic org.graalvm.compiler.core.test.NodePropertiesTest.array:[Ljava/lang/Object;
1: 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/core/test/NodePropertiesTest;
public static int test1Snippet(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iload 0
ifle 5
2: iconst_1
istore 1
3: aconst_null
putstatic org.graalvm.compiler.core.test.NodePropertiesTest.sideEffect:Ljava/lang/Object;
4: goto 7
5: StackMap locals: int
StackMap stack:
iconst_2
istore 1
6: aconst_null
putstatic org.graalvm.compiler.core.test.NodePropertiesTest.sideEffect:Ljava/lang/Object;
7: StackMap locals:
StackMap stack:
iconst_4
istore 2
start local 2 8: aconst_null
putstatic org.graalvm.compiler.core.test.NodePropertiesTest.sideEffect:Ljava/lang/Object;
9: iload 2
iconst_5
irem
istore 3
start local 3 10: iload 0
iload 1
imul
iload 3
imul
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 a I
1 11 1 x I
8 11 2 b I
10 11 3 c I
MethodParameters:
Name Flags
a
public static int test2Snippet(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iload 0
ifle 5
2: iconst_1
istore 1
3: aconst_null
putstatic org.graalvm.compiler.core.test.NodePropertiesTest.sideEffect:Ljava/lang/Object;
4: goto 7
5: StackMap locals: int
StackMap stack:
iconst_2
istore 1
6: aconst_null
putstatic org.graalvm.compiler.core.test.NodePropertiesTest.sideEffect:Ljava/lang/Object;
7: StackMap locals:
StackMap stack:
aconst_null
putstatic org.graalvm.compiler.core.test.NodePropertiesTest.sideEffect:Ljava/lang/Object;
8: iload 0
iload 1
imul
bipush 41
imul
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 a I
1 9 1 x I
MethodParameters:
Name Flags
a
public static int testLoop01(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: iconst_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
iload 2
iadd
istore 1
4: iinc 2 1
StackMap locals:
StackMap stack:
5: ldc 128.0
iload 2
iload 0
if_icmpge 6
iconst_1
goto 7
StackMap locals:
StackMap stack: double
6: iconst_0
StackMap locals: int int int
StackMap stack: double int
7: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectIterationCount:(DZ)Z
ifne 3
end local 2 8: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 a I
1 9 1 res I
2 8 2 i I
MethodParameters:
Name Flags
a
public static int testLoop02(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: iconst_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
iload 2
iadd
istore 1
4: iinc 2 1
StackMap locals:
StackMap stack:
5: ldc 256.0
iload 2
iload 0
if_icmpge 6
iconst_1
goto 7
StackMap locals:
StackMap stack: double
6: iconst_0
StackMap locals: int int int
StackMap stack: double int
7: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectIterationCount:(DZ)Z
ifne 3
end local 2 8: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 a I
1 9 1 res I
2 8 2 i I
MethodParameters:
Name Flags
a
public static int testLoop03(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: iconst_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
iload 2
imul
istore 1
4: iinc 2 1
StackMap locals:
StackMap stack:
5: ldc 128.0
iload 2
iload 0
if_icmpge 6
iconst_1
goto 7
StackMap locals:
StackMap stack: double
6: iconst_0
StackMap locals: int int int
StackMap stack: double int
7: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectIterationCount:(DZ)Z
ifne 3
end local 2 8: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 a I
1 9 1 res I
2 8 2 i I
MethodParameters:
Name Flags
a
public static int testLoop04(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: iconst_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
iload 2
iadd
istore 1
4: iinc 2 1
StackMap locals:
StackMap stack:
5: ldc 32768.0
iload 2
iload 0
if_icmpge 6
iconst_1
goto 7
StackMap locals:
StackMap stack: double
6: iconst_0
StackMap locals: int int int
StackMap stack: double int
7: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectIterationCount:(DZ)Z
ifne 3
end local 2 8: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 a I
1 9 1 res I
2 8 2 i I
MethodParameters:
Name Flags
a
public static int testLoop05(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 12
3: StackMap locals: int int
StackMap stack:
iload 1
iload 2
iadd
istore 1
4: iconst_0
istore 3
start local 3 5: goto 8
6: StackMap locals: int
StackMap stack:
iload 1
iload 2
iadd
istore 1
7: iinc 3 1
StackMap locals:
StackMap stack:
8: ldc 256.0
iload 3
sipush 256
if_icmpge 9
iconst_1
goto 10
StackMap locals:
StackMap stack: double
9: iconst_0
StackMap locals: int int int int
StackMap stack: double int
10: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectIterationCount:(DZ)Z
ifne 6
end local 3 11: iinc 2 1
StackMap locals:
StackMap stack:
12: ldc 128.0
iload 2
iload 0
if_icmpge 13
iconst_1
goto 14
StackMap locals:
StackMap stack: double
13: iconst_0
StackMap locals: int int int
StackMap stack: double int
14: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.injectIterationCount:(DZ)Z
ifne 3
end local 2 15: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 a I
1 16 1 res I
2 15 2 i I
5 11 3 j I
MethodParameters:
Name Flags
a
public static int dontInline(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 13
3: StackMap locals: int int
StackMap stack:
iconst_0
istore 3
start local 3 4: goto 11
5: StackMap locals: int
StackMap stack:
iconst_0
istore 4
start local 4 6: goto 9
7: StackMap locals: int
StackMap stack:
iload 1
iload 2
iload 3
iadd
iload 4
iadd
iadd
istore 1
8: iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 3
if_icmplt 7
end local 4 10: iinc 3 1
StackMap locals:
StackMap stack:
11: iload 3
iload 2
if_icmplt 5
end local 3 12: iinc 2 1
StackMap locals:
StackMap stack:
13: iload 2
iload 0
if_icmplt 3
end local 2 14: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putstatic org.graalvm.compiler.core.test.NodePropertiesTest.sideEffect:Ljava/lang/Object;
15: getstatic org.graalvm.compiler.core.test.NodePropertiesTest.sideEffect:Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 a I
1 16 1 res I
2 14 2 i I
4 12 3 j I
6 10 4 k I
MethodParameters:
Name Flags
a
public static int untrused01(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
invokestatic org.graalvm.compiler.core.test.NodePropertiesTest.dontInline:(I)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 a I
MethodParameters:
Name Flags
a
public static int arrayLoadTest(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.graalvm.compiler.core.test.NodePropertiesTest.array:[Ljava/lang/Object;
iload 0
aaload
invokevirtual java.lang.Object.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 a I
MethodParameters:
Name Flags
a
public static int arrayStoreTest(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic org.graalvm.compiler.core.test.NodePropertiesTest.array:[Ljava/lang/Object;
iconst_2
iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
1: iload 0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 a I
MethodParameters:
Name Flags
a
public static int fieldLoad(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.graalvm.compiler.core.test.NodePropertiesTest.sideEffect:Ljava/lang/Object;
invokevirtual java.lang.Object.hashCode:()I
iload 0
imul
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 a I
MethodParameters:
Name Flags
a
public static int fieldStore(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putstatic org.graalvm.compiler.core.test.NodePropertiesTest.sideEffect:Ljava/lang/Object;
1: iload 0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 a I
MethodParameters:
Name Flags
a
public void testCanonicalizationExample();
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\tTest cannot be resolved to a type\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/core/test/NodePropertiesTest;
RuntimeInvisibleAnnotations:
Test()
private static void prepareGraphForLoopFrequencies(org.graalvm.compiler.nodes.StructuredGraph, org.graalvm.compiler.phases.tiers.HighTierContext);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/phases/tiers/HighTierContext;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new org.graalvm.compiler.phases.common.CanonicalizerPhase
dup
invokespecial org.graalvm.compiler.phases.common.CanonicalizerPhase.<init>:()V
aload 0
aload 1
invokevirtual org.graalvm.compiler.phases.common.CanonicalizerPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
1: aload 0
invokestatic org.graalvm.compiler.java.ComputeLoopFrequenciesClosure.compute:(Lorg/graalvm/compiler/nodes/StructuredGraph;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 g Lorg/graalvm/compiler/nodes/StructuredGraph;
0 3 1 htc Lorg/graalvm/compiler/phases/tiers/HighTierContext;
MethodParameters:
Name Flags
g
htc
private static void assertFrequency(org.graalvm.compiler.nodes.StructuredGraph, int);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
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
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
g
iterations
public void testDifferentLoopFaster();
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\tTest cannot be resolved to a type\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/core/test/NodePropertiesTest;
RuntimeInvisibleAnnotations:
Test()
public void testSameLoopMoreIterationsCostlier();
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\tTest cannot be resolved to a type\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/core/test/NodePropertiesTest;
RuntimeInvisibleAnnotations:
Test()
public void testDifferentLoopsInnerOuter();
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\tTest cannot be resolved to a type\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/core/test/NodePropertiesTest;
RuntimeInvisibleAnnotations:
Test()
public void testGraphCost();
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\tTest cannot be resolved to a type\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/core/test/NodePropertiesTest;
RuntimeInvisibleAnnotations:
Test()
public void testExpectUntrusted();
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/core/test/NodePropertiesTest;
RuntimeInvisibleAnnotations:
Test()
public void testArrayLoad();
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\tTest cannot be resolved to a type\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/core/test/NodePropertiesTest;
RuntimeInvisibleAnnotations:
Test()
public void testArrayStore();
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\tTest cannot be resolved to a type\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/core/test/NodePropertiesTest;
RuntimeInvisibleAnnotations:
Test()
public void testFieldLoad();
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\tTest cannot be resolved to a type\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/core/test/NodePropertiesTest;
RuntimeInvisibleAnnotations:
Test()
public void testFieldStore();
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\tTest cannot be resolved to a type\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/core/test/NodePropertiesTest;
RuntimeInvisibleAnnotations:
Test()
}
SourceFile: "NodePropertiesTest.java"
NestMembers:
org.graalvm.compiler.core.test.NodePropertiesTest$GraphCostPhase org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer
InnerClasses:
private GraphCostPhase = org.graalvm.compiler.core.test.NodePropertiesTest$GraphCostPhase of org.graalvm.compiler.core.test.NodePropertiesTest
ImprovementSavingCanonicalizer = org.graalvm.compiler.core.test.NodePropertiesTest$ImprovementSavingCanonicalizer of org.graalvm.compiler.core.test.NodePropertiesTest