public class org.graalvm.compiler.core.test.GraphEncoderTest 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.GraphEncoderTest
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 // org.graalvm.compiler.core.test.GraphEncoderTest this
0: .line 42
aload 0 /* this */
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
return
end local 0 // org.graalvm.compiler.core.test.GraphEncoderTest this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/test/GraphEncoderTest;
public void test01();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 // org.graalvm.compiler.core.test.GraphEncoderTest this
0: .line 44
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 // org.graalvm.compiler.core.test.GraphEncoderTest this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/test/GraphEncoderTest;
RuntimeInvisibleAnnotations:
Test()
public void test02();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 // org.graalvm.compiler.core.test.GraphEncoderTest this
0: .line 49
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 // org.graalvm.compiler.core.test.GraphEncoderTest this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/test/GraphEncoderTest;
RuntimeInvisibleAnnotations:
Test()
public void testStringMethods(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=10, args_size=2
start local 0 // org.graalvm.compiler.core.test.GraphEncoderTest this
start local 1 // boolean canonicalize
0: .line 56
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2 /* originalGraphs */
start local 2 // java.util.List originalGraphs
1: .line 57
ldc Ljava/lang/String;
invokevirtual java.lang.Class.getDeclaredMethods:()[Ljava/lang/reflect/Method;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 11
StackMap locals: org.graalvm.compiler.core.test.GraphEncoderTest int java.util.List top int int java.lang.reflect.Method[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3 /* method */
start local 3 // java.lang.reflect.Method method
3: .line 58
aload 0 /* this */
invokevirtual org.graalvm.compiler.core.test.GraphEncoderTest.getMetaAccess:()Ljdk/vm/ci/meta/MetaAccessProvider;
aload 3 /* method */
invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaMethod:(Ljava/lang/reflect/Executable;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 7 /* javaMethod */
start local 7 // jdk.vm.ci.meta.ResolvedJavaMethod javaMethod
4: .line 59
aload 7 /* javaMethod */
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.hasBytecodes:()Z
ifeq 10
5: .line 60
aload 0 /* this */
aload 7 /* javaMethod */
getstatic org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions.YES:Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
invokevirtual org.graalvm.compiler.core.test.GraphEncoderTest.parseEager:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;)Lorg/graalvm/compiler/nodes/StructuredGraph;
astore 8 /* originalGraph */
start local 8 // org.graalvm.compiler.nodes.StructuredGraph originalGraph
6: .line 61
iload 1 /* canonicalize */
ifeq 9
7: .line 62
new org.graalvm.compiler.phases.tiers.PhaseContext
dup
aload 0 /* this */
invokevirtual org.graalvm.compiler.core.test.GraphEncoderTest.getProviders:()Lorg/graalvm/compiler/phases/util/Providers;
invokespecial org.graalvm.compiler.phases.tiers.PhaseContext.<init>:(Lorg/graalvm/compiler/phases/util/Providers;)V
astore 9 /* context */
start local 9 // org.graalvm.compiler.phases.tiers.PhaseContext context
8: .line 63
new org.graalvm.compiler.phases.common.CanonicalizerPhase
dup
invokespecial org.graalvm.compiler.phases.common.CanonicalizerPhase.<init>:()V
aload 8 /* originalGraph */
aload 9 /* context */
invokevirtual org.graalvm.compiler.phases.common.CanonicalizerPhase.apply:(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
end local 9 // org.graalvm.compiler.phases.tiers.PhaseContext context
9: .line 65
StackMap locals: org.graalvm.compiler.core.test.GraphEncoderTest int java.util.List java.lang.reflect.Method int int java.lang.reflect.Method[] jdk.vm.ci.meta.ResolvedJavaMethod org.graalvm.compiler.nodes.StructuredGraph
StackMap stack:
aload 2 /* originalGraphs */
aload 8 /* originalGraph */
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 // org.graalvm.compiler.nodes.StructuredGraph originalGraph
end local 7 // jdk.vm.ci.meta.ResolvedJavaMethod javaMethod
end local 3 // java.lang.reflect.Method method
10: .line 57
StackMap locals: org.graalvm.compiler.core.test.GraphEncoderTest int java.util.List top int int java.lang.reflect.Method[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
iload 5
if_icmplt 2
12: .line 69
new org.graalvm.compiler.nodes.GraphEncoder
dup
aload 0 /* this */
invokevirtual org.graalvm.compiler.core.test.GraphEncoderTest.getTarget:()Ljdk/vm/ci/code/TargetDescription;
getfield jdk.vm.ci.code.TargetDescription.arch:Ljdk/vm/ci/code/Architecture;
invokespecial org.graalvm.compiler.nodes.GraphEncoder.<init>:(Ljdk/vm/ci/code/Architecture;)V
astore 3 /* encoder */
start local 3 // org.graalvm.compiler.nodes.GraphEncoder encoder
13: .line 70
aload 2 /* originalGraphs */
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 16
StackMap locals: org.graalvm.compiler.core.test.GraphEncoderTest int java.util.List org.graalvm.compiler.nodes.GraphEncoder top java.util.Iterator
StackMap stack:
14: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.StructuredGraph
astore 4 /* originalGraph */
start local 4 // org.graalvm.compiler.nodes.StructuredGraph originalGraph
15: .line 71
aload 3 /* encoder */
aload 4 /* originalGraph */
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.prepare:(Lorg/graalvm/compiler/nodes/StructuredGraph;)V
end local 4 // org.graalvm.compiler.nodes.StructuredGraph originalGraph
16: .line 70
StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
17: .line 73
aload 3 /* encoder */
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.finishPrepare:()V
18: .line 74
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 4 /* startOffsets */
start local 4 // java.util.Map startOffsets
19: .line 75
aload 2 /* originalGraphs */
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 22
StackMap locals: org.graalvm.compiler.core.test.GraphEncoderTest int java.util.List org.graalvm.compiler.nodes.GraphEncoder java.util.Map top java.util.Iterator
StackMap stack:
20: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.StructuredGraph
astore 5 /* originalGraph */
start local 5 // org.graalvm.compiler.nodes.StructuredGraph originalGraph
21: .line 76
aload 4 /* startOffsets */
aload 5 /* originalGraph */
aload 3 /* encoder */
aload 5 /* originalGraph */
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.encode:(Lorg/graalvm/compiler/nodes/StructuredGraph;)J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 // org.graalvm.compiler.nodes.StructuredGraph originalGraph
22: .line 75
StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 20
23: .line 79
aload 2 /* originalGraphs */
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 29
StackMap locals:
StackMap stack:
24: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.StructuredGraph
astore 5 /* originalGraph */
start local 5 // org.graalvm.compiler.nodes.StructuredGraph originalGraph
25: .line 80
new org.graalvm.compiler.nodes.EncodedGraph
dup
aload 3 /* encoder */
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.getEncoding:()[B
aload 4 /* startOffsets */
aload 5 /* originalGraph */
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
aload 3 /* encoder */
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.getObjects:()[Ljava/lang/Object;
aload 3 /* encoder */
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.getNodeClasses:()[Lorg/graalvm/compiler/graph/NodeClass;
aload 5 /* originalGraph */
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getAssumptions:()Ljdk/vm/ci/meta/Assumptions;
26: .line 81
aload 5 /* originalGraph */
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getMethods:()Ljava/util/List;
27: .line 80
invokespecial org.graalvm.compiler.nodes.EncodedGraph.<init>:([BJ[Ljava/lang/Object;[Lorg/graalvm/compiler/graph/NodeClass;Ljdk/vm/ci/meta/Assumptions;Ljava/util/List;)V
astore 7 /* encodedGraph */
start local 7 // org.graalvm.compiler.nodes.EncodedGraph encodedGraph
28: .line 82
aload 5 /* originalGraph */
aload 7 /* encodedGraph */
aload 0 /* this */
invokevirtual org.graalvm.compiler.core.test.GraphEncoderTest.getTarget:()Ljdk/vm/ci/code/TargetDescription;
getfield jdk.vm.ci.code.TargetDescription.arch:Ljdk/vm/ci/code/Architecture;
invokestatic org.graalvm.compiler.nodes.GraphEncoder.verifyEncoding:(Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/nodes/EncodedGraph;Ljdk/vm/ci/code/Architecture;)Z
pop
end local 7 // org.graalvm.compiler.nodes.EncodedGraph encodedGraph
end local 5 // org.graalvm.compiler.nodes.StructuredGraph originalGraph
29: .line 79
StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 24
30: .line 84
return
end local 4 // java.util.Map startOffsets
end local 3 // org.graalvm.compiler.nodes.GraphEncoder encoder
end local 2 // java.util.List originalGraphs
end local 1 // boolean canonicalize
end local 0 // org.graalvm.compiler.core.test.GraphEncoderTest this
LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lorg/graalvm/compiler/core/test/GraphEncoderTest;
0 31 1 canonicalize Z
1 31 2 originalGraphs Ljava/util/List<Lorg/graalvm/compiler/nodes/StructuredGraph;>;
3 10 3 method Ljava/lang/reflect/Method;
4 10 7 javaMethod Ljdk/vm/ci/meta/ResolvedJavaMethod;
6 10 8 originalGraph Lorg/graalvm/compiler/nodes/StructuredGraph;
8 9 9 context Lorg/graalvm/compiler/phases/tiers/PhaseContext;
13 31 3 encoder Lorg/graalvm/compiler/nodes/GraphEncoder;
15 16 4 originalGraph Lorg/graalvm/compiler/nodes/StructuredGraph;
19 31 4 startOffsets Ljava/util/Map<Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Long;>;
21 22 5 originalGraph Lorg/graalvm/compiler/nodes/StructuredGraph;
25 29 5 originalGraph Lorg/graalvm/compiler/nodes/StructuredGraph;
28 29 7 encodedGraph Lorg/graalvm/compiler/nodes/EncodedGraph;
MethodParameters:
Name Flags
canonicalize
}
SourceFile: "GraphEncoderTest.java"
InnerClasses:
public final AllowAssumptions = org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions of org.graalvm.compiler.nodes.StructuredGraph