public class org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests 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.hotspot.test.ConstantPoolSubstitutionsTests
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
private static final java.lang.String PACKAGE_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String PACKAGE_NAME_INTERNAL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests$AsmLoader LOADER;
descriptor: Lorg/graalvm/compiler/hotspot/test/ConstantPoolSubstitutionsTests$AsmLoader;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/hotspot/test/ConstantPoolSubstitutionsTests;
invokevirtual java.lang.Class.getPackage:()Ljava/lang/Package;
invokevirtual java.lang.Package.getName:()Ljava/lang/String;
putstatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.PACKAGE_NAME:Ljava/lang/String;
1: getstatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.PACKAGE_NAME:Ljava/lang/String;
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
putstatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.PACKAGE_NAME_INTERNAL:Ljava/lang/String;
2: new org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests$AsmLoader
dup
ldc Lorg/graalvm/compiler/hotspot/test/ConstantPoolSubstitutionsTests;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
invokespecial org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests$AsmLoader.<init>:(Ljava/lang/ClassLoader;)V
putstatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.LOADER:Lorg/graalvm/compiler/hotspot/test/ConstantPoolSubstitutionsTests$AsmLoader;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
1: aload 0
getstatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.JAVA_BASE:Ljava/lang/Class;
ldc "jdk.internal.org.objectweb.asm"
invokevirtual org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.exportPackage:(Ljava/lang/Class;Ljava/lang/String;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/hotspot/test/ConstantPoolSubstitutionsTests;
protected org.graalvm.compiler.nodes.StructuredGraph test(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/graalvm/compiler/nodes/StructuredGraph;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.getMetaAccess:()Ljdk/vm/ci/meta/MetaAccessProvider;
aload 0
aload 1
invokevirtual org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.getMethod:(Ljava/lang/String;)Ljava/lang/reflect/Method;
invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaMethod:(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 2
start local 2 1: aload 0
invokevirtual org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.getDebugContext:()Lorg/graalvm/compiler/debug/DebugContext;
astore 3
start local 3 2: aconst_null
astore 4
aconst_null
astore 5
3: aload 3
ldc "ConstantPoolSubstitutionsTests"
aload 2
invokevirtual org.graalvm.compiler.debug.DebugContext.scope:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/graalvm/compiler/debug/DebugContext$Scope;
astore 6
start local 6 4: aload 0
aload 1
getstatic org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions.YES:Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
invokevirtual org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.parseEager:(Ljava/lang/String;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;)Lorg/graalvm/compiler/nodes/StructuredGraph;
astore 7
start local 7 5: aload 0
aload 7
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.method:()Ljdk/vm/ci/meta/ResolvedJavaMethod;
aload 7
invokevirtual org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.compile:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Lorg/graalvm/compiler/nodes/StructuredGraph;)Lorg/graalvm/compiler/code/CompilationResult;
pop
6: aload 7
ldc Lorg/graalvm/compiler/nodes/Invoke;
invokestatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.assertNotInGraph:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)Lorg/graalvm/compiler/nodes/StructuredGraph;
pop
7: aload 3
iconst_1
aload 7
aload 1
invokevirtual org.graalvm.compiler.debug.DebugContext.dump:(ILjava/lang/Object;Ljava/lang/String;)V
8: aload 7
9: aload 6
ifnull 10
aload 6
invokeinterface org.graalvm.compiler.debug.DebugContext$Scope.close:()V
10: StackMap locals: org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests java.lang.String jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.debug.DebugContext java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.DebugContext$Scope org.graalvm.compiler.nodes.StructuredGraph
StackMap stack: org.graalvm.compiler.nodes.StructuredGraph
areturn
end local 7 StackMap locals: org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests java.lang.String jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.debug.DebugContext java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.DebugContext$Scope
StackMap stack: java.lang.Throwable
11: astore 4
12: aload 6
ifnull 13
aload 6
invokeinterface org.graalvm.compiler.debug.DebugContext$Scope.close:()V
end local 6 StackMap locals:
StackMap stack:
13: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
14: astore 5
aload 4
ifnonnull 15
aload 5
astore 4
goto 16
StackMap locals:
StackMap stack:
15: aload 4
aload 5
if_acmpeq 16
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
16: aload 4
athrow
StackMap locals: org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests java.lang.String jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.debug.DebugContext
StackMap stack: java.lang.Throwable
17: astore 4
start local 4 18: aload 3
aload 4
invokevirtual org.graalvm.compiler.debug.DebugContext.handle:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/graalvm/compiler/hotspot/test/ConstantPoolSubstitutionsTests;
0 19 1 snippet Ljava/lang/String;
1 19 2 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
2 19 3 debug Lorg/graalvm/compiler/debug/DebugContext;
4 13 6 s Lorg/graalvm/compiler/debug/DebugContext$Scope;
5 11 7 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
18 19 4 e Ljava/lang/Throwable;
Exception table:
from to target type
4 9 11 any
3 10 14 any
11 14 14 any
2 10 17 Class java.lang.Throwable
11 17 17 Class java.lang.Throwable
MethodParameters:
Name Flags
snippet final
protected static org.graalvm.compiler.nodes.StructuredGraph assertNotInGraph(org.graalvm.compiler.nodes.StructuredGraph, java.lang.Class<?>);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class;)Lorg/graalvm/compiler/nodes/StructuredGraph;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.graalvm.compiler.nodes.StructuredGraph java.lang.Class top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.graph.Node
astore 2
start local 2 2: aload 1
aload 2
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 4
3: aload 2
invokevirtual org.graalvm.compiler.graph.Node.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.fail:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
0 6 1 clazz Ljava/lang/Class<*>;
2 4 2 node Lorg/graalvm/compiler/graph/Node;
Signature: (Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Class<*>;)Lorg/graalvm/compiler/nodes/StructuredGraph;
MethodParameters:
Name Flags
graph
clazz
private static java.lang.Object getConstantPoolForObject();
descriptor: ()Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=4, args_size=0
0: getstatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.Java8OrEarlier:Z
ifeq 1
ldc "sun.misc"
goto 3
1: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.Java11OrEarlier:Z
ifeq 2
ldc "jdk.internal.misc"
goto 3
StackMap locals:
StackMap stack:
2: ldc "jdk.internal.access"
3: StackMap locals:
StackMap stack: java.lang.String
astore 0
start local 0 4: new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".SharedSecrets"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 1
start local 1 5: new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".JavaLangAccess"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 2
start local 2 6: aload 1
ldc "getJavaLangAccess"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
aconst_null
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 7: aload 2
ldc "getConstantPool"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/Class;
aastore
invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
aload 3
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc Ljava/lang/Object;
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
8: areturn
end local 3 end local 2 end local 1 9: StackMap locals: java.lang.String
StackMap stack: java.lang.Exception
astore 1
start local 1 10: new java.lang.AssertionError
dup
aload 1
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
4 11 0 miscPackage Ljava/lang/String;
5 9 1 sharedSecretsClass Ljava/lang/Class<*>;
6 9 2 javaLangAccessClass Ljava/lang/Class<*>;
7 9 3 jla Ljava/lang/Object;
10 11 1 e Ljava/lang/Exception;
Exception table:
from to target type
4 8 9 Class java.lang.Exception
protected java.lang.reflect.Method getMethod(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/reflect/Method;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.LOADER:Lorg/graalvm/compiler/hotspot/test/ConstantPoolSubstitutionsTests$AsmLoader;
getstatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests$AsmLoader.NAME:Ljava/lang/String;
invokevirtual org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests$AsmLoader.findClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 2
start local 2 1: aload 2
invokestatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.addExports:(Ljava/lang/Class;)V
2: goto 5
end local 2 StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
3: astore 3
start local 3 4: new java.lang.AssertionError
dup
aload 3
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 3 start local 2 5: StackMap locals: java.lang.Class
StackMap stack:
aload 0
aload 2
aload 1
invokevirtual org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.getMethod:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Method;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/hotspot/test/ConstantPoolSubstitutionsTests;
0 6 1 methodName Ljava/lang/String;
1 3 2 cl Ljava/lang/Class<*>;
5 6 2 cl Ljava/lang/Class<*>;
4 5 3 e Ljava/lang/ClassNotFoundException;
Exception table:
from to target type
0 2 3 Class java.lang.ClassNotFoundException
MethodParameters:
Name Flags
methodName
public static void beforeClass();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tBeforeClass cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
RuntimeInvisibleAnnotations:
BeforeClass()
private static void addExports(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: getstatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.Java8OrEarlier:Z
ifne 8
1: ldc Ljava/lang/String;
invokestatic org.graalvm.compiler.test.JLModule.fromClass:(Ljava/lang/Class;)Lorg/graalvm/compiler/test/JLModule;
astore 1
start local 1 2: aload 0
invokestatic org.graalvm.compiler.test.JLModule.fromClass:(Ljava/lang/Class;)Lorg/graalvm/compiler/test/JLModule;
astore 2
start local 2 3: aload 1
ldc "jdk.internal.reflect"
aload 2
invokestatic org.graalvm.compiler.test.JLModule.uncheckedAddExports:(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
4: getstatic org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests.Java11OrEarlier:Z
ifeq 7
5: aload 1
ldc "jdk.internal.misc"
aload 2
invokestatic org.graalvm.compiler.test.JLModule.uncheckedAddExports:(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
6: goto 8
7: StackMap locals: java.lang.Object java.lang.Object
StackMap stack:
aload 1
ldc "jdk.internal.access"
aload 2
invokestatic org.graalvm.compiler.test.JLModule.uncheckedAddExports:(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
end local 2 end local 1 8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 c Ljava/lang/Class<*>;
2 8 1 javaBaseModule Ljava/lang/Object;
3 8 2 cModule Ljava/lang/Object;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
c
public void testGetSize();
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/hotspot/test/ConstantPoolSubstitutionsTests;
RuntimeInvisibleAnnotations:
Test()
public void testGetIntAt();
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/hotspot/test/ConstantPoolSubstitutionsTests;
RuntimeInvisibleAnnotations:
Test()
public void testGetLongAt();
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/hotspot/test/ConstantPoolSubstitutionsTests;
RuntimeInvisibleAnnotations:
Test()
public void testGetFloatAt();
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/hotspot/test/ConstantPoolSubstitutionsTests;
RuntimeInvisibleAnnotations:
Test()
public void testGetDoubleAt();
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/hotspot/test/ConstantPoolSubstitutionsTests;
RuntimeInvisibleAnnotations:
Test()
}
SourceFile: "ConstantPoolSubstitutionsTests.java"
NestMembers:
org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests$AsmLoader org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests$Gen
InnerClasses:
public abstract Scope = org.graalvm.compiler.debug.DebugContext$Scope of org.graalvm.compiler.debug.DebugContext
public AsmLoader = org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests$AsmLoader of org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests
Gen = org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests$Gen of org.graalvm.compiler.hotspot.test.ConstantPoolSubstitutionsTests
public final AllowAssumptions = org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions of org.graalvm.compiler.nodes.StructuredGraph