public class org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest extends org.graalvm.compiler.replacements.test.ArraysSubstitutionsTestBase
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest
super_class: org.graalvm.compiler.replacements.test.ArraysSubstitutionsTestBase
{
private static final int N;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 10
public static int[] intArrayCompare;
descriptor: [I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
public static int[] intArray;
descriptor: [I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
public static final int[] constantArray1;
descriptor: [I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int[] constantArray2;
descriptor: [I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int[] constantArray3;
descriptor: [I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: bipush 9
newarray 10
dup
iconst_0
iconst_1
iastore
dup
iconst_1
iconst_2
iastore
dup
iconst_2
iconst_3
iastore
dup
iconst_3
iconst_4
iastore
dup
iconst_4
iconst_5
iastore
dup
iconst_5
bipush 6
iastore
dup
bipush 6
bipush 7
iastore
dup
bipush 7
bipush 8
iastore
dup
bipush 8
bipush 9
iastore
putstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.intArrayCompare:[I
1: bipush 9
newarray 10
dup
iconst_0
iconst_1
iastore
dup
iconst_1
iconst_2
iastore
dup
iconst_2
iconst_3
iastore
dup
iconst_3
iconst_4
iastore
dup
iconst_4
iconst_5
iastore
dup
iconst_5
bipush 6
iastore
dup
bipush 6
bipush 7
iastore
dup
bipush 7
bipush 8
iastore
dup
bipush 8
bipush 9
iastore
putstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.constantArray1:[I
2: bipush 9
newarray 10
dup
iconst_0
iconst_1
iastore
dup
iconst_1
iconst_2
iastore
dup
iconst_2
iconst_3
iastore
dup
iconst_3
iconst_4
iastore
dup
iconst_4
iconst_5
iastore
dup
iconst_5
bipush 6
iastore
dup
bipush 6
bipush 7
iastore
dup
bipush 7
bipush 8
iastore
dup
bipush 8
bipush 9
iastore
putstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.constantArray2:[I
3: iconst_3
newarray 10
dup
iconst_0
iconst_1
iastore
dup
iconst_1
iconst_2
iastore
dup
iconst_2
iconst_3
iastore
putstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.constantArray3:[I
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.replacements.test.ArraysSubstitutionsTestBase.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/ArraysSubstitutionsTest;
private void testEquals(java.lang.String, java.lang.Class<?>[], org.graalvm.compiler.replacements.test.ArraysSubstitutionsTestBase$ArrayBuilder);
descriptor: (Ljava/lang/String;[Ljava/lang/Class;Lorg/graalvm/compiler/replacements/test/ArraysSubstitutionsTestBase$ArrayBuilder;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=10, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: bipush 10
anewarray java.lang.Object
astore 4
start local 4 1: bipush 10
anewarray java.lang.Object
astore 5
start local 5 2: iconst_0
istore 6
start local 6 3: iconst_0
istore 7
start local 7 4: goto 8
5: StackMap locals: org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest java.lang.String java.lang.Class[] org.graalvm.compiler.replacements.test.ArraysSubstitutionsTestBase$ArrayBuilder java.lang.Object[] java.lang.Object[] int int
StackMap stack:
aload 4
iload 6
aload 3
iload 7
iconst_0
iconst_1
invokeinterface org.graalvm.compiler.replacements.test.ArraysSubstitutionsTestBase$ArrayBuilder.newArray:(III)Ljava/lang/Object;
aastore
6: aload 5
iload 6
aload 3
iload 7
iconst_0
iconst_1
invokeinterface org.graalvm.compiler.replacements.test.ArraysSubstitutionsTestBase$ArrayBuilder.newArray:(III)Ljava/lang/Object;
aastore
7: iinc 7 1
iinc 6 1
StackMap locals:
StackMap stack:
8: iload 7
iconst_5
if_icmplt 5
end local 7 9: iconst_0
istore 7
start local 7 10: goto 14
11: StackMap locals:
StackMap stack:
aload 4
iload 6
aload 3
iload 7
iconst_0
iconst_1
invokeinterface org.graalvm.compiler.replacements.test.ArraysSubstitutionsTestBase$ArrayBuilder.newArray:(III)Ljava/lang/Object;
aastore
12: aload 5
iload 6
aload 3
iload 7
iconst_1
iconst_1
invokeinterface org.graalvm.compiler.replacements.test.ArraysSubstitutionsTestBase$ArrayBuilder.newArray:(III)Ljava/lang/Object;
aastore
13: iinc 7 1
iinc 6 1
StackMap locals:
StackMap stack:
14: iload 7
iconst_5
if_icmplt 11
end local 7 15: aload 0
aload 1
ldc Lorg/graalvm/compiler/replacements/nodes/ArrayEqualsNode;
ldc Ljava/util/Arrays;
ldc "equals"
aload 2
iconst_0
iconst_0
aload 4
aload 5
invokevirtual org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.testSubstitution:(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;ZZ[Ljava/lang/Object;[Ljava/lang/Object;)V
16: return
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 17 0 this Lorg/graalvm/compiler/replacements/test/ArraysSubstitutionsTest;
0 17 1 methodName Ljava/lang/String;
0 17 2 parameterTypes [Ljava/lang/Class;
0 17 3 builder Lorg/graalvm/compiler/replacements/test/ArraysSubstitutionsTestBase$ArrayBuilder;
1 17 4 args1 [Ljava/lang/Object;
2 17 5 args2 [Ljava/lang/Object;
3 17 6 n I
4 9 7 i I
10 15 7 i I
Signature: (Ljava/lang/String;[Ljava/lang/Class<*>;Lorg/graalvm/compiler/replacements/test/ArraysSubstitutionsTestBase$ArrayBuilder;)V
MethodParameters:
Name Flags
methodName
parameterTypes
builder
public void testEqualsBoolean();
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/replacements/test/ArraysSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public void testEqualsByte();
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/replacements/test/ArraysSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public void testEqualsChar();
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/replacements/test/ArraysSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public void testEqualsShort();
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/replacements/test/ArraysSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public void testEqualsInt();
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/replacements/test/ArraysSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public void testEqualsLong();
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/replacements/test/ArraysSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public void testEqualsNodeGVN();
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/replacements/test/ArraysSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean testEqualsNodeGVNSnippet(boolean);
descriptor: (Z)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: bipush 9
newarray 10
dup
iconst_1
iconst_2
iastore
dup
iconst_2
iconst_3
iastore
dup
iconst_3
iconst_4
iastore
dup
iconst_4
iconst_5
iastore
dup
iconst_5
bipush 6
iastore
dup
bipush 6
bipush 7
iastore
dup
bipush 7
bipush 8
iastore
dup
bipush 8
bipush 9
iastore
astore 1
start local 1 1: aload 1
putstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.intArray:[I
2: iload 0
ifeq 5
3: aload 1
iconst_0
iconst_1
iastore
4: aload 1
getstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.intArrayCompare:[I
invokestatic java.util.Arrays.equals:([I[I)Z
ireturn
5: StackMap locals: int[]
StackMap stack:
aload 1
iconst_0
iconst_1
iastore
6: aload 1
getstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.intArrayCompare:[I
invokestatic java.util.Arrays.equals:([I[I)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 b Z
1 7 1 newIntArray [I
MethodParameters:
Name Flags
b
public void testConstants();
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/replacements/test/ArraysSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean testConstantsSnippet();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=0
0: getstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.constantArray2:[I
iconst_0
bipush 10
iastore
1: getstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.constantArray1:[I
getstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.constantArray2:[I
invokestatic java.util.Arrays.equals:([I[I)Z
istore 1
2: getstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.constantArray2:[I
iconst_0
iconst_1
iastore
3: iload 1
ireturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 0
5: getstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.constantArray2:[I
iconst_0
iconst_1
iastore
6: aload 0
athrow
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
1 2 4 any
public void testCanonicalLength();
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/replacements/test/ArraysSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean testCanonicalLengthSnippet();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.constantArray1:[I
getstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.constantArray3:[I
invokestatic java.util.Arrays.equals:([I[I)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public void testCanonicalEqual();
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/replacements/test/ArraysSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean testCanonicalEqualSnippet();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.constantArray1:[I
getstatic org.graalvm.compiler.replacements.test.ArraysSubstitutionsTest.constantArray1:[I
invokestatic java.util.Arrays.equals:([I[I)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public void testVirtualEqual();
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/replacements/test/ArraysSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean testVirtualEqualSnippet();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: iconst_4
newarray 10
dup
iconst_0
iconst_1
iastore
dup
iconst_1
iconst_2
iastore
dup
iconst_2
iconst_3
iastore
dup
iconst_3
iconst_4
iastore
astore 0
start local 0 1: iconst_4
newarray 10
dup
iconst_0
iconst_1
iastore
dup
iconst_1
iconst_2
iastore
dup
iconst_2
iconst_3
iastore
dup
iconst_3
iconst_4
iastore
astore 1
start local 1 2: aload 0
aload 1
invokestatic java.util.Arrays.equals:([I[I)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 array1 [I
2 3 1 array2 [I
public void testVirtualNotEqual();
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/replacements/test/ArraysSubstitutionsTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean testVirtualNotEqualSnippet(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: iconst_4
newarray 10
dup
iconst_0
iconst_1
iastore
dup
iconst_1
iconst_2
iastore
dup
iconst_2
bipush 100
iastore
dup
iconst_3
iload 0
iastore
astore 1
start local 1 1: iconst_4
newarray 10
dup
iconst_0
iconst_1
iastore
dup
iconst_1
iconst_2
iastore
dup
iconst_2
iconst_3
iastore
dup
iconst_3
iconst_4
iastore
astore 2
start local 2 2: aload 1
aload 2
invokestatic java.util.Arrays.equals:([I[I)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 x I
1 3 1 array1 [I
2 3 2 array2 [I
MethodParameters:
Name Flags
x
}
SourceFile: "ArraysSubstitutionsTest.java"
InnerClasses:
abstract ArrayBuilder = org.graalvm.compiler.replacements.test.ArraysSubstitutionsTestBase$ArrayBuilder of org.graalvm.compiler.replacements.test.ArraysSubstitutionsTestBase