public class org.graalvm.compiler.hotspot.phases.aot.EliminateRedundantInitializationPhase extends org.graalvm.compiler.phases.BasePhase<org.graalvm.compiler.phases.tiers.PhaseContext>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.phases.aot.EliminateRedundantInitializationPhase
super_class: org.graalvm.compiler.phases.BasePhase
{
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/hotspot/phases/aot/EliminateRedundantInitializationPhase;
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.hotspot.phases.aot.EliminateRedundantInitializationPhase.$assertionsDisabled:Z
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.phases.BasePhase.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/phases/aot/EliminateRedundantInitializationPhase;
private static java.util.HashMap<org.graalvm.compiler.nodes.cfg.Block, java.util.ArrayList<org.graalvm.compiler.graph.Node>> findBlocksWithInitializers(org.graalvm.compiler.nodes.cfg.ControlFlowGraph, org.graalvm.compiler.nodes.ConstantNode);
descriptor: (Lorg/graalvm/compiler/nodes/cfg/ControlFlowGraph;Lorg/graalvm/compiler/nodes/ConstantNode;)Ljava/util/HashMap;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.graalvm.compiler.nodes.ConstantNode.usages:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
ldc Lorg/graalvm/compiler/hotspot/nodes/aot/InitializeKlassNode;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.filter:(Ljava/lang/Class;)Lorg/graalvm/compiler/graph/iterators/NodeIterable;
astore 2
start local 2 1: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 3
start local 3 2: aload 2
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
astore 5
goto 10
StackMap locals: org.graalvm.compiler.nodes.cfg.ControlFlowGraph org.graalvm.compiler.nodes.ConstantNode org.graalvm.compiler.graph.iterators.NodeIterable java.util.HashMap top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.graph.Node
astore 4
start local 4 4: aload 0
aload 4
invokevirtual org.graalvm.compiler.nodes.cfg.ControlFlowGraph.blockFor:(Lorg/graalvm/compiler/graph/Node;)Lorg/graalvm/compiler/nodes/cfg/Block;
astore 6
start local 6 5: aload 3
aload 6
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.ArrayList
astore 7
start local 7 6: aload 7
ifnonnull 8
7: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 7
8: StackMap locals: org.graalvm.compiler.nodes.cfg.ControlFlowGraph org.graalvm.compiler.nodes.ConstantNode org.graalvm.compiler.graph.iterators.NodeIterable java.util.HashMap org.graalvm.compiler.graph.Node java.util.Iterator org.graalvm.compiler.nodes.cfg.Block java.util.ArrayList
StackMap stack:
aload 7
aload 4
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
9: aload 3
aload 6
aload 7
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 6 end local 4 10: StackMap locals: org.graalvm.compiler.nodes.cfg.ControlFlowGraph org.graalvm.compiler.nodes.ConstantNode org.graalvm.compiler.graph.iterators.NodeIterable java.util.HashMap top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
11: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 cfg Lorg/graalvm/compiler/nodes/cfg/ControlFlowGraph;
0 12 1 constant Lorg/graalvm/compiler/nodes/ConstantNode;
1 12 2 initializers Lorg/graalvm/compiler/graph/iterators/NodeIterable<*>;
2 12 3 blockToInits Ljava/util/HashMap<Lorg/graalvm/compiler/nodes/cfg/Block;Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;>;
4 10 4 i Lorg/graalvm/compiler/graph/Node;
5 10 6 b Lorg/graalvm/compiler/nodes/cfg/Block;
6 10 7 initsInBlock Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;
Signature: (Lorg/graalvm/compiler/nodes/cfg/ControlFlowGraph;Lorg/graalvm/compiler/nodes/ConstantNode;)Ljava/util/HashMap<Lorg/graalvm/compiler/nodes/cfg/Block;Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;>;
MethodParameters:
Name Flags
cfg
constant
private static java.util.ArrayList<org.graalvm.compiler.nodes.cfg.Block> findBlocksWithMultipleInitializers(java.util.HashMap<org.graalvm.compiler.nodes.cfg.Block, java.util.ArrayList<org.graalvm.compiler.graph.Node>>);
descriptor: (Ljava/util/HashMap;)Ljava/util/ArrayList;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
invokevirtual java.util.HashMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: java.util.HashMap java.util.ArrayList top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 3: aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.util.ArrayList
invokevirtual java.util.ArrayList.size:()I
iconst_1
if_icmple 5
4: aload 1
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.cfg.Block
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 blockToInits Ljava/util/HashMap<Lorg/graalvm/compiler/nodes/cfg/Block;Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;>;
1 7 1 result Ljava/util/ArrayList<Lorg/graalvm/compiler/nodes/cfg/Block;>;
3 5 2 e Ljava/util/Map$Entry<Lorg/graalvm/compiler/nodes/cfg/Block;Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;>;
Signature: (Ljava/util/HashMap<Lorg/graalvm/compiler/nodes/cfg/Block;Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;>;)Ljava/util/ArrayList<Lorg/graalvm/compiler/nodes/cfg/Block;>;
MethodParameters:
Name Flags
blockToInits
private static java.util.ArrayList<org.graalvm.compiler.graph.Node> findRedundantLocalInitializers(java.util.HashMap<org.graalvm.compiler.nodes.cfg.Block, java.util.ArrayList<org.graalvm.compiler.graph.Node>>, java.util.ArrayList<org.graalvm.compiler.nodes.cfg.Block>, org.graalvm.compiler.nodes.ConstantNode);
descriptor: (Ljava/util/HashMap;Ljava/util/ArrayList;Lorg/graalvm/compiler/nodes/ConstantNode;)Ljava/util/ArrayList;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=10, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 1: aload 1
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 5
goto 18
StackMap locals: java.util.HashMap java.util.ArrayList org.graalvm.compiler.nodes.ConstantNode java.util.ArrayList top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.cfg.Block
astore 4
start local 4 3: aconst_null
astore 6
start local 6 4: aload 4
invokevirtual org.graalvm.compiler.nodes.cfg.Block.getNodes:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 8
goto 13
StackMap locals: java.util.HashMap java.util.ArrayList org.graalvm.compiler.nodes.ConstantNode java.util.ArrayList org.graalvm.compiler.nodes.cfg.Block java.util.Iterator org.graalvm.compiler.hotspot.nodes.aot.InitializeKlassNode top java.util.Iterator
StackMap stack:
5: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.graph.Node
astore 7
start local 7 6: aload 7
instanceof org.graalvm.compiler.hotspot.nodes.aot.InitializeKlassNode
ifeq 13
7: aload 7
checkcast org.graalvm.compiler.hotspot.nodes.aot.InitializeKlassNode
astore 9
start local 9 8: aload 9
invokevirtual org.graalvm.compiler.hotspot.nodes.aot.InitializeKlassNode.value:()Lorg/graalvm/compiler/nodes/ValueNode;
aload 2
if_acmpne 13
9: aload 6
ifnonnull 12
10: aload 9
astore 6
11: goto 13
12: StackMap locals: java.util.HashMap java.util.ArrayList org.graalvm.compiler.nodes.ConstantNode java.util.ArrayList org.graalvm.compiler.nodes.cfg.Block java.util.Iterator org.graalvm.compiler.hotspot.nodes.aot.InitializeKlassNode org.graalvm.compiler.graph.Node java.util.Iterator org.graalvm.compiler.hotspot.nodes.aot.InitializeKlassNode
StackMap stack:
aload 3
aload 9
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 9 end local 7 13: StackMap locals: java.util.HashMap java.util.ArrayList org.graalvm.compiler.nodes.ConstantNode java.util.ArrayList org.graalvm.compiler.nodes.cfg.Block java.util.Iterator org.graalvm.compiler.hotspot.nodes.aot.InitializeKlassNode top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
14: getstatic org.graalvm.compiler.hotspot.phases.aot.EliminateRedundantInitializationPhase.$assertionsDisabled:Z
ifne 15
aload 6
ifnonnull 15
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
15: StackMap locals: java.util.HashMap java.util.ArrayList org.graalvm.compiler.nodes.ConstantNode java.util.ArrayList org.graalvm.compiler.nodes.cfg.Block java.util.Iterator org.graalvm.compiler.hotspot.nodes.aot.InitializeKlassNode
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 7
start local 7 16: aload 7
aload 6
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
17: aload 0
aload 4
aload 7
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 6 end local 4 18: StackMap locals: java.util.HashMap java.util.ArrayList org.graalvm.compiler.nodes.ConstantNode java.util.ArrayList top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
19: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 blockToInits Ljava/util/HashMap<Lorg/graalvm/compiler/nodes/cfg/Block;Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;>;
0 20 1 blocksWithMultipleInits Ljava/util/ArrayList<Lorg/graalvm/compiler/nodes/cfg/Block;>;
0 20 2 constant Lorg/graalvm/compiler/nodes/ConstantNode;
1 20 3 result Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;
3 18 4 b Lorg/graalvm/compiler/nodes/cfg/Block;
4 18 6 first Lorg/graalvm/compiler/hotspot/nodes/aot/InitializeKlassNode;
6 13 7 n Lorg/graalvm/compiler/graph/Node;
8 13 9 i Lorg/graalvm/compiler/hotspot/nodes/aot/InitializeKlassNode;
16 18 7 initsInBlock Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;
Signature: (Ljava/util/HashMap<Lorg/graalvm/compiler/nodes/cfg/Block;Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;>;Ljava/util/ArrayList<Lorg/graalvm/compiler/nodes/cfg/Block;>;Lorg/graalvm/compiler/nodes/ConstantNode;)Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;
MethodParameters:
Name Flags
blockToInits
blocksWithMultipleInits
constant
private static java.util.ArrayList<org.graalvm.compiler.graph.Node> findRedundantGlobalInitializers(java.util.HashMap<org.graalvm.compiler.nodes.cfg.Block, java.util.ArrayList<org.graalvm.compiler.graph.Node>>);
descriptor: (Ljava/util/HashMap;)Ljava/util/ArrayList;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=10, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
invokevirtual java.util.HashMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 15
StackMap locals: java.util.HashMap java.util.ArrayList top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 3: aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.cfg.Block
astore 4
start local 4 4: aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.util.ArrayList
astore 5
start local 5 5: aload 5
ifnull 15
6: aload 4
invokevirtual org.graalvm.compiler.nodes.cfg.Block.getDominated:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 14
StackMap locals: java.util.HashMap java.util.ArrayList java.util.Map$Entry java.util.Iterator org.graalvm.compiler.nodes.cfg.Block java.util.ArrayList top java.util.Iterator
StackMap stack:
7: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.cfg.Block
astore 6
start local 6 8: aload 0
aload 6
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.ArrayList
astore 8
start local 8 9: aload 8
ifnull 14
10: getstatic org.graalvm.compiler.hotspot.phases.aot.EliminateRedundantInitializationPhase.$assertionsDisabled:Z
ifne 11
aload 8
invokevirtual java.util.ArrayList.size:()I
iconst_1
if_icmpeq 11
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
11: StackMap locals: java.util.HashMap java.util.ArrayList java.util.Map$Entry java.util.Iterator org.graalvm.compiler.nodes.cfg.Block java.util.ArrayList org.graalvm.compiler.nodes.cfg.Block java.util.Iterator java.util.ArrayList
StackMap stack:
aload 8
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.graph.Node
astore 9
start local 9 12: aload 1
aload 9
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
13: aload 0
aload 6
aconst_null
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 9 end local 8 end local 6 14: StackMap locals: java.util.HashMap java.util.ArrayList java.util.Map$Entry java.util.Iterator org.graalvm.compiler.nodes.cfg.Block java.util.ArrayList top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
end local 5 end local 4 end local 2 15: StackMap locals: java.util.HashMap java.util.ArrayList top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
16: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 blockToInits Ljava/util/HashMap<Lorg/graalvm/compiler/nodes/cfg/Block;Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;>;
1 17 1 result Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;
3 15 2 e Ljava/util/Map$Entry<Lorg/graalvm/compiler/nodes/cfg/Block;Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;>;
4 15 4 currentBlock Lorg/graalvm/compiler/nodes/cfg/Block;
5 15 5 nodesInCurrent Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;
8 14 6 d Lorg/graalvm/compiler/nodes/cfg/Block;
9 14 8 nodesInDominated Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;
12 14 9 n Lorg/graalvm/compiler/graph/Node;
Signature: (Ljava/util/HashMap<Lorg/graalvm/compiler/nodes/cfg/Block;Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;>;)Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;
MethodParameters:
Name Flags
blockToInits
private static java.util.ArrayList<org.graalvm.compiler.graph.Node> processConstantNode(org.graalvm.compiler.nodes.cfg.ControlFlowGraph, org.graalvm.compiler.nodes.ConstantNode);
descriptor: (Lorg/graalvm/compiler/nodes/cfg/ControlFlowGraph;Lorg/graalvm/compiler/nodes/ConstantNode;)Ljava/util/ArrayList;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.graalvm.compiler.hotspot.phases.aot.EliminateRedundantInitializationPhase.findBlocksWithInitializers:(Lorg/graalvm/compiler/nodes/cfg/ControlFlowGraph;Lorg/graalvm/compiler/nodes/ConstantNode;)Ljava/util/HashMap;
astore 2
start local 2 1: aload 2
invokestatic org.graalvm.compiler.hotspot.phases.aot.EliminateRedundantInitializationPhase.findBlocksWithMultipleInitializers:(Ljava/util/HashMap;)Ljava/util/ArrayList;
astore 3
start local 3 2: aload 2
aload 3
aload 1
invokestatic org.graalvm.compiler.hotspot.phases.aot.EliminateRedundantInitializationPhase.findRedundantLocalInitializers:(Ljava/util/HashMap;Ljava/util/ArrayList;Lorg/graalvm/compiler/nodes/ConstantNode;)Ljava/util/ArrayList;
astore 4
start local 4 3: aload 2
invokevirtual java.util.HashMap.size:()I
iconst_1
if_icmple 5
4: aload 4
aload 2
invokestatic org.graalvm.compiler.hotspot.phases.aot.EliminateRedundantInitializationPhase.findRedundantGlobalInitializers:(Ljava/util/HashMap;)Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.addAll:(Ljava/util/Collection;)Z
pop
5: StackMap locals: java.util.HashMap java.util.ArrayList java.util.ArrayList
StackMap stack:
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 6 0 cfg Lorg/graalvm/compiler/nodes/cfg/ControlFlowGraph;
0 6 1 constant Lorg/graalvm/compiler/nodes/ConstantNode;
1 6 2 blockToInits Ljava/util/HashMap<Lorg/graalvm/compiler/nodes/cfg/Block;Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;>;
2 6 3 blocksWithMultipleInits Ljava/util/ArrayList<Lorg/graalvm/compiler/nodes/cfg/Block;>;
3 6 4 redundantInits Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;
Signature: (Lorg/graalvm/compiler/nodes/cfg/ControlFlowGraph;Lorg/graalvm/compiler/nodes/ConstantNode;)Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;
MethodParameters:
Name Flags
cfg
constant
private static void removeInitsAtStaticCalls(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getInvokes:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 2
goto 6
StackMap locals: org.graalvm.compiler.nodes.StructuredGraph top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.Invoke
astore 1
start local 1 2: aload 1
invokeinterface org.graalvm.compiler.nodes.Invoke.classInit:()Lorg/graalvm/compiler/nodes/ValueNode;
ifnull 6
3: aload 1
invokeinterface org.graalvm.compiler.nodes.Invoke.classInit:()Lorg/graalvm/compiler/nodes/ValueNode;
astore 3
start local 3 4: aload 3
aconst_null
invokevirtual org.graalvm.compiler.graph.Node.replaceAtUsages:(Lorg/graalvm/compiler/graph/Node;)V
5: aload 0
aload 3
checkcast org.graalvm.compiler.nodes.FixedWithNextNode
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.removeFixed:(Lorg/graalvm/compiler/nodes/FixedWithNextNode;)V
end local 3 end local 1 6: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
2 6 1 invoke Lorg/graalvm/compiler/nodes/Invoke;
4 6 3 classInit Lorg/graalvm/compiler/graph/Node;
MethodParameters:
Name Flags
graph
private static void removeRedundantInits(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=6, args_size=1
start local 0 0: aload 0
iconst_1
iconst_0
iconst_1
iconst_0
invokestatic org.graalvm.compiler.nodes.cfg.ControlFlowGraph.compute:(Lorg/graalvm/compiler/nodes/StructuredGraph;ZZZZ)Lorg/graalvm/compiler/nodes/cfg/ControlFlowGraph;
astore 1
start local 1 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 2: aload 0
invokestatic org.graalvm.compiler.nodes.ConstantNode.getConstantNodes:(Lorg/graalvm/compiler/nodes/StructuredGraph;)Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.nodes.cfg.ControlFlowGraph java.util.ArrayList top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.ConstantNode
astore 3
start local 3 4: aload 3
invokevirtual org.graalvm.compiler.nodes.ConstantNode.asConstant:()Ljdk/vm/ci/meta/Constant;
astore 5
start local 5 5: aload 5
instanceof jdk.vm.ci.hotspot.HotSpotMetaspaceConstant
ifeq 7
6: aload 2
aload 1
aload 3
invokestatic org.graalvm.compiler.hotspot.phases.aot.EliminateRedundantInitializationPhase.processConstantNode:(Lorg/graalvm/compiler/nodes/cfg/ControlFlowGraph;Lorg/graalvm/compiler/nodes/ConstantNode;)Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.addAll:(Ljava/util/Collection;)Z
pop
end local 5 end local 3 7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: aload 2
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 4
goto 11
StackMap locals:
StackMap stack:
9: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.graph.Node
astore 3
start local 3 10: aload 0
aload 3
checkcast org.graalvm.compiler.nodes.FixedWithNextNode
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.removeFixed:(Lorg/graalvm/compiler/nodes/FixedWithNextNode;)V
end local 3 11: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
1 13 1 cfg Lorg/graalvm/compiler/nodes/cfg/ControlFlowGraph;
2 13 2 redundantInits Ljava/util/ArrayList<Lorg/graalvm/compiler/graph/Node;>;
4 7 3 node Lorg/graalvm/compiler/nodes/ConstantNode;
5 7 5 constant Ljdk/vm/ci/meta/Constant;
10 11 3 n Lorg/graalvm/compiler/graph/Node;
MethodParameters:
Name Flags
graph
protected void run(org.graalvm.compiler.nodes.StructuredGraph, org.graalvm.compiler.phases.tiers.PhaseContext);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/phases/tiers/PhaseContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic org.graalvm.compiler.hotspot.phases.aot.EliminateRedundantInitializationPhase.removeInitsAtStaticCalls:(Lorg/graalvm/compiler/nodes/StructuredGraph;)V
1: aload 1
invokestatic org.graalvm.compiler.hotspot.phases.aot.EliminateRedundantInitializationPhase.removeRedundantInits:(Lorg/graalvm/compiler/nodes/StructuredGraph;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/hotspot/phases/aot/EliminateRedundantInitializationPhase;
0 3 1 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
0 3 2 context Lorg/graalvm/compiler/phases/tiers/PhaseContext;
MethodParameters:
Name Flags
graph
context
protected void run(org.graalvm.compiler.nodes.StructuredGraph, java.lang.Object);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
checkcast org.graalvm.compiler.phases.tiers.PhaseContext
invokevirtual org.graalvm.compiler.hotspot.phases.aot.EliminateRedundantInitializationPhase.run:(Lorg/graalvm/compiler/nodes/StructuredGraph;Lorg/graalvm/compiler/phases/tiers/PhaseContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lorg/graalvm/compiler/phases/BasePhase<Lorg/graalvm/compiler/phases/tiers/PhaseContext;>;
SourceFile: "EliminateRedundantInitializationPhase.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map