public class org.graalvm.compiler.core.test.DeepUnrollingTest extends org.graalvm.compiler.core.test.SubprocessTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.core.test.DeepUnrollingTest
super_class: org.graalvm.compiler.core.test.SubprocessTest
{
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.SubprocessTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/test/DeepUnrollingTest;
public static void loops();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=0
0: iconst_0
istore 0
start local 0 1: goto 15
2: StackMap locals: int
StackMap stack:
iconst_2
istore 1
start local 1 3: goto 13
4: StackMap locals: int
StackMap stack:
iconst_1
istore 2
start local 2 5: goto 11
6: StackMap locals: int
StackMap stack:
iconst_1
istore 3
start local 3 7: goto 9
StackMap locals: int
StackMap stack:
8: iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
iload 2
if_icmple 8
end local 3 10: iinc 2 1
StackMap locals:
StackMap stack:
11: iload 2
iload 1
if_icmple 6
end local 2 12: iinc 1 1
StackMap locals:
StackMap stack:
13: iload 1
bipush 30
if_icmplt 4
end local 1 14: iinc 0 1
StackMap locals:
StackMap stack:
15: iload 0
bipush 6
if_icmplt 2
end local 0 16: return
LocalVariableTable:
Start End Slot Name Signature
1 16 0 i I
3 14 1 n I
5 12 2 j I
7 10 3 k I
public static int reference(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iload 0
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 8
3: StackMap locals: int int
StackMap stack:
iload 2
iconst_2
irem
ifne 6
4: iload 2
iconst_2
idiv
istore 2
5: goto 7
6: StackMap locals:
StackMap stack:
iconst_3
iload 2
imul
iconst_1
iadd
istore 2
7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 1
if_icmplt 3
end local 3 9: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 a I
0 10 1 n I
1 10 2 v I
2 9 3 i I
MethodParameters:
Name Flags
a
n
public void loopTest();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=1
start local 0 0: aload 0
ldc "reference"
invokevirtual org.graalvm.compiler.core.test.DeepUnrollingTest.time:(Ljava/lang/String;)J
pop2
1: aload 0
ldc "loops"
invokevirtual org.graalvm.compiler.core.test.DeepUnrollingTest.time:(Ljava/lang/String;)J
pop2
2: aload 0
ldc "reference"
invokevirtual org.graalvm.compiler.core.test.DeepUnrollingTest.time:(Ljava/lang/String;)J
lstore 1
start local 1 3: aload 0
ldc "loops"
invokevirtual org.graalvm.compiler.core.test.DeepUnrollingTest.time:(Ljava/lang/String;)J
lstore 3
start local 3 4: ldc "Compilation of the loop nest is too slow"
lload 3
lload 1
ldc 45
lmul
lcmp
ifge 5
iconst_1
goto 6
StackMap locals: org.graalvm.compiler.core.test.DeepUnrollingTest long long
StackMap stack: java.lang.String
5: iconst_0
StackMap locals: org.graalvm.compiler.core.test.DeepUnrollingTest long long
StackMap stack: java.lang.String int
6: invokestatic org.graalvm.compiler.core.test.DeepUnrollingTest.assertTrue:(Ljava/lang/String;Z)V
7: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/graalvm/compiler/core/test/DeepUnrollingTest;
3 8 1 reference J
4 8 3 loops J
public long time(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.graalvm.compiler.core.test.DeepUnrollingTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 2
start local 2 1: new org.graalvm.compiler.options.OptionValues
dup
invokestatic org.graalvm.compiler.core.test.DeepUnrollingTest.getInitialOptions:()Lorg/graalvm/compiler/options/OptionValues;
2: getstatic org.graalvm.compiler.core.common.GraalOptions.FullUnroll:Lorg/graalvm/compiler/options/OptionKey;
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
3: iconst_0
anewarray java.lang.Object
invokespecial org.graalvm.compiler.options.OptionValues.<init>:(Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/options/OptionKey;Ljava/lang/Object;[Ljava/lang/Object;)V
astore 3
start local 3 4: invokestatic java.lang.System.nanoTime:()J
lstore 4
start local 4 5: aload 0
aload 2
aconst_null
iconst_1
iconst_0
aload 3
invokevirtual org.graalvm.compiler.core.test.DeepUnrollingTest.getCode:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Lorg/graalvm/compiler/nodes/StructuredGraph;ZZLorg/graalvm/compiler/options/OptionValues;)Ljdk/vm/ci/code/InstalledCode;
pop
6: invokestatic java.lang.System.nanoTime:()J
lstore 6
start local 6 7: getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
lload 6
lload 4
lsub
invokevirtual java.util.concurrent.TimeUnit.toMillis:(J)J
lreturn
end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/graalvm/compiler/core/test/DeepUnrollingTest;
0 8 1 methodName Ljava/lang/String;
1 8 2 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
4 8 3 options Lorg/graalvm/compiler/options/OptionValues;
5 8 4 start J
7 8 6 end J
MethodParameters:
Name Flags
methodName
public void test();
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/DeepUnrollingTest;
Exceptions:
throws java.io.IOException, java.lang.InterruptedException
RuntimeInvisibleAnnotations:
Test()
}
SourceFile: "DeepUnrollingTest.java"