public class org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest 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.MemoryGraphCanonicalizeTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
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/MemoryGraphCanonicalizeTest;
public static void simpleElimination(org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject);
descriptor: (Lorg/graalvm/compiler/core/test/MemoryGraphCanonicalizeTest$TestObject;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
putfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.object:Ljava/lang/Object;
1: aload 0
aload 0
getfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.integer:Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.value:I
2: aload 0
aload 0
getfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.integer:Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
iconst_2
iadd
putfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.value:I
3: aload 0
aload 0
getfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.integer:Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
iconst_3
iadd
putfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.value:I
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 object Lorg/graalvm/compiler/core/test/MemoryGraphCanonicalizeTest$TestObject;
MethodParameters:
Name Flags
object
public void testSimpleElimination();
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/MemoryGraphCanonicalizeTest;
RuntimeInvisibleAnnotations:
Test()
public static void complexElimination(org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject);
descriptor: (Lorg/graalvm/compiler/core/test/MemoryGraphCanonicalizeTest$TestObject;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
putfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.object:Ljava/lang/Object;
1: aload 0
aload 0
getfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.integer:Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.value:I
2: aload 0
aload 0
getfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.integer:Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
iconst_2
iadd
putfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.value:I
3: aload 0
getfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.object:Ljava/lang/Object;
ifnonnull 6
4: aload 0
aload 0
getfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.integer:Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
iconst_3
iadd
putfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.value:I
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.object:Ljava/lang/Object;
7: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.written:Z
8: aload 0
iconst_5
putfield org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject.value:I
9: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 object Lorg/graalvm/compiler/core/test/MemoryGraphCanonicalizeTest$TestObject;
MethodParameters:
Name Flags
object
public void testComplexElimination();
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/MemoryGraphCanonicalizeTest;
RuntimeInvisibleAnnotations:
Test()
public void testGraph(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
getstatic org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions.YES:Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
invokevirtual org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest.parseEager:(Ljava/lang/String;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;)Lorg/graalvm/compiler/nodes/StructuredGraph;
astore 3
start local 3 1: ldc Lorg/graalvm/compiler/runtime/RuntimeProvider;
invokestatic org.graalvm.compiler.api.test.Graal.getRequiredCapability:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast org.graalvm.compiler.runtime.RuntimeProvider
invokeinterface org.graalvm.compiler.runtime.RuntimeProvider.getHostBackend:()Lorg/graalvm/compiler/core/target/Backend;
invokevirtual org.graalvm.compiler.core.target.Backend.getSuites:()Lorg/graalvm/compiler/phases/tiers/SuitesProvider;
invokestatic org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest.getInitialOptions:()Lorg/graalvm/compiler/options/OptionValues;
invokeinterface org.graalvm.compiler.phases.tiers.SuitesProvider.getDefaultSuites:(Lorg/graalvm/compiler/options/OptionValues;)Lorg/graalvm/compiler/phases/tiers/Suites;
astore 4
start local 4 2: aload 4
invokevirtual org.graalvm.compiler.phases.tiers.Suites.getHighTier:()Lorg/graalvm/compiler/phases/PhaseSuite;
aload 3
aload 0
invokevirtual org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest.getDefaultHighTierContext:()Lorg/graalvm/compiler/phases/tiers/HighTierContext;
invokevirtual org.graalvm.compiler.phases.PhaseSuite.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
3: aload 4
invokevirtual org.graalvm.compiler.phases.tiers.Suites.getMidTier:()Lorg/graalvm/compiler/phases/PhaseSuite;
aload 3
aload 0
invokevirtual org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest.getDefaultMidTierContext:()Lorg/graalvm/compiler/phases/tiers/MidTierContext;
invokevirtual org.graalvm.compiler.phases.PhaseSuite.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
4: aload 3
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
ldc Lorg/graalvm/compiler/nodes/memory/WriteNode;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.filter:(Ljava/lang/Class;)Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.count:()I
istore 5
start local 5 5: iload 5
iload 2
if_icmpne 6
iconst_1
goto 7
StackMap locals: org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.phases.tiers.Suites int
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: ldc "Expected %d writes, found %d"
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 5
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest.assertTrue:(ZLjava/lang/String;[Ljava/lang/Object;)V
8: return
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 9 0 this Lorg/graalvm/compiler/core/test/MemoryGraphCanonicalizeTest;
0 9 1 name Ljava/lang/String;
0 9 2 expectedWrites I
1 9 3 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
2 9 4 s Lorg/graalvm/compiler/phases/tiers/Suites;
5 9 5 writes I
MethodParameters:
Name Flags
name
expectedWrites
}
SourceFile: "MemoryGraphCanonicalizeTest.java"
NestMembers:
org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject
InnerClasses:
TestObject = org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest$TestObject of org.graalvm.compiler.core.test.MemoryGraphCanonicalizeTest
public final AllowAssumptions = org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions of org.graalvm.compiler.nodes.StructuredGraph