public class org.graalvm.compiler.replacements.test.classfile.ClassfileBytecodeProviderTest 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.replacements.test.classfile.ClassfileBytecodeProviderTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
private static final int CLASSES_PER_JAR;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 250
public static final java.lang.String JRT_CLASS_PATH_ENTRY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "<jrt>"
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/replacements/test/classfile/ClassfileBytecodeProviderTest;
public void checkJavaAgent();
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\tBefore cannot be resolved to a type\n\tAssume 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/classfile/ClassfileBytecodeProviderTest;
RuntimeInvisibleAnnotations:
Before()
private static boolean shouldProcess(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 4
1: new java.io.File
dup
aload 0
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.getName:()Ljava/lang/String;
astore 1
start local 1 2: aload 1
ldc "jvmci"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 3
aload 1
ldc "graal"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 3
iconst_0
ireturn
StackMap locals: java.lang.String
StackMap stack:
3: iconst_1
ireturn
end local 1 4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 classpathEntry Ljava/lang/String;
2 4 1 name Ljava/lang/String;
MethodParameters:
Name Flags
classpathEntry
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 problems: \n\tTest cannot be resolved to a type\n\tAssume cannot be resolved\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/replacements/test/classfile/ClassfileBytecodeProviderTest;
RuntimeInvisibleAnnotations:
Test()
private static boolean isInNativeImage(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "org.graalvm.nativeimage"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 className Ljava/lang/String;
MethodParameters:
Name Flags
className
private static boolean isGSON(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "com.google.gson"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 className Ljava/lang/String;
MethodParameters:
Name Flags
className
protected void checkClass(jdk.vm.ci.meta.MetaAccessProvider, org.graalvm.compiler.api.replacements.SnippetReflectionProvider, java.lang.String);
descriptor: (Ljdk/vm/ci/meta/MetaAccessProvider;Lorg/graalvm/compiler/api/replacements/SnippetReflectionProvider;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ldc "jdk.vm.ci.services.JVMCIClassLoaderFactory"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 3
iconst_1
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
astore 4
start local 4 3: new org.graalvm.compiler.replacements.classfile.ClassfileBytecodeProvider
dup
aload 1
aload 2
invokespecial org.graalvm.compiler.replacements.classfile.ClassfileBytecodeProvider.<init>:(Ljdk/vm/ci/meta/MetaAccessProvider;Lorg/graalvm/compiler/api/replacements/SnippetReflectionProvider;)V
astore 5
start local 5 4: aload 4
invokevirtual java.lang.Class.getDeclaredMethods:()[Ljava/lang/reflect/Method;
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 8
StackMap locals: org.graalvm.compiler.replacements.test.classfile.ClassfileBytecodeProviderTest jdk.vm.ci.meta.MetaAccessProvider org.graalvm.compiler.api.replacements.SnippetReflectionProvider java.lang.String java.lang.Class org.graalvm.compiler.replacements.classfile.ClassfileBytecodeProvider top int int java.lang.reflect.Method[]
StackMap stack:
5: aload 9
iload 7
aaload
astore 6
start local 6 6: aload 5
aload 1
aload 6
invokestatic org.graalvm.compiler.replacements.test.classfile.ClassfileBytecodeProviderTest.checkMethod:(Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;Ljdk/vm/ci/meta/MetaAccessProvider;Ljava/lang/reflect/Executable;)V
end local 6 7: iinc 7 1
StackMap locals:
StackMap stack:
8: iload 7
iload 8
if_icmplt 5
9: return
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 10 0 this Lorg/graalvm/compiler/replacements/test/classfile/ClassfileBytecodeProviderTest;
0 10 1 metaAccess Ljdk/vm/ci/meta/MetaAccessProvider;
0 10 2 snippetReflection Lorg/graalvm/compiler/api/replacements/SnippetReflectionProvider;
0 10 3 className Ljava/lang/String;
3 10 4 c Ljava/lang/Class<*>;
4 10 5 cbp Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;
6 7 6 method Ljava/lang/reflect/Method;
Exceptions:
throws java.lang.ClassNotFoundException
MethodParameters:
Name Flags
metaAccess
snippetReflection
className
private static void checkMethod(org.graalvm.compiler.replacements.classfile.ClassfileBytecodeProvider, jdk.vm.ci.meta.MetaAccessProvider, java.lang.reflect.Executable);
descriptor: (Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;Ljdk/vm/ci/meta/MetaAccessProvider;Ljava/lang/reflect/Executable;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaMethod:(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 3
start local 3 1: aload 3
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.hasBytecodes:()Z
ifeq 6
2: aload 0
aload 3
invokestatic org.graalvm.compiler.replacements.test.classfile.ClassfileBytecodeProviderTest.getBytecode:(Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;Ljdk/vm/ci/meta/ResolvedJavaMethod;)Lorg/graalvm/compiler/bytecode/Bytecode;
astore 4
start local 4 3: aload 4
ifnull 6
4: new org.graalvm.compiler.bytecode.ResolvedJavaMethodBytecode
dup
aload 3
invokespecial org.graalvm.compiler.bytecode.ResolvedJavaMethodBytecode.<init>:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
astore 5
start local 5 5: new org.graalvm.compiler.replacements.test.classfile.ClassfileBytecodeProviderTest$BytecodeComparer
dup
aload 5
aload 4
invokespecial org.graalvm.compiler.replacements.test.classfile.ClassfileBytecodeProviderTest$BytecodeComparer.<init>:(Lorg/graalvm/compiler/bytecode/Bytecode;Lorg/graalvm/compiler/bytecode/Bytecode;)V
invokevirtual org.graalvm.compiler.replacements.test.classfile.ClassfileBytecodeProviderTest$BytecodeComparer.compare:()V
end local 5 end local 4 6: StackMap locals: jdk.vm.ci.meta.ResolvedJavaMethod
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 cbp Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;
0 7 1 metaAccess Ljdk/vm/ci/meta/MetaAccessProvider;
0 7 2 executable Ljava/lang/reflect/Executable;
1 7 3 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
3 6 4 actual Lorg/graalvm/compiler/bytecode/Bytecode;
5 6 5 expected Lorg/graalvm/compiler/bytecode/ResolvedJavaMethodBytecode;
MethodParameters:
Name Flags
cbp
metaAccess
executable
protected static org.graalvm.compiler.bytecode.Bytecode getBytecode(org.graalvm.compiler.replacements.classfile.ClassfileBytecodeProvider, jdk.vm.ci.meta.ResolvedJavaMethod);
descriptor: (Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;Ljdk/vm/ci/meta/ResolvedJavaMethod;)Lorg/graalvm/compiler/bytecode/Bytecode;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=8, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.graalvm.compiler.replacements.classfile.ClassfileBytecodeProvider.getBytecode:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Lorg/graalvm/compiler/bytecode/Bytecode;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.UnsupportedClassVersionError
pop
3: aconst_null
areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 5: new java.lang.AssertionError
dup
ldc "Error getting bytecode for %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
ldc "%H.%n(%p)"
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.format:(Ljava/lang/String;)Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 2
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 cbp Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;
0 6 1 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
5 6 2 e Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.UnsupportedClassVersionError
0 1 4 Class java.lang.Throwable
MethodParameters:
Name Flags
cbp
method
}
SourceFile: "ClassfileBytecodeProviderTest.java"
NestMembers:
org.graalvm.compiler.replacements.test.classfile.ClassfileBytecodeProviderTest$BytecodeComparer
InnerClasses:
BytecodeComparer = org.graalvm.compiler.replacements.test.classfile.ClassfileBytecodeProviderTest$BytecodeComparer of org.graalvm.compiler.replacements.test.classfile.ClassfileBytecodeProviderTest