public class org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest 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.MethodSubstitutionForeignCallTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
public static final org.graalvm.compiler.core.common.spi.ForeignCallDescriptor TEST_CALL;
descriptor: Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static int SideEffect;
descriptor: I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=0, args_size=0
0: new org.graalvm.compiler.core.common.spi.ForeignCallDescriptor
dup
ldc "test"
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
iconst_1
anewarray java.lang.Class
dup
iconst_0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
aastore
invokespecial org.graalvm.compiler.core.common.spi.ForeignCallDescriptor.<init>:(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Class;)V
putstatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.TEST_CALL:Lorg/graalvm/compiler/core/common/spi/ForeignCallDescriptor;
1: 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.core.test.GraalCompilerTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest;
protected void registerInvocationPlugins(org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins);
descriptor: (Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=4, args_size=2
start local 0 start local 1 0: aload 1
new org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$1
dup
aload 0
invokespecial org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$1.<init>:(Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest;)V
1: ldc Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest;
ldc "testDeopt"
iconst_1
anewarray java.lang.reflect.Type
dup
iconst_0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
aastore
2: invokevirtual org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins.register:(Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugin;Ljava/lang/reflect/Type;Ljava/lang/String;[Ljava/lang/reflect/Type;)V
3: aload 1
new org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$2
dup
aload 0
invokespecial org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$2.<init>:(Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest;)V
4: ldc Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest;
ldc "testNonDeopting"
iconst_1
anewarray java.lang.reflect.Type
dup
iconst_0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
aastore
5: invokevirtual org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins.register:(Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugin;Ljava/lang/reflect/Type;Ljava/lang/String;[Ljava/lang/reflect/Type;)V
6: aload 1
new org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$3
dup
aload 0
invokespecial org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$3.<init>:(Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest;)V
7: ldc Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest;
ldc "testPureReexectuable"
iconst_1
anewarray java.lang.reflect.Type
dup
iconst_0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
aastore
8: invokevirtual org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins.register:(Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugin;Ljava/lang/reflect/Type;Ljava/lang/String;[Ljava/lang/reflect/Type;)V
9: aload 0
invokevirtual org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.getSystemClassLoaderBytecodeProvider:()Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;
astore 2
start local 2 10: new org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration
dup
aload 1
ldc Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest$A;
aload 0
invokevirtual org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.getReplacements:()Lorg/graalvm/compiler/nodes/spi/Replacements;
aload 2
invokespecial org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration.<init>:(Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins;Ljava/lang/reflect/Type;Lorg/graalvm/compiler/nodes/spi/Replacements;Lorg/graalvm/compiler/bytecode/BytecodeProvider;)V
astore 3
start local 3 11: aload 3
ldc Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest$ASubstitutions;
ldc "invalidConsecutiveForeignCall1"
iconst_1
anewarray java.lang.reflect.Type
dup
iconst_0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
aastore
invokevirtual org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration.registerMethodSubstitution:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/reflect/Type;)V
12: aload 3
ldc Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest$ASubstitutions;
ldc "invalidConsecutiveForeignCall2"
iconst_1
anewarray java.lang.reflect.Type
dup
iconst_0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
aastore
invokevirtual org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration.registerMethodSubstitution:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/reflect/Type;)V
13: aload 3
ldc Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest$ASubstitutions;
ldc "validConsecutiveForeignCallReexecutable"
iconst_1
anewarray java.lang.reflect.Type
dup
iconst_0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
aastore
invokevirtual org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration.registerMethodSubstitution:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/reflect/Type;)V
14: aload 3
ldc Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest$ASubstitutions;
ldc "splitForeignCallInvalid"
iconst_1
anewarray java.lang.reflect.Type
dup
iconst_0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
aastore
invokevirtual org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration.registerMethodSubstitution:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/reflect/Type;)V
15: aload 0
aload 1
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.registerInvocationPlugins:(Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins;)V
16: return
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/hotspot/test/MethodSubstitutionForeignCallTest;
0 17 1 invocationPlugins Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins;
10 17 2 bytecodeProvider Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;
11 17 3 r Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins$Registration;
MethodParameters:
Name Flags
invocationPlugins
private org.graalvm.compiler.replacements.classfile.ClassfileBytecodeProvider getSystemClassLoaderBytecodeProvider();
descriptor: ()Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.getReplacements:()Lorg/graalvm/compiler/nodes/spi/Replacements;
checkcast org.graalvm.compiler.replacements.ReplacementsImpl
astore 1
start local 1 1: aload 1
invokevirtual org.graalvm.compiler.replacements.ReplacementsImpl.getProviders:()Lorg/graalvm/compiler/phases/util/Providers;
invokevirtual org.graalvm.compiler.phases.util.Providers.getMetaAccess:()Ljdk/vm/ci/meta/MetaAccessProvider;
astore 2
start local 2 2: new org.graalvm.compiler.replacements.classfile.ClassfileBytecodeProvider
dup
aload 2
aload 1
getfield org.graalvm.compiler.replacements.ReplacementsImpl.snippetReflection:Lorg/graalvm/compiler/api/replacements/SnippetReflectionProvider;
invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
invokespecial org.graalvm.compiler.replacements.classfile.ClassfileBytecodeProvider.<init>:(Ljdk/vm/ci/meta/MetaAccessProvider;Lorg/graalvm/compiler/api/replacements/SnippetReflectionProvider;Ljava/lang/ClassLoader;)V
astore 3
start local 3 3: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest;
1 4 1 d Lorg/graalvm/compiler/replacements/ReplacementsImpl;
2 4 2 metaAccess Ljdk/vm/ci/meta/MetaAccessProvider;
3 4 3 bytecodeProvider Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;
public static int testDeopt(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
putstatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.SideEffect:I
1: iload 0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 value I
MethodParameters:
Name Flags
value
public static int testNonDeopting(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value I
MethodParameters:
Name Flags
value
public static int testPureReexectuable(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value I
MethodParameters:
Name Flags
value
public static void testSnippetInvalidSequential();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.SideEffect:I
invokestatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$A.invalidConsecutiveForeignCall1:(I)V
1: getstatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.SideEffect:I
iconst_1
if_icmpne 3
2: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.deoptimize:()V
3: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
public static void testNonDeoptingInvalid();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.SideEffect:I
invokestatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$A.invalidConsecutiveForeignCall2:(I)V
1: getstatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.SideEffect:I
iconst_1
if_icmpne 3
2: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.deoptimize:()V
3: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
public static void testNonDeoptingSplit();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.SideEffect:I
invokestatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$A.splitForeignCallInvalid:(I)V
1: getstatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.SideEffect:I
iconst_1
if_icmpne 3
2: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.deoptimize:()V
3: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
public static void testNonDeoptingReexectuable();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.SideEffect:I
invokestatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$A.validConsecutiveForeignCallReexecutable:(I)V
1: getstatic org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.SideEffect:I
iconst_1
if_icmpne 3
2: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.deoptimize:()V
3: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
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 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/hotspot/test/MethodSubstitutionForeignCallTest;
RuntimeInvisibleAnnotations:
Test()
public void test2();
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/hotspot/test/MethodSubstitutionForeignCallTest;
RuntimeInvisibleAnnotations:
Test()
public void test3();
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/hotspot/test/MethodSubstitutionForeignCallTest;
RuntimeInvisibleAnnotations:
Test()
public void test4();
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/MethodSubstitutionForeignCallTest;
RuntimeInvisibleAnnotations:
Test()
static jdk.vm.ci.code.TargetDescription access$0(org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest);
descriptor: (Lorg/graalvm/compiler/hotspot/test/MethodSubstitutionForeignCallTest;)Ljdk/vm/ci/code/TargetDescription;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest.getTarget:()Ljdk/vm/ci/code/TargetDescription;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "MethodSubstitutionForeignCallTest.java"
NestMembers:
org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$1 org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$1$1 org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$2 org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$2$1 org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$3 org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$3$1 org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$A org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$ASubstitutions
InnerClasses:
org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$1
org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$2
org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$3
public A = org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$A of org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest
public ASubstitutions = org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest$ASubstitutions of org.graalvm.compiler.hotspot.test.MethodSubstitutionForeignCallTest
public Registration = org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration of org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins