public class org.graalvm.compiler.core.test.UnsafeVirtualizationTest 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.core.test.UnsafeVirtualizationTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/core/test/UnsafeVirtualizationTest;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.$assertionsDisabled:Z
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/core/test/UnsafeVirtualizationTest;
public static int unsafeSnippet1(double);
descriptor: (D)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: new org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt
dup
invokespecial org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.<init>:()V
astore 2
start local 2 1: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
dload 0
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
2: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset2:J
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
iadd
ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 i1 D
1 3 2 a Lorg/graalvm/compiler/core/test/ea/EATestBase$TestClassInt;
MethodParameters:
Name Flags
i1
public static long unsafeSnippet2a(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt
dup
invokespecial org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.<init>:()V
astore 1
start local 1 1: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
iload 0
i2d
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
2: aload 1
iload 0
invokevirtual org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.setFirstField:(I)V
3: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 i1 I
1 4 1 a Lorg/graalvm/compiler/core/test/ea/EATestBase$TestClassInt;
MethodParameters:
Name Flags
i1
public static long unsafeSnippet2b(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt
dup
invokespecial org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.<init>:()V
astore 1
start local 1 1: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
iload 0
i2d
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
2: aload 1
iload 0
invokevirtual org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.setSecondField:(I)V
3: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 i1 I
1 4 1 a Lorg/graalvm/compiler/core/test/ea/EATestBase$TestClassInt;
MethodParameters:
Name Flags
i1
public static long unsafeSnippet3a(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt
dup
invokespecial org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.<init>:()V
astore 1
start local 1 1: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
iload 0
i2d
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
2: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
iload 0
invokevirtual sun.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
3: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 i1 I
1 4 1 a Lorg/graalvm/compiler/core/test/ea/EATestBase$TestClassInt;
MethodParameters:
Name Flags
i1
public static long unsafeSnippet3b(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt
dup
invokespecial org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.<init>:()V
astore 1
start local 1 1: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
iload 0
i2d
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
2: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset2:J
iload 0
invokevirtual sun.misc.Unsafe.putInt:(Ljava/lang/Object;JI)V
3: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 1
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
invokevirtual sun.misc.Unsafe.getLong:(Ljava/lang/Object;J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 i1 I
1 4 1 a Lorg/graalvm/compiler/core/test/ea/EATestBase$TestClassInt;
MethodParameters:
Name Flags
i1
public static int unsafeSnippet4(double);
descriptor: (D)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: new org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt
dup
invokespecial org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.<init>:()V
astore 2
start local 2 1: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
dload 0
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
2: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
dload 0
invokevirtual sun.misc.Unsafe.putDouble:(Ljava/lang/Object;JD)V
3: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.UNSAFE:Lsun/misc/Unsafe;
aload 2
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset2:J
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
iadd
ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 i1 D
1 4 2 a Lorg/graalvm/compiler/core/test/ea/EATestBase$TestClassInt;
MethodParameters:
Name Flags
i1
public void testUnsafePEA01();
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/core/test/UnsafeVirtualizationTest;
RuntimeInvisibleAnnotations:
Test()
public void testUnsafePEA02();
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/core/test/UnsafeVirtualizationTest;
RuntimeInvisibleAnnotations:
Test()
public void testUnsafePEA03();
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/core/test/UnsafeVirtualizationTest;
RuntimeInvisibleAnnotations:
Test()
public void testUnsafePEA04();
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/core/test/UnsafeVirtualizationTest;
RuntimeInvisibleAnnotations:
Test()
public void testPartialEscapeReadElimination(java.lang.String, boolean, java.lang.Object[]);
descriptor: (Ljava/lang/String;Z[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=7, locals=12, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.$assertionsDisabled:Z
ifne 1
getstatic org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt.fieldOffset1:J
ldc 8
lrem
lconst_0
lcmp
ifeq 1
new java.lang.AssertionError
dup
ldc "First of the two int-fields must be 8-byte aligned"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.graalvm.compiler.core.test.UnsafeVirtualizationTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 4
start local 4 2: aload 0
aload 1
getstatic org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions.NO:Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
invokevirtual org.graalvm.compiler.core.test.UnsafeVirtualizationTest.parseEager:(Ljava/lang/String;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;)Lorg/graalvm/compiler/nodes/StructuredGraph;
astore 5
start local 5 3: aload 5
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getOptions:()Lorg/graalvm/compiler/options/OptionValues;
astore 6
start local 6 4: aload 0
invokevirtual org.graalvm.compiler.core.test.UnsafeVirtualizationTest.getDefaultHighTierContext:()Lorg/graalvm/compiler/phases/tiers/HighTierContext;
astore 7
start local 7 5: aload 0
invokevirtual org.graalvm.compiler.core.test.UnsafeVirtualizationTest.createCanonicalizerPhase:()Lorg/graalvm/compiler/phases/common/CanonicalizerPhase;
astore 8
start local 8 6: iload 2
ifeq 8
7: aload 8
aload 5
aload 7
invokevirtual org.graalvm.compiler.phases.common.CanonicalizerPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
8: StackMap locals: org.graalvm.compiler.core.test.UnsafeVirtualizationTest java.lang.String int java.lang.Object[] jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.options.OptionValues org.graalvm.compiler.nodes.spi.CoreProviders org.graalvm.compiler.phases.common.CanonicalizerPhase
StackMap stack:
aload 0
aload 4
aconst_null
aload 3
invokevirtual org.graalvm.compiler.core.test.UnsafeVirtualizationTest.executeExpected:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Object;[Ljava/lang/Object;)Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;
astore 9
start local 9 9: new org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase
dup
iconst_1
iconst_1
aload 8
aconst_null
aload 6
invokespecial org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase.<init>:(ZZLorg/graalvm/compiler/phases/common/CanonicalizerPhase;Lorg/graalvm/compiler/phases/BasePhase;Lorg/graalvm/compiler/options/OptionValues;)V
aload 5
aload 7
invokevirtual org.graalvm.compiler.virtual.phases.ea.PartialEscapePhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
10: aload 0
aload 4
aload 5
invokevirtual org.graalvm.compiler.core.test.UnsafeVirtualizationTest.getCode:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Lorg/graalvm/compiler/nodes/StructuredGraph;)Ljdk/vm/ci/code/InstalledCode;
astore 10
start local 10 11: aload 10
aload 3
invokevirtual jdk.vm.ci.code.InstalledCode.executeVarargs:([Ljava/lang/Object;)Ljava/lang/Object;
astore 11
start local 11 12: aload 0
aload 9
new org.graalvm.compiler.core.test.GraalCompilerTest$Result
dup
aload 11
aconst_null
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest$Result.<init>:(Ljava/lang/Object;Ljava/lang/Throwable;)V
invokevirtual org.graalvm.compiler.core.test.UnsafeVirtualizationTest.assertEquals:(Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;)V
end local 11 end local 10 13: goto 16
StackMap locals: org.graalvm.compiler.core.test.UnsafeVirtualizationTest java.lang.String int java.lang.Object[] jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.options.OptionValues org.graalvm.compiler.nodes.spi.CoreProviders org.graalvm.compiler.phases.common.CanonicalizerPhase org.graalvm.compiler.core.test.GraalCompilerTest$Result
StackMap stack: java.lang.Throwable
14: astore 10
start local 10 15: iconst_1
aload 10
invokevirtual java.lang.Throwable.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic org.graalvm.compiler.core.test.UnsafeVirtualizationTest.assertFalse:(ZLjava/lang/String;[Ljava/lang/Object;)V
end local 10 16: StackMap locals:
StackMap stack:
return
end local 9 end local 8 end local 7 end local 6 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 17 0 this Lorg/graalvm/compiler/core/test/UnsafeVirtualizationTest;
0 17 1 snippet Ljava/lang/String;
0 17 2 canonicalizeBefore Z
0 17 3 args [Ljava/lang/Object;
2 17 4 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
3 17 5 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
4 17 6 options Lorg/graalvm/compiler/options/OptionValues;
5 17 7 context Lorg/graalvm/compiler/nodes/spi/CoreProviders;
6 17 8 canonicalizer Lorg/graalvm/compiler/phases/common/CanonicalizerPhase;
9 17 9 r Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;
11 13 10 code Ljdk/vm/ci/code/InstalledCode;
12 13 11 result Ljava/lang/Object;
15 16 10 e Ljava/lang/Throwable;
Exception table:
from to target type
10 13 14 Class java.lang.Throwable
MethodParameters:
Name Flags
snippet
canonicalizeBefore
args
}
SourceFile: "UnsafeVirtualizationTest.java"
InnerClasses:
public Result = org.graalvm.compiler.core.test.GraalCompilerTest$Result of org.graalvm.compiler.core.test.GraalCompilerTest
public TestClassInt = org.graalvm.compiler.core.test.ea.EATestBase$TestClassInt of org.graalvm.compiler.core.test.ea.EATestBase
public final AllowAssumptions = org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions of org.graalvm.compiler.nodes.StructuredGraph