public class org.graalvm.compiler.nodes.GraphEncoder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.nodes.GraphEncoder
super_class: java.lang.Object
{
public static final int NULL_ORDER_ID;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int START_NODE_ORDER_ID;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final int FIRST_NODE_ORDER_ID;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
protected static final int BEGIN_NEXT_ORDER_ID_OFFSET;
descriptor: I
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: 1
protected final jdk.vm.ci.code.Architecture architecture;
descriptor: Ljdk/vm/ci/code/Architecture;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final org.graalvm.compiler.core.common.util.FrequencyEncoder<java.lang.Object> objects;
descriptor: Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Lorg/graalvm/compiler/core/common/util/FrequencyEncoder<Ljava/lang/Object;>;
protected final org.graalvm.compiler.core.common.util.FrequencyEncoder<org.graalvm.compiler.graph.NodeClass<?>> nodeClasses;
descriptor: Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Lorg/graalvm/compiler/core/common/util/FrequencyEncoder<Lorg/graalvm/compiler/graph/NodeClass<*>;>;
protected final org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter writer;
descriptor: Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected java.lang.Object[] objectsArray;
descriptor: [Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
protected org.graalvm.compiler.graph.NodeClass<?>[] nodeClassesArray;
descriptor: [Lorg/graalvm/compiler/graph/NodeClass;
flags: (0x0004) ACC_PROTECTED
Signature: [Lorg/graalvm/compiler/graph/NodeClass<*>;
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/nodes/GraphEncoder;
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.nodes.GraphEncoder.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
public static org.graalvm.compiler.nodes.EncodedGraph encodeSingleGraph(org.graalvm.compiler.nodes.StructuredGraph, jdk.vm.ci.code.Architecture);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;Ljdk/vm/ci/code/Architecture;)Lorg/graalvm/compiler/nodes/EncodedGraph;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=9, locals=5, args_size=2
start local 0 start local 1 0: new org.graalvm.compiler.nodes.GraphEncoder
dup
aload 1
invokespecial org.graalvm.compiler.nodes.GraphEncoder.<init>:(Ljdk/vm/ci/code/Architecture;)V
astore 2
start local 2 1: aload 2
aload 0
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.prepare:(Lorg/graalvm/compiler/nodes/StructuredGraph;)V
2: aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.finishPrepare:()V
3: aload 2
aload 0
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.encode:(Lorg/graalvm/compiler/nodes/StructuredGraph;)J
lstore 3
start local 3 4: new org.graalvm.compiler.nodes.EncodedGraph
dup
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.getEncoding:()[B
lload 3
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.getObjects:()[Ljava/lang/Object;
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.getNodeClasses:()[Lorg/graalvm/compiler/graph/NodeClass;
aload 0
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getAssumptions:()Ljdk/vm/ci/meta/Assumptions;
aload 0
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getMethods:()Ljava/util/List;
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
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
0 5 1 architecture Ljdk/vm/ci/code/Architecture;
1 5 2 encoder Lorg/graalvm/compiler/nodes/GraphEncoder;
4 5 3 startOffset J
MethodParameters:
Name Flags
graph
architecture
public void <init>(jdk.vm.ci.code.Architecture);
descriptor: (Ljdk/vm/ci/code/Architecture;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.nodes.GraphEncoder.architecture:Ljdk/vm/ci/code/Architecture;
2: aload 0
invokestatic org.graalvm.compiler.core.common.util.FrequencyEncoder.createEqualityEncoder:()Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
putfield org.graalvm.compiler.nodes.GraphEncoder.objects:Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
3: aload 0
invokestatic org.graalvm.compiler.core.common.util.FrequencyEncoder.createIdentityEncoder:()Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
putfield org.graalvm.compiler.nodes.GraphEncoder.nodeClasses:Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
4: aload 0
aload 1
invokevirtual jdk.vm.ci.code.Architecture.supportsUnalignedMemoryAccess:()Z
invokestatic org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.create:(Z)Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
putfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/nodes/GraphEncoder;
0 6 1 architecture Ljdk/vm/ci/code/Architecture;
MethodParameters:
Name Flags
architecture
public void prepare(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
astore 3
goto 13
StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.nodes.StructuredGraph top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.graph.Node
astore 2
start local 2 2: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.nodeClasses:Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
aload 2
invokevirtual org.graalvm.compiler.graph.Node.getNodeClass:()Lorg/graalvm/compiler/graph/NodeClass;
invokevirtual org.graalvm.compiler.core.common.util.FrequencyEncoder.addObject:(Ljava/lang/Object;)V
3: aload 2
invokevirtual org.graalvm.compiler.graph.Node.getNodeClass:()Lorg/graalvm/compiler/graph/NodeClass;
astore 4
start local 4 4: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.objects:Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
aload 2
invokevirtual org.graalvm.compiler.graph.Node.getNodeSourcePosition:()Lorg/graalvm/compiler/graph/NodeSourcePosition;
invokevirtual org.graalvm.compiler.core.common.util.FrequencyEncoder.addObject:(Ljava/lang/Object;)V
5: iconst_0
istore 5
start local 5 6: goto 10
7: StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.graph.Node java.util.Iterator org.graalvm.compiler.graph.NodeClass int
StackMap stack:
aload 4
invokevirtual org.graalvm.compiler.graph.NodeClass.getData:()Lorg/graalvm/compiler/core/common/Fields;
iload 5
invokevirtual org.graalvm.compiler.core.common.Fields.getType:(I)Ljava/lang/Class;
invokevirtual java.lang.Class.isPrimitive:()Z
ifne 9
8: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.objects:Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
aload 4
invokevirtual org.graalvm.compiler.graph.NodeClass.getData:()Lorg/graalvm/compiler/core/common/Fields;
aload 2
iload 5
invokevirtual org.graalvm.compiler.core.common.Fields.get:(Ljava/lang/Object;I)Ljava/lang/Object;
invokevirtual org.graalvm.compiler.core.common.util.FrequencyEncoder.addObject:(Ljava/lang/Object;)V
9: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
aload 4
invokevirtual org.graalvm.compiler.graph.NodeClass.getData:()Lorg/graalvm/compiler/core/common/Fields;
invokevirtual org.graalvm.compiler.core.common.Fields.getCount:()I
if_icmplt 7
end local 5 11: aload 2
instanceof org.graalvm.compiler.nodes.Invoke
ifeq 13
12: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.objects:Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
aload 2
checkcast org.graalvm.compiler.nodes.Invoke
invokeinterface org.graalvm.compiler.nodes.Invoke.getContextType:()Ljdk/vm/ci/meta/ResolvedJavaType;
invokevirtual org.graalvm.compiler.core.common.util.FrequencyEncoder.addObject:(Ljava/lang/Object;)V
end local 4 end local 2 13: StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.nodes.StructuredGraph top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
14: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/graalvm/compiler/nodes/GraphEncoder;
0 15 1 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
2 13 2 node Lorg/graalvm/compiler/graph/Node;
4 13 4 nodeClass Lorg/graalvm/compiler/graph/NodeClass<*>;
6 11 5 i I
MethodParameters:
Name Flags
graph
public void finishPrepare();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.objects:Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.objects:Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
invokevirtual org.graalvm.compiler.core.common.util.FrequencyEncoder.getLength:()I
anewarray java.lang.Object
invokevirtual org.graalvm.compiler.core.common.util.FrequencyEncoder.encodeAll:([Ljava/lang/Object;)[Ljava/lang/Object;
putfield org.graalvm.compiler.nodes.GraphEncoder.objectsArray:[Ljava/lang/Object;
1: aload 0
aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.nodeClasses:Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.nodeClasses:Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
invokevirtual org.graalvm.compiler.core.common.util.FrequencyEncoder.getLength:()I
anewarray org.graalvm.compiler.graph.NodeClass
invokevirtual org.graalvm.compiler.core.common.util.FrequencyEncoder.encodeAll:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.graalvm.compiler.graph.NodeClass[]
putfield org.graalvm.compiler.nodes.GraphEncoder.nodeClassesArray:[Lorg/graalvm/compiler/graph/NodeClass;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/nodes/GraphEncoder;
public java.lang.Object[] getObjects();
descriptor: ()[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.objectsArray:[Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/nodes/GraphEncoder;
public org.graalvm.compiler.graph.NodeClass<?>[] getNodeClasses();
descriptor: ()[Lorg/graalvm/compiler/graph/NodeClass;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.nodeClassesArray:[Lorg/graalvm/compiler/graph/NodeClass;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/nodes/GraphEncoder;
Signature: ()[Lorg/graalvm/compiler/graph/NodeClass<*>;
public long encode(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=14, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.nodes.GraphEncoder.$assertionsDisabled:Z
ifne 2
aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.objectsArray:[Ljava/lang/Object;
ifnull 1
aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.nodeClassesArray:[Lorg/graalvm/compiler/graph/NodeClass;
ifnonnull 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
ldc "finishPrepare() must be called before encode()"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
new org.graalvm.compiler.nodes.GraphEncoder$NodeOrder
dup
aload 1
invokespecial org.graalvm.compiler.nodes.GraphEncoder$NodeOrder.<init>:(Lorg/graalvm/compiler/nodes/StructuredGraph;)V
astore 2
start local 2 3: aload 2
getfield org.graalvm.compiler.nodes.GraphEncoder$NodeOrder.nextOrderId:I
istore 3
start local 3 4: getstatic org.graalvm.compiler.nodes.GraphEncoder.$assertionsDisabled:Z
ifne 5
aload 2
getfield org.graalvm.compiler.nodes.GraphEncoder$NodeOrder.orderIds:Lorg/graalvm/compiler/graph/NodeMap;
aload 1
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.start:()Lorg/graalvm/compiler/nodes/StartNode;
invokevirtual org.graalvm.compiler.graph.NodeMap.get:(Lorg/graalvm/compiler/graph/Node;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
iconst_1
if_icmpeq 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals: org.graalvm.compiler.nodes.GraphEncoder$NodeOrder int
StackMap stack:
getstatic org.graalvm.compiler.nodes.GraphEncoder.$assertionsDisabled:Z
ifne 6
aload 2
getfield org.graalvm.compiler.nodes.GraphEncoder$NodeOrder.orderIds:Lorg/graalvm/compiler/graph/NodeMap;
aload 1
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.start:()Lorg/graalvm/compiler/nodes/StartNode;
invokevirtual org.graalvm.compiler.nodes.StartNode.next:()Lorg/graalvm/compiler/nodes/FixedNode;
invokevirtual org.graalvm.compiler.graph.NodeMap.get:(Lorg/graalvm/compiler/graph/Node;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
iconst_2
if_icmpeq 6
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
6: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.nodes.GraphEncoder.$assertionsDisabled:Z
ifne 7
iload 3
aload 1
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodeCount:()I
iconst_1
iadd
if_icmpeq 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
iload 3
newarray 11
astore 4
start local 4 8: aload 2
getfield org.graalvm.compiler.nodes.GraphEncoder$NodeOrder.orderIds:Lorg/graalvm/compiler/graph/NodeMap;
invokevirtual org.graalvm.compiler.graph.NodeMap.entries:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 6
goto 53
StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.GraphEncoder$NodeOrder int long[] top java.util.Iterator
StackMap stack:
9: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 10: aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast org.graalvm.compiler.graph.Node
astore 7
start local 7 11: aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
astore 8
start local 8 12: getstatic org.graalvm.compiler.nodes.GraphEncoder.$assertionsDisabled:Z
ifne 13
aload 7
instanceof org.graalvm.compiler.nodes.AbstractBeginNode
ifeq 13
aload 2
getfield org.graalvm.compiler.nodes.GraphEncoder$NodeOrder.orderIds:Lorg/graalvm/compiler/graph/NodeMap;
aload 7
checkcast org.graalvm.compiler.nodes.AbstractBeginNode
invokevirtual org.graalvm.compiler.nodes.AbstractBeginNode.next:()Lorg/graalvm/compiler/nodes/FixedNode;
invokevirtual org.graalvm.compiler.graph.NodeMap.get:(Lorg/graalvm/compiler/graph/Node;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
aload 8
invokevirtual java.lang.Integer.intValue:()I
iconst_1
iadd
if_icmpeq 13
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
13: StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.GraphEncoder$NodeOrder int long[] java.util.Map$Entry java.util.Iterator org.graalvm.compiler.graph.Node java.lang.Integer
StackMap stack:
aload 4
aload 8
invokevirtual java.lang.Integer.intValue:()I
aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.getBytesWritten:()J
lastore
14: aload 7
invokevirtual org.graalvm.compiler.graph.Node.getNodeClass:()Lorg/graalvm/compiler/graph/NodeClass;
astore 9
start local 9 15: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.nodeClasses:Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
aload 9
invokevirtual org.graalvm.compiler.core.common.util.FrequencyEncoder.getIndex:(Ljava/lang/Object;)I
i2l
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.putUV:(J)V
16: aload 0
aload 7
aload 9
invokevirtual org.graalvm.compiler.graph.NodeClass.getData:()Lorg/graalvm/compiler/core/common/Fields;
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeProperties:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/core/common/Fields;)V
17: aload 0
aload 7
aload 9
getstatic org.graalvm.compiler.graph.Edges$Type.Successors:Lorg/graalvm/compiler/graph/Edges$Type;
invokevirtual org.graalvm.compiler.graph.NodeClass.getEdges:(Lorg/graalvm/compiler/graph/Edges$Type;)Lorg/graalvm/compiler/graph/Edges;
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeEdges:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/graph/Edges;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
18: aload 0
aload 7
aload 9
getstatic org.graalvm.compiler.graph.Edges$Type.Inputs:Lorg/graalvm/compiler/graph/Edges$Type;
invokevirtual org.graalvm.compiler.graph.NodeClass.getEdges:(Lorg/graalvm/compiler/graph/Edges$Type;)Lorg/graalvm/compiler/graph/Edges;
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeEdges:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/graph/Edges;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
19: aload 7
instanceof org.graalvm.compiler.nodes.AbstractEndNode
ifeq 30
20: aload 7
checkcast org.graalvm.compiler.nodes.AbstractEndNode
astore 10
start local 10 21: aload 10
invokevirtual org.graalvm.compiler.nodes.AbstractEndNode.merge:()Lorg/graalvm/compiler/nodes/AbstractMergeNode;
astore 11
start local 11 22: aload 0
aload 11
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
23: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
aload 11
invokevirtual org.graalvm.compiler.nodes.AbstractMergeNode.phis:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.count:()I
i2l
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.putUV:(J)V
24: aload 11
invokevirtual org.graalvm.compiler.nodes.AbstractMergeNode.phis:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
astore 13
goto 28
StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.GraphEncoder$NodeOrder int long[] java.util.Map$Entry java.util.Iterator org.graalvm.compiler.graph.Node java.lang.Integer org.graalvm.compiler.graph.NodeClass org.graalvm.compiler.nodes.AbstractEndNode org.graalvm.compiler.nodes.AbstractMergeNode top java.util.Iterator
StackMap stack:
25: aload 13
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.PhiNode
astore 12
start local 12 26: aload 0
aload 12
aload 10
invokevirtual org.graalvm.compiler.nodes.PhiNode.valueAt:(Lorg/graalvm/compiler/nodes/AbstractEndNode;)Lorg/graalvm/compiler/nodes/ValueNode;
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
27: aload 0
aload 12
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
end local 12 28: StackMap locals:
StackMap stack:
aload 13
invokeinterface java.util.Iterator.hasNext:()Z
ifne 25
end local 11 end local 10 29: goto 53
StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.GraphEncoder$NodeOrder int long[] java.util.Map$Entry java.util.Iterator org.graalvm.compiler.graph.Node java.lang.Integer org.graalvm.compiler.graph.NodeClass
StackMap stack:
30: aload 7
instanceof org.graalvm.compiler.nodes.LoopExitNode
ifeq 39
31: aload 7
checkcast org.graalvm.compiler.nodes.LoopExitNode
astore 10
start local 10 32: aload 0
aload 10
invokevirtual org.graalvm.compiler.nodes.LoopExitNode.stateAfter:()Lorg/graalvm/compiler/nodes/FrameState;
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
33: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
aload 10
invokevirtual org.graalvm.compiler.nodes.LoopExitNode.proxies:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.count:()I
i2l
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.putUV:(J)V
34: aload 10
invokevirtual org.graalvm.compiler.nodes.LoopExitNode.proxies:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
astore 12
goto 37
StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.GraphEncoder$NodeOrder int long[] java.util.Map$Entry java.util.Iterator org.graalvm.compiler.graph.Node java.lang.Integer org.graalvm.compiler.graph.NodeClass org.graalvm.compiler.nodes.LoopExitNode top java.util.Iterator
StackMap stack:
35: aload 12
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.ProxyNode
astore 11
start local 11 36: aload 0
aload 11
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
end local 11 37: StackMap locals:
StackMap stack:
aload 12
invokeinterface java.util.Iterator.hasNext:()Z
ifne 35
end local 10 38: goto 53
StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.GraphEncoder$NodeOrder int long[] java.util.Map$Entry java.util.Iterator org.graalvm.compiler.graph.Node java.lang.Integer org.graalvm.compiler.graph.NodeClass
StackMap stack:
39: aload 7
instanceof org.graalvm.compiler.nodes.Invoke
ifeq 53
40: aload 7
checkcast org.graalvm.compiler.nodes.Invoke
astore 10
start local 10 41: getstatic org.graalvm.compiler.nodes.GraphEncoder.$assertionsDisabled:Z
ifne 42
aload 10
invokeinterface org.graalvm.compiler.nodes.Invoke.stateDuring:()Lorg/graalvm/compiler/nodes/FrameState;
ifnull 42
new java.lang.AssertionError
dup
ldc "stateDuring is not used in high-level graphs"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
42: StackMap locals: org.graalvm.compiler.nodes.Invoke
StackMap stack:
aload 0
aload 10
invokeinterface org.graalvm.compiler.nodes.Invoke.getContextType:()Ljdk/vm/ci/meta/ResolvedJavaType;
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeObjectId:(Ljava/lang/Object;)V
43: aload 0
aload 10
invokeinterface org.graalvm.compiler.nodes.Invoke.callTarget:()Lorg/graalvm/compiler/nodes/CallTargetNode;
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
44: aload 0
aload 10
invokeinterface org.graalvm.compiler.nodes.Invoke.stateAfter:()Lorg/graalvm/compiler/nodes/FrameState;
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
45: aload 0
aload 10
invokeinterface org.graalvm.compiler.nodes.Invoke.next:()Lorg/graalvm/compiler/nodes/FixedNode;
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
46: aload 10
instanceof org.graalvm.compiler.nodes.InvokeWithExceptionNode
ifeq 53
47: aload 10
checkcast org.graalvm.compiler.nodes.InvokeWithExceptionNode
astore 11
start local 11 48: aload 11
invokevirtual org.graalvm.compiler.nodes.InvokeWithExceptionNode.exceptionEdge:()Lorg/graalvm/compiler/nodes/AbstractBeginNode;
checkcast org.graalvm.compiler.nodes.java.ExceptionObjectNode
astore 12
start local 12 49: aload 0
aload 11
invokevirtual org.graalvm.compiler.nodes.InvokeWithExceptionNode.next:()Lorg/graalvm/compiler/nodes/AbstractBeginNode;
invokevirtual org.graalvm.compiler.nodes.AbstractBeginNode.next:()Lorg/graalvm/compiler/nodes/FixedNode;
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
50: aload 0
aload 11
invokevirtual org.graalvm.compiler.nodes.InvokeWithExceptionNode.exceptionEdge:()Lorg/graalvm/compiler/nodes/AbstractBeginNode;
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
51: aload 0
aload 12
invokevirtual org.graalvm.compiler.nodes.java.ExceptionObjectNode.stateAfter:()Lorg/graalvm/compiler/nodes/FrameState;
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
52: aload 0
aload 12
invokevirtual org.graalvm.compiler.nodes.java.ExceptionObjectNode.next:()Lorg/graalvm/compiler/nodes/FixedNode;
aload 2
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 5 53: StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.GraphEncoder$NodeOrder int long[] top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
54: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.getBytesWritten:()J
lstore 5
start local 5 55: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
iload 3
i2l
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.putUV:(J)V
56: iconst_0
istore 7
start local 7 57: goto 61
58: StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.GraphEncoder$NodeOrder int long[] long int
StackMap stack:
getstatic org.graalvm.compiler.nodes.GraphEncoder.$assertionsDisabled:Z
ifne 59
iload 7
ifeq 59
iload 7
iconst_1
if_icmpeq 59
aload 4
iload 7
laload
lconst_0
lcmp
ifgt 59
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
59: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
lload 5
aload 4
iload 7
laload
lsub
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.putUV:(J)V
60: iinc 7 1
StackMap locals:
StackMap stack:
61: iload 7
iload 3
if_icmplt 58
end local 7 62: getstatic org.graalvm.compiler.nodes.GraphEncoder.$assertionsDisabled:Z
ifne 63
aload 1
new org.graalvm.compiler.nodes.EncodedGraph
dup
aload 0
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.getEncoding:()[B
lload 5
aload 0
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.getObjects:()[Ljava/lang/Object;
aload 0
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.getNodeClasses:()[Lorg/graalvm/compiler/graph/NodeClass;
aload 1
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getAssumptions:()Ljdk/vm/ci/meta/Assumptions;
aload 1
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getMethods:()Ljava/util/List;
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
aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.architecture: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
ifne 63
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
63: StackMap locals:
StackMap stack:
lload 5
lreturn
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 64 0 this Lorg/graalvm/compiler/nodes/GraphEncoder;
0 64 1 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
3 64 2 nodeOrder Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;
4 64 3 nodeCount I
8 64 4 nodeStartOffsets [J
10 53 5 entry Ljava/util/Map$Entry<Lorg/graalvm/compiler/graph/Node;Ljava/lang/Integer;>;
11 53 7 node Lorg/graalvm/compiler/graph/Node;
12 53 8 orderId Ljava/lang/Integer;
15 53 9 nodeClass Lorg/graalvm/compiler/graph/NodeClass<*>;
21 29 10 end Lorg/graalvm/compiler/nodes/AbstractEndNode;
22 29 11 merge Lorg/graalvm/compiler/nodes/AbstractMergeNode;
26 28 12 phi Lorg/graalvm/compiler/nodes/PhiNode;
32 38 10 exit Lorg/graalvm/compiler/nodes/LoopExitNode;
36 37 11 proxy Lorg/graalvm/compiler/nodes/ProxyNode;
41 53 10 invoke Lorg/graalvm/compiler/nodes/Invoke;
48 53 11 invokeWithExcpetion Lorg/graalvm/compiler/nodes/InvokeWithExceptionNode;
49 53 12 exceptionEdge Lorg/graalvm/compiler/nodes/java/ExceptionObjectNode;
55 64 5 nodeTableStart J
57 62 7 i I
MethodParameters:
Name Flags
graph
public byte[] getEncoding();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.getBytesWritten:()J
invokestatic org.graalvm.compiler.core.common.util.TypeConversion.asS4:(J)I
newarray 8
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.toArray:([B)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/nodes/GraphEncoder;
protected void writeProperties(org.graalvm.compiler.graph.Node, org.graalvm.compiler.core.common.Fields);
descriptor: (Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/core/common/Fields;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.graalvm.compiler.graph.Node.getNodeSourcePosition:()Lorg/graalvm/compiler/graph/NodeSourcePosition;
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeObjectId:(Ljava/lang/Object;)V
1: iconst_0
istore 3
start local 3 2: goto 10
3: StackMap locals: int
StackMap stack:
aload 2
iload 3
invokevirtual org.graalvm.compiler.core.common.Fields.getType:(I)Ljava/lang/Class;
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 7
4: aload 2
aload 1
iload 3
invokevirtual org.graalvm.compiler.core.common.Fields.getRawPrimitive:(Ljava/lang/Object;I)J
lstore 4
start local 4 5: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
lload 4
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.putSV:(J)V
end local 4 6: goto 9
7: StackMap locals:
StackMap stack:
aload 2
aload 1
iload 3
invokevirtual org.graalvm.compiler.core.common.Fields.get:(Ljava/lang/Object;I)Ljava/lang/Object;
astore 4
start local 4 8: aload 0
aload 4
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeObjectId:(Ljava/lang/Object;)V
end local 4 9: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 2
invokevirtual org.graalvm.compiler.core.common.Fields.getCount:()I
if_icmplt 3
end local 3 11: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/graalvm/compiler/nodes/GraphEncoder;
0 12 1 node Lorg/graalvm/compiler/graph/Node;
0 12 2 fields Lorg/graalvm/compiler/core/common/Fields;
2 11 3 idx I
5 6 4 primitive J
8 9 4 property Ljava/lang/Object;
MethodParameters:
Name Flags
node
fields
protected void writeEdges(org.graalvm.compiler.graph.Node, org.graalvm.compiler.graph.Edges, org.graalvm.compiler.nodes.GraphEncoder$NodeOrder);
descriptor: (Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/graph/Edges;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
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: iconst_0
istore 4
start local 4 1: goto 7
2: StackMap locals: int
StackMap stack:
aload 1
aload 2
iload 4
iconst_1
iconst_0
invokestatic org.graalvm.compiler.nodes.GraphDecoder.skipEdge:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/graph/Edges;IZZ)Z
ifeq 4
3: goto 6
4: StackMap locals:
StackMap stack:
aload 1
aload 2
invokevirtual org.graalvm.compiler.graph.Edges.getOffsets:()[J
iload 4
invokestatic org.graalvm.compiler.graph.Edges.getNode:(Lorg/graalvm/compiler/graph/Node;[JI)Lorg/graalvm/compiler/graph/Node;
astore 5
start local 5 5: aload 0
aload 5
aload 3
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
end local 5 6: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
aload 2
invokevirtual org.graalvm.compiler.graph.Edges.getDirectCount:()I
if_icmplt 2
end local 4 8: aload 2
invokevirtual org.graalvm.compiler.graph.Edges.getDirectCount:()I
istore 4
start local 4 9: goto 22
10: StackMap locals:
StackMap stack:
aload 1
aload 2
iload 4
iconst_0
iconst_0
invokestatic org.graalvm.compiler.nodes.GraphDecoder.skipEdge:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/graph/Edges;IZZ)Z
ifeq 12
11: goto 21
12: StackMap locals:
StackMap stack:
aload 1
aload 2
invokevirtual org.graalvm.compiler.graph.Edges.getOffsets:()[J
iload 4
invokestatic org.graalvm.compiler.graph.Edges.getNodeList:(Lorg/graalvm/compiler/graph/Node;[JI)Lorg/graalvm/compiler/graph/NodeList;
astore 5
start local 5 13: aload 5
ifnonnull 16
14: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
ldc -1
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.putSV:(J)V
15: goto 21
16: StackMap locals: org.graalvm.compiler.graph.NodeList
StackMap stack:
aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
aload 5
invokevirtual org.graalvm.compiler.graph.NodeList.size:()I
i2l
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.putSV:(J)V
17: aload 5
invokevirtual org.graalvm.compiler.graph.NodeList.iterator:()Ljava/util/Iterator;
astore 7
goto 20
StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.graph.Node org.graalvm.compiler.graph.Edges org.graalvm.compiler.nodes.GraphEncoder$NodeOrder int org.graalvm.compiler.graph.NodeList top java.util.Iterator
StackMap stack:
18: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.graph.Node
astore 6
start local 6 19: aload 0
aload 6
aload 3
invokevirtual org.graalvm.compiler.nodes.GraphEncoder.writeOrderId:(Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
end local 6 20: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 18
end local 5 21: StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.graph.Node org.graalvm.compiler.graph.Edges org.graalvm.compiler.nodes.GraphEncoder$NodeOrder int
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
22: iload 4
aload 2
invokevirtual org.graalvm.compiler.graph.Edges.getCount:()I
if_icmplt 10
end local 4 23: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/graalvm/compiler/nodes/GraphEncoder;
0 24 1 node Lorg/graalvm/compiler/graph/Node;
0 24 2 edges Lorg/graalvm/compiler/graph/Edges;
0 24 3 nodeOrder Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;
1 8 4 idx I
5 6 5 edge Lorg/graalvm/compiler/graph/Node;
9 23 4 idx I
13 21 5 edgeList Lorg/graalvm/compiler/graph/NodeList<Lorg/graalvm/compiler/graph/Node;>;
19 20 6 edge Lorg/graalvm/compiler/graph/Node;
MethodParameters:
Name Flags
node
edges
nodeOrder
protected void writeOrderId(org.graalvm.compiler.graph.Node, org.graalvm.compiler.nodes.GraphEncoder$NodeOrder);
descriptor: (Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
aload 1
ifnonnull 1
iconst_0
goto 2
StackMap locals:
StackMap stack: org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter
1: aload 2
getfield org.graalvm.compiler.nodes.GraphEncoder$NodeOrder.orderIds:Lorg/graalvm/compiler/graph/NodeMap;
aload 1
invokevirtual org.graalvm.compiler.graph.NodeMap.get:(Lorg/graalvm/compiler/graph/Node;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
StackMap locals: org.graalvm.compiler.nodes.GraphEncoder org.graalvm.compiler.graph.Node org.graalvm.compiler.nodes.GraphEncoder$NodeOrder
StackMap stack: org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter int
2: i2l
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.putUV:(J)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/nodes/GraphEncoder;
0 4 1 node Lorg/graalvm/compiler/graph/Node;
0 4 2 nodeOrder Lorg/graalvm/compiler/nodes/GraphEncoder$NodeOrder;
MethodParameters:
Name Flags
node
nodeOrder
protected void writeObjectId(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.writer:Lorg/graalvm/compiler/core/common/util/UnsafeArrayTypeWriter;
aload 0
getfield org.graalvm.compiler.nodes.GraphEncoder.objects:Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
aload 1
invokevirtual org.graalvm.compiler.core.common.util.FrequencyEncoder.getIndex:(Ljava/lang/Object;)I
i2l
invokevirtual org.graalvm.compiler.core.common.util.UnsafeArrayTypeWriter.putUV:(J)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/nodes/GraphEncoder;
0 2 1 object Ljava/lang/Object;
MethodParameters:
Name Flags
object
public static boolean verifyEncoding(org.graalvm.compiler.nodes.StructuredGraph, org.graalvm.compiler.nodes.EncodedGraph, jdk.vm.ci.code.Architecture);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/nodes/EncodedGraph;Ljdk/vm/ci/code/Architecture;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=9, args_size=3
start local 0 start local 1 start local 2 0: new org.graalvm.compiler.nodes.StructuredGraph
dup
aload 0
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.method:()Ljdk/vm/ci/meta/ResolvedJavaMethod;
getstatic org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions.YES:Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;
getstatic org.graalvm.compiler.core.common.CompilationIdentifier.INVALID_COMPILATION_ID:Lorg/graalvm/compiler/core/common/CompilationRequestIdentifier;
invokespecial org.graalvm.compiler.nodes.StructuredGraph.<init>:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Lorg/graalvm/compiler/nodes/StructuredGraph$AllowAssumptions;Lorg/graalvm/compiler/core/common/CompilationIdentifier;)V
astore 3
start local 3 1: new org.graalvm.compiler.nodes.GraphDecoder
dup
aload 2
invokespecial org.graalvm.compiler.nodes.GraphDecoder.<init>:(Ljdk/vm/ci/code/Architecture;)V
astore 4
start local 4 2: aload 4
aload 3
aload 1
invokevirtual org.graalvm.compiler.nodes.GraphDecoder.decode:(Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/nodes/EncodedGraph;)V
3: aload 3
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.verify:()Z
pop
4: aload 0
aload 3
invokestatic org.graalvm.compiler.nodes.GraphComparison.verifyGraphsEqual:(Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/nodes/StructuredGraph;)Z
pop
5: goto 18
StackMap locals: org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.EncodedGraph jdk.vm.ci.code.Architecture org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.GraphDecoder
StackMap stack: java.lang.Throwable
6: astore 5
start local 5 7: aconst_null
astore 6
aconst_null
astore 7
8: ldc "GraphEncoder"
invokestatic org.graalvm.compiler.debug.Debug.scope:(Ljava/lang/Object;)Lorg/graalvm/compiler/debug/Debug$Scope;
astore 8
start local 8 9: iconst_2
aload 0
ldc "Original Graph"
invokestatic org.graalvm.compiler.debug.Debug.dump:(ILjava/lang/Object;Ljava/lang/String;)V
10: iconst_2
aload 3
ldc "Decoded Graph"
invokestatic org.graalvm.compiler.debug.Debug.dump:(ILjava/lang/Object;Ljava/lang/String;)V
11: aload 8
ifnull 17
aload 8
invokeinterface org.graalvm.compiler.debug.Debug$Scope.close:()V
goto 17
StackMap locals: org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.EncodedGraph jdk.vm.ci.code.Architecture org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.GraphDecoder java.lang.Throwable java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.Debug$Scope
StackMap stack: java.lang.Throwable
12: astore 6
aload 8
ifnull 13
aload 8
invokeinterface org.graalvm.compiler.debug.Debug$Scope.close:()V
end local 8 StackMap locals:
StackMap stack:
13: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
14: astore 7
aload 6
ifnonnull 15
aload 7
astore 6
goto 16
StackMap locals:
StackMap stack:
15: aload 6
aload 7
if_acmpeq 16
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
16: aload 6
athrow
17: StackMap locals:
StackMap stack:
aload 5
athrow
end local 5 18: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 originalGraph Lorg/graalvm/compiler/nodes/StructuredGraph;
0 19 1 encodedGraph Lorg/graalvm/compiler/nodes/EncodedGraph;
0 19 2 architecture Ljdk/vm/ci/code/Architecture;
1 19 3 decodedGraph Lorg/graalvm/compiler/nodes/StructuredGraph;
2 19 4 decoder Lorg/graalvm/compiler/nodes/GraphDecoder;
7 18 5 ex Ljava/lang/Throwable;
9 13 8 scope Lorg/graalvm/compiler/debug/Debug$Scope;
Exception table:
from to target type
4 5 6 Class java.lang.Throwable
9 11 12 any
8 14 14 any
MethodParameters:
Name Flags
originalGraph
encodedGraph
architecture
}
SourceFile: "GraphEncoder.java"
NestMembers:
org.graalvm.compiler.nodes.GraphEncoder$NodeOrder
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public abstract Scope = org.graalvm.compiler.debug.Debug$Scope of org.graalvm.compiler.debug.Debug
public final Type = org.graalvm.compiler.graph.Edges$Type of org.graalvm.compiler.graph.Edges
NodeOrder = org.graalvm.compiler.nodes.GraphEncoder$NodeOrder of org.graalvm.compiler.nodes.GraphEncoder
public final AllowAssumptions = org.graalvm.compiler.nodes.StructuredGraph$AllowAssumptions of org.graalvm.compiler.nodes.StructuredGraph