public class org.graalvm.compiler.graph.NodeUnionFind extends org.graalvm.compiler.graph.NodeIdAccessor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.graph.NodeUnionFind
super_class: org.graalvm.compiler.graph.NodeIdAccessor
{
private int[] rank;
descriptor: [I
flags: (0x0002) ACC_PRIVATE
private int[] parent;
descriptor: [I
flags: (0x0002) ACC_PRIVATE
public void <init>(org.graalvm.compiler.graph.Graph);
descriptor: (Lorg/graalvm/compiler/graph/Graph;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.graalvm.compiler.graph.NodeIdAccessor.<init>:(Lorg/graalvm/compiler/graph/Graph;)V
1: aload 0
aload 1
invokevirtual org.graalvm.compiler.graph.Graph.nodeIdCount:()I
newarray 10
putfield org.graalvm.compiler.graph.NodeUnionFind.rank:[I
2: aload 0
aload 1
invokevirtual org.graalvm.compiler.graph.Graph.nodeIdCount:()I
newarray 10
putfield org.graalvm.compiler.graph.NodeUnionFind.parent:[I
3: iconst_0
istore 2
start local 2 4: goto 7
5: StackMap locals: org.graalvm.compiler.graph.NodeUnionFind org.graalvm.compiler.graph.Graph int
StackMap stack:
aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.parent:[I
iload 2
iload 2
iastore
6: iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.parent:[I
arraylength
if_icmplt 5
end local 2 8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/graalvm/compiler/graph/NodeUnionFind;
0 9 1 graph Lorg/graalvm/compiler/graph/Graph;
4 8 2 i I
MethodParameters:
Name Flags
graph
public void union(org.graalvm.compiler.graph.Node, org.graalvm.compiler.graph.Node);
descriptor: (Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/graph/Node;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
aload 1
invokevirtual org.graalvm.compiler.graph.NodeUnionFind.getNodeId:(Lorg/graalvm/compiler/graph/Node;)I
aload 0
aload 2
invokevirtual org.graalvm.compiler.graph.NodeUnionFind.getNodeId:(Lorg/graalvm/compiler/graph/Node;)I
invokevirtual org.graalvm.compiler.graph.NodeUnionFind.union:(II)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/graph/NodeUnionFind;
0 2 1 a Lorg/graalvm/compiler/graph/Node;
0 2 2 b Lorg/graalvm/compiler/graph/Node;
MethodParameters:
Name Flags
a
b
public org.graalvm.compiler.graph.Node find(org.graalvm.compiler.graph.Node);
descriptor: (Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/graph/Node;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 0
aload 1
invokevirtual org.graalvm.compiler.graph.NodeUnionFind.getNodeId:(Lorg/graalvm/compiler/graph/Node;)I
invokevirtual org.graalvm.compiler.graph.NodeUnionFind.find:(I)I
istore 2
start local 2 1: aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.graph:Lorg/graalvm/compiler/graph/Graph;
iload 2
invokevirtual org.graalvm.compiler.graph.Graph.getNode:(I)Lorg/graalvm/compiler/graph/Node;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/graph/NodeUnionFind;
0 2 1 a Lorg/graalvm/compiler/graph/Node;
1 2 2 id I
MethodParameters:
Name Flags
a
public boolean equiv(org.graalvm.compiler.graph.Node, org.graalvm.compiler.graph.Node);
descriptor: (Lorg/graalvm/compiler/graph/Node;Lorg/graalvm/compiler/graph/Node;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
aload 1
invokevirtual org.graalvm.compiler.graph.NodeUnionFind.getNodeId:(Lorg/graalvm/compiler/graph/Node;)I
invokevirtual org.graalvm.compiler.graph.NodeUnionFind.find:(I)I
aload 0
aload 0
aload 2
invokevirtual org.graalvm.compiler.graph.NodeUnionFind.getNodeId:(Lorg/graalvm/compiler/graph/Node;)I
invokevirtual org.graalvm.compiler.graph.NodeUnionFind.find:(I)I
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/graph/NodeUnionFind;
0 2 1 a Lorg/graalvm/compiler/graph/Node;
0 2 2 b Lorg/graalvm/compiler/graph/Node;
MethodParameters:
Name Flags
a
b
private void union(int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
invokevirtual org.graalvm.compiler.graph.NodeUnionFind.find:(I)I
istore 3
start local 3 1: aload 0
iload 2
invokevirtual org.graalvm.compiler.graph.NodeUnionFind.find:(I)I
istore 4
start local 4 2: iload 3
iload 4
if_icmpeq 9
3: aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.rank:[I
iload 3
iaload
aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.rank:[I
iload 4
iaload
if_icmpge 6
4: aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.parent:[I
iload 3
iload 4
iastore
5: goto 9
6: StackMap locals: int int
StackMap stack:
aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.parent:[I
iload 4
iload 3
iastore
7: aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.rank:[I
iload 3
iaload
aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.rank:[I
iload 4
iaload
if_icmpne 9
8: aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.rank:[I
iload 3
dup2
iaload
iconst_1
iadd
iastore
9: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/graalvm/compiler/graph/NodeUnionFind;
0 10 1 a I
0 10 2 b I
1 10 3 aRoot I
2 10 4 bRoot I
MethodParameters:
Name Flags
a
b
private int find(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: iload 1
istore 2
start local 2 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.parent:[I
iload 2
aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.parent:[I
aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.parent:[I
iload 2
iaload
iaload
iastore
3: aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.parent:[I
iload 2
iaload
istore 2
4: StackMap locals:
StackMap stack:
iload 2
aload 0
getfield org.graalvm.compiler.graph.NodeUnionFind.parent:[I
iload 2
iaload
if_icmpne 2
5: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/graalvm/compiler/graph/NodeUnionFind;
0 6 1 a I
1 6 2 ret I
MethodParameters:
Name Flags
a
}
SourceFile: "NodeUnionFind.java"