public class org.graalvm.compiler.core.test.ArrayLengthProviderTest 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.ArrayLengthProviderTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
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/ArrayLengthProviderTest;
public static test0Snippet(java.util.ArrayList<?>, boolean);
descriptor: (Ljava/util/ArrayList;Z)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
invokestatic org.graalvm.compiler.core.test.ArrayLengthProviderTest.toArray:(Ljava/util/List;)[Ljava/lang/Object;
astore 2
start local 2 1: aload 2
arraylength
iconst_1
if_icmpge 3
2: aconst_null
areturn
3: StackMap locals: java.lang.Object[]
StackMap stack:
aload 2
iconst_0
aaload
instanceof java.lang.String
ifne 4
iload 1
ifeq 0
4: StackMap locals:
StackMap stack:
aload 2
arraylength
iconst_1
if_icmpge 6
5: aconst_null
areturn
6: StackMap locals:
StackMap stack:
aload 2
iconst_0
aaload
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 list Ljava/util/ArrayList<*>;
0 7 1 a Z
1 7 2 array [Ljava/lang/Object;
Signature: (Ljava/util/ArrayList<*>;Z)Ljava/lang/Object;
MethodParameters:
Name Flags
list
a
public static test1Snippet(java.util.ArrayList<?>, boolean, boolean);
descriptor: (Ljava/util/ArrayList;ZZ)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: StackMap locals:
StackMap stack:
aload 0
invokestatic org.graalvm.compiler.core.test.ArrayLengthProviderTest.toArray:(Ljava/util/List;)[Ljava/lang/Object;
astore 3
start local 3 1: iload 1
ifne 2
iload 2
ifeq 0
2: StackMap locals: java.lang.Object[]
StackMap stack:
aload 3
arraylength
iconst_1
if_icmpge 4
3: aconst_null
areturn
4: StackMap locals:
StackMap stack:
aload 3
iconst_0
aaload
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 list Ljava/util/ArrayList<*>;
0 5 1 a Z
0 5 2 b Z
1 5 3 array [Ljava/lang/Object;
Signature: (Ljava/util/ArrayList<*>;ZZ)Ljava/lang/Object;
MethodParameters:
Name Flags
list
a
b
public static [] toArray(java.util.List<?>);
descriptor: (Ljava/util/List;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.util.List.size:()I
anewarray java.lang.Object
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 list Ljava/util/List<*>;
Signature: (Ljava/util/List<*>;)[Ljava/lang/Object;
MethodParameters:
Name Flags
list
public void test0();
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/ArrayLengthProviderTest;
RuntimeInvisibleAnnotations:
Test()
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/ArrayLengthProviderTest;
RuntimeInvisibleAnnotations:
Test()
}
SourceFile: "ArrayLengthProviderTest.java"