public class org.graalvm.compiler.hotspot.test.HotSpotMethodSubstitutionTest extends org.graalvm.compiler.replacements.test.MethodSubstitutionTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.test.HotSpotMethodSubstitutionTest
super_class: org.graalvm.compiler.replacements.test.MethodSubstitutionTest
{
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.replacements.test.MethodSubstitutionTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/HotSpotMethodSubstitutionTest;
public void testObjectSubstitutions();
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/HotSpotMethodSubstitutionTest;
RuntimeInvisibleAnnotations:
Test()
public static java.lang.Class<?> getClass0();
descriptor: (Ljava/lang/Object;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
Signature: (Ljava/lang/Object;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
obj
public static int objectHashCode(org.graalvm.compiler.hotspot.test.HotSpotMethodSubstitutionTest$TestClassA);
descriptor: (Lorg/graalvm/compiler/hotspot/test/HotSpotMethodSubstitutionTest$TestClassA;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Lorg/graalvm/compiler/hotspot/test/HotSpotMethodSubstitutionTest$TestClassA;
MethodParameters:
Name Flags
obj
public void testClassSubstitutions();
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/HotSpotMethodSubstitutionTest;
RuntimeInvisibleAnnotations:
Test()
public static int getModifiers(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getModifiers:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)I
MethodParameters:
Name Flags
clazz
public static boolean isInterface(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.isInterface:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
clazz
public static boolean isArray(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.isArray:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
clazz
public static boolean isPrimitive(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.isPrimitive:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
clazz
public static java.lang.Class<?> getSuperClass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
clazz
public static java.lang.Class<?> getComponentType(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
clazz
public void testThreadSubstitutions();
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/HotSpotMethodSubstitutionTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean currentThread(java.lang.Thread);
descriptor: (Ljava/lang/Thread;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 other Ljava/lang/Thread;
MethodParameters:
Name Flags
other
public static boolean threadIsInterrupted(java.lang.Thread);
descriptor: (Ljava/lang/Thread;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Thread.isInterrupted:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 thread Ljava/lang/Thread;
MethodParameters:
Name Flags
thread
public static boolean threadInterrupted();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic java.lang.Thread.interrupted:()Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public void testSystemSubstitutions();
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/HotSpotMethodSubstitutionTest;
RuntimeInvisibleAnnotations:
Test()
public static long systemTime();
descriptor: ()J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: invokestatic java.lang.System.currentTimeMillis:()J
invokestatic java.lang.System.nanoTime:()J
ladd
lreturn
LocalVariableTable:
Start End Slot Name Signature
public static int systemIdentityHashCode(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public static java.lang.String testCallSiteGetTargetSnippet(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=11, locals=3, args_size=1
start local 0 0: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
astore 2
start local 2 1: iload 0
tableswitch { // 1 - 1
1: 2
default: 4
}
2: StackMap locals: int top java.lang.invoke.MethodHandles$Lookup
StackMap stack:
new java.lang.invoke.ConstantCallSite
dup
aload 2
ldc Ljava/lang/String;
ldc "replace"
ldc Ljava/lang/String;
getstatic java.lang.Character.TYPE:Ljava/lang/Class;
iconst_1
anewarray java.lang.Class
dup
iconst_0
getstatic java.lang.Character.TYPE:Ljava/lang/Class;
aastore
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
invokevirtual java.lang.invoke.MethodHandles$Lookup.findVirtual:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
invokespecial java.lang.invoke.ConstantCallSite.<init>:(Ljava/lang/invoke/MethodHandle;)V
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.opaque:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.invoke.ConstantCallSite
astore 1
start local 1 3: goto 5
end local 1 4: StackMap locals:
StackMap stack:
new java.lang.invoke.ConstantCallSite
dup
aload 2
ldc Ljava/util/Arrays;
ldc "asList"
ldc Ljava/util/List;
ldc [Ljava/lang/Object;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
invokevirtual java.lang.invoke.MethodHandles$Lookup.findStatic:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
invokespecial java.lang.invoke.ConstantCallSite.<init>:(Ljava/lang/invoke/MethodHandle;)V
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.opaque:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.invoke.ConstantCallSite
astore 1
start local 1 5: StackMap locals: int java.lang.invoke.ConstantCallSite java.lang.invoke.MethodHandles$Lookup
StackMap stack:
aload 1
invokevirtual java.lang.invoke.ConstantCallSite.getTarget:()Ljava/lang/invoke/MethodHandle;
invokevirtual java.lang.invoke.MethodHandle.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 i I
3 4 1 site Ljava/lang/invoke/ConstantCallSite;
5 6 1 site Ljava/lang/invoke/ConstantCallSite;
1 6 2 lookup Ljava/lang/invoke/MethodHandles$Lookup;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
i
public static java.lang.String testCastSnippet(int, java.lang.Object);
descriptor: (ILjava/lang/Object;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iload 0
tableswitch { // 1 - 1
1: 1
default: 3
}
1: StackMap locals:
StackMap stack:
ldc Ljava/lang/Number;
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.opaque:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Class
astore 2
start local 2 2: goto 4
end local 2 3: StackMap locals:
StackMap stack:
ldc Ljava/lang/Integer;
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.opaque:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Class
astore 2
start local 2 4: StackMap locals: java.lang.Class
StackMap stack:
aload 2
aload 1
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 i I
0 5 1 obj Ljava/lang/Object;
2 3 2 c Ljava/lang/Class<*>;
4 5 2 c Ljava/lang/Class<*>;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
i
obj
public static java.lang.String testGetClassSnippet(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iload 0
tableswitch { // 1 - 1
1: 1
default: 3
}
1: StackMap locals:
StackMap stack:
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.opaque:(Ljava/lang/Object;)Ljava/lang/Object;
astore 1
start local 1 2: goto 4
end local 1 3: StackMap locals:
StackMap stack:
ldc "TEST"
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.opaque:(Ljava/lang/Object;)Ljava/lang/Object;
astore 1
start local 1 4: StackMap locals: java.lang.Object
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 i I
2 3 1 c Ljava/lang/Object;
4 5 1 c Ljava/lang/Object;
MethodParameters:
Name Flags
i
public void testCallSiteGetTarget();
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/HotSpotMethodSubstitutionTest;
RuntimeInvisibleAnnotations:
Test()
public void testCast();
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/HotSpotMethodSubstitutionTest;
RuntimeInvisibleAnnotations:
Test()
public void testGetClass();
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/HotSpotMethodSubstitutionTest;
RuntimeInvisibleAnnotations:
Test()
}
SourceFile: "HotSpotMethodSubstitutionTest.java"
NestMembers:
org.graalvm.compiler.hotspot.test.HotSpotMethodSubstitutionTest$TestClassA
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private TestClassA = org.graalvm.compiler.hotspot.test.HotSpotMethodSubstitutionTest$TestClassA of org.graalvm.compiler.hotspot.test.HotSpotMethodSubstitutionTest