public class org.graalvm.compiler.core.test.BoxingEliminationTest 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.BoxingEliminationTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
private static final java.lang.Short s;
descriptor: Ljava/lang/Short;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private org.graalvm.compiler.nodes.StructuredGraph graph;
descriptor: Lorg/graalvm/compiler/nodes/StructuredGraph;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_2
invokestatic java.lang.Short.valueOf:(S)Ljava/lang/Short;
putstatic org.graalvm.compiler.core.test.BoxingEliminationTest.s:Ljava/lang/Short;
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/BoxingEliminationTest;
public static short referenceSnippet1();
descriptor: ()S
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_1
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static short referenceSnippet2();
descriptor: ()S
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_2
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.Short boxedShort();
descriptor: ()Ljava/lang/Short;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_1
invokestatic java.lang.Short.valueOf:(S)Ljava/lang/Short;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.Object boxedObjectShort();
descriptor: ()Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_1
invokestatic java.lang.Short.valueOf:(S)Ljava/lang/Short;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.Object boxedObjectInteger();
descriptor: ()Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.Integer boxedInteger();
descriptor: ()Ljava/lang/Integer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.Short constantBoxedShort();
descriptor: ()Ljava/lang/Short;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.graalvm.compiler.core.test.BoxingEliminationTest.s:Ljava/lang/Short;
areturn
LocalVariableTable:
Start End Slot Name Signature
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/core/test/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static short test1Snippet();
descriptor: ()S
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.graalvm.compiler.core.test.BoxingEliminationTest.boxedShort:()Ljava/lang/Short;
invokevirtual java.lang.Short.shortValue:()S
ireturn
LocalVariableTable:
Start End Slot Name Signature
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/core/test/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static short test2Snippet();
descriptor: ()S
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.graalvm.compiler.core.test.BoxingEliminationTest.boxedObjectShort:()Ljava/lang/Object;
checkcast java.lang.Short
invokevirtual java.lang.Short.shortValue:()S
ireturn
LocalVariableTable:
Start End Slot Name Signature
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 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/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static short test3Snippet();
descriptor: ()S
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: invokestatic org.graalvm.compiler.core.test.BoxingEliminationTest.boxedShort:()Ljava/lang/Short;
invokevirtual java.lang.Short.shortValue:()S
istore 0
start local 0 1: iload 0
ifge 3
2: invokestatic org.graalvm.compiler.core.test.BoxingEliminationTest.boxedShort:()Ljava/lang/Short;
invokevirtual java.lang.Short.shortValue:()S
istore 0
3: StackMap locals: int
StackMap stack:
iload 0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 b S
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/core/test/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static short test4Snippet();
descriptor: ()S
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.graalvm.compiler.core.test.BoxingEliminationTest.constantBoxedShort:()Ljava/lang/Short;
invokevirtual java.lang.Short.shortValue:()S
ireturn
LocalVariableTable:
Start End Slot Name Signature
public void testLoop();
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/core/test/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Ignore()
Test()
public static int testLoopSnippet(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 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
start local 2 1: iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 3
start local 3 2: goto 5
3: StackMap locals: java.lang.Integer java.lang.Integer
StackMap stack:
aload 2
invokevirtual java.lang.Integer.intValue:()I
aload 3
invokevirtual java.lang.Integer.intValue:()I
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
4: aload 3
invokevirtual java.lang.Integer.intValue:()I
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 3
StackMap locals:
StackMap stack:
5: aload 3
invokevirtual java.lang.Integer.intValue:()I
iload 0
if_icmplt 3
end local 3 6: aload 2
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 n I
0 7 1 a I
1 7 2 sum Ljava/lang/Integer;
2 6 3 i Ljava/lang/Integer;
MethodParameters:
Name Flags
n
a
public static int referenceLoopSnippet(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 1
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 5
3: StackMap locals: int int
StackMap stack:
iload 2
iload 3
iadd
istore 2
4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 0
if_icmplt 3
end local 3 6: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 n I
0 7 1 a I
1 7 2 sum I
2 6 3 i I
MethodParameters:
Name Flags
n
a
public void testLoop2();
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/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static int testLoop2Snippet(int, java.lang.Integer);
descriptor: (ILjava/lang/Integer;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
astore 2
start local 2 1: iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 3
start local 3 2: goto 5
3: StackMap locals: java.lang.Integer java.lang.Integer
StackMap stack:
aload 2
invokevirtual java.lang.Integer.intValue:()I
aload 3
invokevirtual java.lang.Integer.intValue:()I
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
4: aload 3
invokevirtual java.lang.Integer.intValue:()I
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 3
StackMap locals:
StackMap stack:
5: aload 3
invokevirtual java.lang.Integer.intValue:()I
iload 0
if_icmplt 3
end local 3 6: aload 2
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 n I
0 7 1 a Ljava/lang/Integer;
1 7 2 sum Ljava/lang/Integer;
2 6 3 i Ljava/lang/Integer;
MethodParameters:
Name Flags
n
a
public static int referenceLoop2Snippet(int, java.lang.Integer);
descriptor: (ILjava/lang/Integer;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: iload 0
ifgt 3
1: aload 1
astore 2
start local 2 2: goto 10
end local 2 3: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Integer.intValue:()I
istore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 8
6: StackMap locals: int java.lang.Integer top int int
StackMap stack:
iload 3
iload 4
iadd
istore 3
7: iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
iload 0
if_icmplt 6
end local 4 9: iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
end local 3 start local 2 10: StackMap locals: int java.lang.Integer java.lang.Integer
StackMap stack:
aload 2
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 n I
0 11 1 a Ljava/lang/Integer;
2 3 2 sum0 Ljava/lang/Integer;
10 11 2 sum0 Ljava/lang/Integer;
4 10 3 sum I
5 9 4 i I
MethodParameters:
Name Flags
n
a
public static int referenceIfSnippet(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: iload 0
ifge 3
1: iconst_2
istore 1
start local 1 2: goto 4
end local 1 3: StackMap locals:
StackMap stack:
iconst_1
istore 1
start local 1 4: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 a I
2 3 1 result I
4 5 1 result I
MethodParameters:
Name Flags
a
public void testIf();
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/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static int testIfSnippet(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: iload 0
ifge 3
1: invokestatic org.graalvm.compiler.core.test.BoxingEliminationTest.boxedInteger:()Ljava/lang/Integer;
astore 1
start local 1 2: goto 4
end local 1 3: StackMap locals:
StackMap stack:
invokestatic org.graalvm.compiler.core.test.BoxingEliminationTest.boxedObjectInteger:()Ljava/lang/Object;
checkcast java.lang.Integer
astore 1
start local 1 4: StackMap locals: java.lang.Integer
StackMap stack:
aload 1
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 a I
2 3 1 result Ljava/lang/Integer;
4 5 1 result Ljava/lang/Integer;
MethodParameters:
Name Flags
a
public void testComparison();
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/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean testComparison1Snippet(int, int);
descriptor: (II)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
iload 1
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 a I
0 2 1 b I
MethodParameters:
Name Flags
a
b
public static boolean testComparison2Snippet(int, int);
descriptor: (II)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
start local 2 1: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 3
start local 3 2: aload 2
aload 3
if_acmpne 3
iconst_1
ireturn
StackMap locals: java.lang.Integer java.lang.Integer
StackMap stack:
3: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 a I
0 4 1 b I
1 4 2 x Ljava/lang/Integer;
2 4 3 y Ljava/lang/Integer;
MethodParameters:
Name Flags
a
b
public static boolean referenceComparisonSnippet(int, int);
descriptor: (II)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 0
iload 1
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 a I
0 2 1 b I
MethodParameters:
Name Flags
a
b
public void testLateCanonicalization();
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/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean testLateCanonicalizationSnippet(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 1
start local 1 1: sipush 1000
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
start local 2 2: aload 1
aload 2
if_acmpne 3
iconst_1
ireturn
StackMap locals: java.lang.Integer java.lang.Integer
StackMap stack:
3: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 a I
1 4 1 x Ljava/lang/Integer;
2 4 2 y Ljava/lang/Integer;
MethodParameters:
Name Flags
a
public static boolean referenceLateCanonicalizationSnippet(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
sipush 1000
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 a I
MethodParameters:
Name Flags
a
public static java.lang.Integer materializeReferenceSnippet(int);
descriptor: (I)Ljava/lang/Integer;
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;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 a I
MethodParameters:
Name Flags
a
public static java.lang.Integer materializeTest1Snippet(int);
descriptor: (I)Ljava/lang/Integer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 1
start local 1 1: aload 1
invokevirtual java.lang.Integer.intValue:()I
iload 0
if_icmpne 3
2: aload 1
areturn
3: StackMap locals: java.lang.Integer
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 a I
1 4 1 v Ljava/lang/Integer;
MethodParameters:
Name Flags
a
public void materializeTest1();
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/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static int intTest1Snippet();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public void intTest1();
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/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static int mergeTest1Snippet(boolean, int, int);
descriptor: (ZII)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 0
ifeq 3
1: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 3
start local 3 2: goto 4
end local 3 3: StackMap locals:
StackMap stack:
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 3
start local 3 4: StackMap locals: java.lang.Integer
StackMap stack:
aload 3
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 d Z
0 5 1 a I
0 5 2 b I
2 3 3 v Ljava/lang/Integer;
4 5 3 v Ljava/lang/Integer;
MethodParameters:
Name Flags
d
a
b
public void mergeTest1();
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/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean equalsTest1Snippet(int, int);
descriptor: (II)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
start local 2 1: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 3
start local 3 2: aload 2
aload 3
if_acmpne 3
iconst_1
ireturn
StackMap locals: java.lang.Integer java.lang.Integer
StackMap stack:
3: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 x I
0 4 1 y I
1 4 2 a Ljava/lang/Integer;
2 4 3 b Ljava/lang/Integer;
MethodParameters:
Name Flags
x
y
public void equalsTest1();
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/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static int loopTest1Snippet(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: iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 5
3: StackMap locals: java.lang.Integer int
StackMap stack:
aload 2
invokevirtual java.lang.Integer.intValue:()I
iload 1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 0
if_icmplt 3
end local 3 6: aload 2
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 n I
0 7 1 v I
1 7 2 sum Ljava/lang/Integer;
2 6 3 i I
MethodParameters:
Name Flags
n
v
public void loopTest1();
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/BoxingEliminationTest;
RuntimeInvisibleAnnotations:
Test()
final org.graalvm.compiler.nodes.ValueNode getResult(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/graalvm/compiler/nodes/ValueNode;
flags: (0x0010) ACC_FINAL
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.graalvm.compiler.core.test.BoxingEliminationTest.processMethod:(Ljava/lang/String;)V
1: aload 0
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 0
getfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
getstatic org.graalvm.compiler.nodes.ReturnNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:(Lorg/graalvm/compiler/graph/NodeClass;)Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.count:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual org.graalvm.compiler.core.test.BoxingEliminationTest.assertDeepEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
2: aload 0
getfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
getstatic org.graalvm.compiler.nodes.ReturnNode.TYPE:Lorg/graalvm/compiler/graph/NodeClass;
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:(Lorg/graalvm/compiler/graph/NodeClass;)Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.first:()Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.nodes.ReturnNode
invokevirtual org.graalvm.compiler.nodes.ReturnNode.result:()Lorg/graalvm/compiler/nodes/ValueNode;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/core/test/BoxingEliminationTest;
0 3 1 snippet Ljava/lang/String;
MethodParameters:
Name Flags
snippet
private void processMethod(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 0
aload 1
getstatic org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions.NO:Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
invokevirtual org.graalvm.compiler.core.test.BoxingEliminationTest.parseEager:(Ljava/lang/String;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;)Lorg/graalvm/compiler/nodes/StructuredGraph;
putfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
1: aload 0
invokevirtual org.graalvm.compiler.core.test.BoxingEliminationTest.getDefaultHighTierContext:()Lorg/graalvm/compiler/phases/tiers/HighTierContext;
astore 2
start local 2 2: new org.graalvm.compiler.phases.common.inlining.InliningPhase
dup
new org.graalvm.compiler.phases.common.CanonicalizerPhase
dup
invokespecial org.graalvm.compiler.phases.common.CanonicalizerPhase.<init>:()V
invokespecial org.graalvm.compiler.phases.common.inlining.InliningPhase.<init>:(Lorg/graalvm/compiler/phases/common/CanonicalizerPhase;)V
aload 0
getfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
aload 2
invokevirtual org.graalvm.compiler.phases.common.inlining.InliningPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
3: new org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase
dup
iconst_0
new org.graalvm.compiler.phases.common.CanonicalizerPhase
dup
invokespecial org.graalvm.compiler.phases.common.CanonicalizerPhase.<init>:()V
invokespecial org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase.<init>:(ZLorg/graalvm/compiler/phases/common/CanonicalizerPhase;)V
aload 0
getfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
aload 2
invokevirtual org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/core/test/BoxingEliminationTest;
0 5 1 snippet Ljava/lang/String;
2 5 2 context Lorg/graalvm/compiler/phases/tiers/HighTierContext;
MethodParameters:
Name Flags
snippet final
private void compareGraphs(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
iconst_0
invokevirtual org.graalvm.compiler.core.test.BoxingEliminationTest.compareGraphs:(Ljava/lang/String;Ljava/lang/String;ZZ)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/core/test/BoxingEliminationTest;
0 2 1 snippet Ljava/lang/String;
0 2 2 referenceSnippet Ljava/lang/String;
MethodParameters:
Name Flags
snippet final
referenceSnippet final
private void compareGraphs(java.lang.String, java.lang.String, boolean, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/String;ZZ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 0
aload 1
getstatic org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions.NO:Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
invokevirtual org.graalvm.compiler.core.test.BoxingEliminationTest.parseEager:(Ljava/lang/String;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;)Lorg/graalvm/compiler/nodes/StructuredGraph;
putfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
1: aload 0
invokevirtual org.graalvm.compiler.core.test.BoxingEliminationTest.getDefaultHighTierContext:()Lorg/graalvm/compiler/phases/tiers/HighTierContext;
astore 5
start local 5 2: new org.graalvm.compiler.phases.common.CanonicalizerPhase
dup
invokespecial org.graalvm.compiler.phases.common.CanonicalizerPhase.<init>:()V
astore 6
start local 6 3: aload 6
aload 0
getfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
aload 5
invokevirtual org.graalvm.compiler.phases.common.CanonicalizerPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
4: new org.graalvm.compiler.phases.common.inlining.InliningPhase
dup
new org.graalvm.compiler.phases.common.CanonicalizerPhase
dup
invokespecial org.graalvm.compiler.phases.common.CanonicalizerPhase.<init>:()V
invokespecial org.graalvm.compiler.phases.common.inlining.InliningPhase.<init>:(Lorg/graalvm/compiler/phases/common/CanonicalizerPhase;)V
aload 0
getfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
aload 5
invokevirtual org.graalvm.compiler.phases.common.inlining.InliningPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
5: iload 3
ifeq 7
6: new org.graalvm.compiler.loop.phases.LoopPeelingPhase
dup
new org.graalvm.compiler.loop.DefaultLoopPolicies
dup
invokespecial org.graalvm.compiler.loop.DefaultLoopPolicies.<init>:()V
invokespecial org.graalvm.compiler.loop.phases.LoopPeelingPhase.<init>:(Lorg/graalvm/compiler/loop/LoopPolicies;)V
aload 0
getfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
aload 5
invokevirtual org.graalvm.compiler.loop.phases.LoopPeelingPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
7: StackMap locals: org.graalvm.compiler.phases.tiers.HighTierContext org.graalvm.compiler.phases.common.CanonicalizerPhase
StackMap stack:
new org.graalvm.compiler.phases.common.DeadCodeEliminationPhase
dup
invokespecial org.graalvm.compiler.phases.common.DeadCodeEliminationPhase.<init>:()V
aload 0
getfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
invokevirtual org.graalvm.compiler.phases.common.DeadCodeEliminationPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;)V
8: aload 6
aload 0
getfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
aload 5
invokevirtual org.graalvm.compiler.phases.common.CanonicalizerPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
9: new org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase
dup
iconst_0
aload 6
invokespecial org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase.<init>:(ZLorg/graalvm/compiler/phases/common/CanonicalizerPhase;)V
aload 0
getfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
aload 5
invokevirtual org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
10: new org.graalvm.compiler.phases.common.DeadCodeEliminationPhase
dup
invokespecial org.graalvm.compiler.phases.common.DeadCodeEliminationPhase.<init>:()V
aload 0
getfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
invokevirtual org.graalvm.compiler.phases.common.DeadCodeEliminationPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;)V
11: aload 6
aload 0
getfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
aload 5
invokevirtual org.graalvm.compiler.phases.common.CanonicalizerPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
12: aload 0
aload 2
getstatic org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions.YES:Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
invokevirtual org.graalvm.compiler.core.test.BoxingEliminationTest.parseEager:(Ljava/lang/String;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;)Lorg/graalvm/compiler/nodes/StructuredGraph;
astore 7
start local 7 13: new org.graalvm.compiler.phases.common.inlining.InliningPhase
dup
new org.graalvm.compiler.phases.common.CanonicalizerPhase
dup
invokespecial org.graalvm.compiler.phases.common.CanonicalizerPhase.<init>:()V
invokespecial org.graalvm.compiler.phases.common.inlining.InliningPhase.<init>:(Lorg/graalvm/compiler/phases/common/CanonicalizerPhase;)V
aload 7
aload 5
invokevirtual org.graalvm.compiler.phases.common.inlining.InliningPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
14: new org.graalvm.compiler.phases.common.DeadCodeEliminationPhase
dup
invokespecial org.graalvm.compiler.phases.common.DeadCodeEliminationPhase.<init>:()V
aload 7
invokevirtual org.graalvm.compiler.phases.common.DeadCodeEliminationPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;)V
15: new org.graalvm.compiler.phases.common.CanonicalizerPhase
dup
invokespecial org.graalvm.compiler.phases.common.CanonicalizerPhase.<init>:()V
aload 7
aload 5
invokevirtual org.graalvm.compiler.phases.common.CanonicalizerPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
16: aload 0
aload 7
aload 0
getfield org.graalvm.compiler.core.test.BoxingEliminationTest.graph:Lorg/graalvm/compiler/nodes/StructuredGraph;
iload 4
iconst_1
invokevirtual org.graalvm.compiler.core.test.BoxingEliminationTest.assertEquals:(Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/nodes/StructuredGraph;ZZ)V
17: return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/graalvm/compiler/core/test/BoxingEliminationTest;
0 18 1 snippet Ljava/lang/String;
0 18 2 referenceSnippet Ljava/lang/String;
0 18 3 loopPeeling Z
0 18 4 excludeVirtual Z
2 18 5 context Lorg/graalvm/compiler/phases/tiers/HighTierContext;
3 18 6 canonicalizer Lorg/graalvm/compiler/phases/common/CanonicalizerPhase;
13 18 7 referenceGraph Lorg/graalvm/compiler/nodes/StructuredGraph;
MethodParameters:
Name Flags
snippet final
referenceSnippet final
loopPeeling final
excludeVirtual final
}
SourceFile: "BoxingEliminationTest.java"
InnerClasses:
public final AllowAssumptions = org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions of org.graalvm.compiler.nodes.StructuredGraph