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
{
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;
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
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
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 1: 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 2: aload 4
invokevirtual java.lang.Class.getDeclaredMethods:()[Ljava/lang/reflect/Method;
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 6
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:
3: aload 9
iload 7
aaload
astore 6
start local 6 4: 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 5: iinc 7 1
StackMap locals:
StackMap stack:
6: iload 7
iload 8
if_icmplt 3
7: 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 8 0 this Lorg/graalvm/compiler/replacements/test/classfile/ClassfileBytecodeProviderTest;
0 8 1 metaAccess Ljdk/vm/ci/meta/MetaAccessProvider;
0 8 2 snippetReflection Lorg/graalvm/compiler/api/replacements/SnippetReflectionProvider;
0 8 3 className Ljava/lang/String;
1 8 4 c Ljava/lang/Class<*>;
2 8 5 cbp Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;
4 5 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 5
2: new org.graalvm.compiler.bytecode.ResolvedJavaMethodBytecode
dup
aload 3
invokespecial org.graalvm.compiler.bytecode.ResolvedJavaMethodBytecode.<init>:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
astore 4
start local 4 3: 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 5
start local 5 4: new org.graalvm.compiler.replacements.test.classfile.ClassfileBytecodeProviderTest$BytecodeComparer
dup
aload 4
aload 5
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 5: 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 6 0 cbp Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;
0 6 1 metaAccess Ljdk/vm/ci/meta/MetaAccessProvider;
0 6 2 executable Ljava/lang/reflect/Executable;
1 6 3 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
3 5 4 expected Lorg/graalvm/compiler/bytecode/ResolvedJavaMethodBytecode;
4 5 5 actual Lorg/graalvm/compiler/bytecode/Bytecode;
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.Throwable
astore 2
start local 2 3: 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 4 0 cbp Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;
0 4 1 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
3 4 2 e Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 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