public class org.graalvm.compiler.core.test.StableArrayReadFoldingTest 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.StableArrayReadFoldingTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
static final boolean[] STABLE_BOOLEAN_ARRAY;
descriptor: [Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final int[] STABLE_INT_ARRAY;
descriptor: [I
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final long BOOLEAN_ARRAY_BASE_OFFSET;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final long INT_ARRAY_BASE_OFFSET;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: bipush 16
newarray 4
putstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_BOOLEAN_ARRAY:[Z
1: bipush 16
newarray 10
putstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_INT_ARRAY:[I
2: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.UNSAFE:Lsun/misc/Unsafe;
ldc [Z
invokevirtual sun.misc.Unsafe.arrayBaseOffset:(Ljava/lang/Class;)I
i2l
putstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.BOOLEAN_ARRAY_BASE_OFFSET:J
3: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.UNSAFE:Lsun/misc/Unsafe;
ldc [I
invokevirtual sun.misc.Unsafe.arrayBaseOffset:(Ljava/lang/Class;)I
i2l
putstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.INT_ARRAY_BASE_OFFSET:J
4: 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/StableArrayReadFoldingTest;
protected org.graalvm.compiler.nodes.StructuredGraph parseForCompile(jdk.vm.ci.meta.ResolvedJavaMethod, org.graalvm.compiler.core.common.CompilationIdentifier, org.graalvm.compiler.options.OptionValues);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaMethod;Lorg/graalvm/compiler/core/common/CompilationIdentifier;Lorg/graalvm/compiler/options/OptionValues;)Lorg/graalvm/compiler/nodes/StructuredGraph;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.parseForCompile:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Lorg/graalvm/compiler/core/common/CompilationIdentifier;Lorg/graalvm/compiler/options/OptionValues;)Lorg/graalvm/compiler/nodes/StructuredGraph;
astore 4
start local 4 1: aload 4
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
ldc Lorg/graalvm/compiler/nodes/ConstantNode;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.filter:(Ljava/lang/Class;)Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.snapshot:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 6
StackMap locals: org.graalvm.compiler.core.test.StableArrayReadFoldingTest jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.core.common.CompilationIdentifier org.graalvm.compiler.options.OptionValues org.graalvm.compiler.nodes.StructuredGraph top java.util.Iterator
StackMap stack:
2: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.ConstantNode
astore 5
start local 5 3: aload 0
invokevirtual org.graalvm.compiler.core.test.StableArrayReadFoldingTest.getConstantReflection:()Ljdk/vm/ci/meta/ConstantReflectionProvider;
aload 5
invokevirtual org.graalvm.compiler.nodes.ConstantNode.asJavaConstant:()Ljdk/vm/ci/meta/JavaConstant;
invokeinterface jdk.vm.ci.meta.ConstantReflectionProvider.readArrayLength:(Ljdk/vm/ci/meta/JavaConstant;)Ljava/lang/Integer;
ifnull 6
4: aload 4
aload 5
invokevirtual org.graalvm.compiler.nodes.ConstantNode.asJavaConstant:()Ljdk/vm/ci/meta/JavaConstant;
iconst_1
iconst_1
aload 0
invokevirtual org.graalvm.compiler.core.test.StableArrayReadFoldingTest.getMetaAccess:()Ljdk/vm/ci/meta/MetaAccessProvider;
invokestatic org.graalvm.compiler.nodes.ConstantNode.forConstant:(Ljdk/vm/ci/meta/JavaConstant;IZLjdk/vm/ci/meta/MetaAccessProvider;)Lorg/graalvm/compiler/nodes/ConstantNode;
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.unique:(Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/graph/Node;
checkcast org.graalvm.compiler.nodes.ConstantNode
astore 7
start local 7 5: aload 5
aload 7
invokevirtual org.graalvm.compiler.nodes.ConstantNode.replaceAndDelete:(Lorg/graalvm/compiler/graph/Node;)V
end local 7 end local 5 6: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: aload 4
areturn
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/core/test/StableArrayReadFoldingTest;
0 8 1 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
0 8 2 compilationId Lorg/graalvm/compiler/core/common/CompilationIdentifier;
0 8 3 options Lorg/graalvm/compiler/options/OptionValues;
1 8 4 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
3 6 5 constantNode Lorg/graalvm/compiler/nodes/ConstantNode;
5 6 7 newConstantNode Lorg/graalvm/compiler/nodes/ConstantNode;
MethodParameters:
Name Flags
method
compilationId
options
public static boolean killWithSameType();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_BOOLEAN_ARRAY:[Z
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.BOOLEAN_ARRAY_BASE_OFFSET:J
invokevirtual sun.misc.Unsafe.getBoolean:(Ljava/lang/Object;J)Z
istore 0
start local 0 1: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_BOOLEAN_ARRAY:[Z
iconst_0
iconst_1
bastore
2: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_BOOLEAN_ARRAY:[Z
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.BOOLEAN_ARRAY_BASE_OFFSET:J
invokevirtual sun.misc.Unsafe.getBoolean:(Ljava/lang/Object;J)Z
istore 1
start local 1 3: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_BOOLEAN_ARRAY:[Z
iconst_0
iconst_0
bastore
4: iload 0
iload 1
if_icmpne 5
iconst_1
ireturn
StackMap locals: int int
StackMap stack:
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 beforeKill Z
3 6 1 afterKill Z
public void testKillWithSameType();
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/StableArrayReadFoldingTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean killWithDifferentType();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=0
0: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_BOOLEAN_ARRAY:[Z
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.BOOLEAN_ARRAY_BASE_OFFSET:J
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
istore 0
start local 0 1: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_BOOLEAN_ARRAY:[Z
iconst_0
iconst_1
bastore
2: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_BOOLEAN_ARRAY:[Z
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.BOOLEAN_ARRAY_BASE_OFFSET:J
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
istore 1
start local 1 3: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_BOOLEAN_ARRAY:[Z
iconst_0
iconst_0
bastore
4: iload 0
iload 1
if_icmpne 5
iconst_1
ireturn
StackMap locals: int int
StackMap stack:
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 beforeKill B
3 6 1 afterKill B
public void testKillWithDifferentType();
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/StableArrayReadFoldingTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean killWithSameTypeUnaligned();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=0
0: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_INT_ARRAY:[I
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.INT_ARRAY_BASE_OFFSET:J
lconst_1
ladd
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
istore 0
start local 0 1: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_INT_ARRAY:[I
iconst_0
ldc 16909060
iastore
2: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_INT_ARRAY:[I
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.INT_ARRAY_BASE_OFFSET:J
lconst_1
ladd
invokevirtual sun.misc.Unsafe.getInt:(Ljava/lang/Object;J)I
istore 1
start local 1 3: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_INT_ARRAY:[I
iconst_0
iconst_0
iastore
4: iload 0
iload 1
if_icmpne 5
iconst_1
ireturn
StackMap locals: int int
StackMap stack:
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 beforeKill I
3 6 1 afterKill I
public void testKillWithSameTypeUnaligned();
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"
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/StableArrayReadFoldingTest;
RuntimeInvisibleAnnotations:
Test()
public static boolean killWithDifferentTypeUnaligned();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=0
0: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_INT_ARRAY:[I
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.INT_ARRAY_BASE_OFFSET:J
lconst_1
ladd
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
istore 0
start local 0 1: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_INT_ARRAY:[I
iconst_0
ldc 16909060
iastore
2: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_INT_ARRAY:[I
getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.INT_ARRAY_BASE_OFFSET:J
lconst_1
ladd
invokevirtual sun.misc.Unsafe.getByte:(Ljava/lang/Object;J)B
istore 1
start local 1 3: getstatic org.graalvm.compiler.core.test.StableArrayReadFoldingTest.STABLE_INT_ARRAY:[I
iconst_0
iconst_0
iastore
4: iload 0
iload 1
if_icmpne 5
iconst_1
ireturn
StackMap locals: int int
StackMap stack:
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 beforeKill B
3 6 1 afterKill B
public void testKillWithDifferentTypeUnaligned();
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"
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/StableArrayReadFoldingTest;
RuntimeInvisibleAnnotations:
Test()
}
SourceFile: "StableArrayReadFoldingTest.java"
InnerClasses:
public abstract ValueNumberable = org.graalvm.compiler.graph.Node$ValueNumberable of org.graalvm.compiler.graph.Node