public class org.graalvm.compiler.loop.phases.LoopUnswitchingPhase extends org.graalvm.compiler.loop.phases.ContextlessLoopPhase<org.graalvm.compiler.loop.LoopPolicies>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.loop.phases.LoopUnswitchingPhase
super_class: org.graalvm.compiler.loop.phases.ContextlessLoopPhase
{
private static final org.graalvm.compiler.debug.DebugCounter UNSWITCHED;
descriptor: Lorg/graalvm/compiler/debug/DebugCounter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.graalvm.compiler.debug.DebugCounter UNSWITCH_CANDIDATES;
descriptor: Lorg/graalvm/compiler/debug/DebugCounter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.graalvm.compiler.debug.DebugCounter UNSWITCH_EARLY_REJECTS;
descriptor: Lorg/graalvm/compiler/debug/DebugCounter;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "Unswitched"
invokestatic org.graalvm.compiler.debug.Debug.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/DebugCounter;
putstatic org.graalvm.compiler.loop.phases.LoopUnswitchingPhase.UNSWITCHED:Lorg/graalvm/compiler/debug/DebugCounter;
1: ldc "UnswitchCandidates"
invokestatic org.graalvm.compiler.debug.Debug.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/DebugCounter;
putstatic org.graalvm.compiler.loop.phases.LoopUnswitchingPhase.UNSWITCH_CANDIDATES:Lorg/graalvm/compiler/debug/DebugCounter;
2: ldc "UnswitchEarlyRejects"
invokestatic org.graalvm.compiler.debug.Debug.counter:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/debug/DebugCounter;
putstatic org.graalvm.compiler.loop.phases.LoopUnswitchingPhase.UNSWITCH_EARLY_REJECTS:Lorg/graalvm/compiler/debug/DebugCounter;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.graalvm.compiler.loop.LoopPolicies);
descriptor: (Lorg/graalvm/compiler/loop/LoopPolicies;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.graalvm.compiler.loop.phases.ContextlessLoopPhase.<init>:(Lorg/graalvm/compiler/loop/LoopPolicies;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/loop/phases/LoopUnswitchingPhase;
0 2 1 policies Lorg/graalvm/compiler/loop/LoopPolicies;
MethodParameters:
Name Flags
policies
protected void run(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.hasLoops:()Z
ifeq 20
1: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 2: new org.graalvm.compiler.loop.LoopsData
dup
aload 1
invokespecial org.graalvm.compiler.loop.LoopsData.<init>:(Lorg/graalvm/compiler/nodes/StructuredGraph;)V
astore 3
start local 3 3: aload 3
invokevirtual org.graalvm.compiler.loop.LoopsData.outerFirst:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 18
StackMap locals: org.graalvm.compiler.loop.phases.LoopUnswitchingPhase org.graalvm.compiler.nodes.StructuredGraph int org.graalvm.compiler.loop.LoopsData top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.loop.LoopEx
astore 4
start local 4 5: aload 0
invokevirtual org.graalvm.compiler.loop.phases.LoopUnswitchingPhase.getPolicies:()Lorg/graalvm/compiler/loop/LoopPolicies;
aload 4
invokeinterface org.graalvm.compiler.loop.LoopPolicies.shouldTryUnswitch:(Lorg/graalvm/compiler/loop/LoopEx;)Z
ifeq 17
6: aload 4
invokestatic org.graalvm.compiler.loop.phases.LoopTransformations.findUnswitchable:(Lorg/graalvm/compiler/loop/LoopEx;)Ljava/util/List;
astore 6
start local 6 7: aload 6
ifnull 18
8: getstatic org.graalvm.compiler.loop.phases.LoopUnswitchingPhase.UNSWITCH_CANDIDATES:Lorg/graalvm/compiler/debug/DebugCounter;
invokeinterface org.graalvm.compiler.debug.DebugCounter.increment:()V
9: aload 0
invokevirtual org.graalvm.compiler.loop.phases.LoopUnswitchingPhase.getPolicies:()Lorg/graalvm/compiler/loop/LoopPolicies;
aload 4
aload 6
invokeinterface org.graalvm.compiler.loop.LoopPolicies.shouldUnswitch:(Lorg/graalvm/compiler/loop/LoopEx;Ljava/util/List;)Z
ifeq 18
10: invokestatic org.graalvm.compiler.debug.Debug.isLogEnabled:()Z
ifeq 12
11: aload 4
aload 6
invokestatic org.graalvm.compiler.loop.phases.LoopUnswitchingPhase.logUnswitch:(Lorg/graalvm/compiler/loop/LoopEx;Ljava/util/List;)V
12: StackMap locals: org.graalvm.compiler.loop.phases.LoopUnswitchingPhase org.graalvm.compiler.nodes.StructuredGraph int org.graalvm.compiler.loop.LoopsData org.graalvm.compiler.loop.LoopEx java.util.Iterator java.util.List
StackMap stack:
aload 4
aload 6
invokestatic org.graalvm.compiler.loop.phases.LoopTransformations.unswitch:(Lorg/graalvm/compiler/loop/LoopEx;Ljava/util/List;)V
13: iconst_2
aload 1
ldc "After unswitch %s"
aload 6
invokestatic org.graalvm.compiler.debug.Debug.dump:(ILjava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
14: getstatic org.graalvm.compiler.loop.phases.LoopUnswitchingPhase.UNSWITCHED:Lorg/graalvm/compiler/debug/DebugCounter;
invokeinterface org.graalvm.compiler.debug.DebugCounter.increment:()V
15: iconst_1
istore 2
16: goto 19
end local 6 17: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.loop.phases.LoopUnswitchingPhase.UNSWITCH_EARLY_REJECTS:Lorg/graalvm/compiler/debug/DebugCounter;
invokeinterface org.graalvm.compiler.debug.DebugCounter.increment:()V
end local 4 18: StackMap locals: org.graalvm.compiler.loop.phases.LoopUnswitchingPhase org.graalvm.compiler.nodes.StructuredGraph int org.graalvm.compiler.loop.LoopsData top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
end local 3 19: StackMap locals: org.graalvm.compiler.loop.phases.LoopUnswitchingPhase org.graalvm.compiler.nodes.StructuredGraph int
StackMap stack:
iload 2
ifne 1
end local 2 20: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/graalvm/compiler/loop/phases/LoopUnswitchingPhase;
0 21 1 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
2 20 2 unswitched Z
3 19 3 dataUnswitch Lorg/graalvm/compiler/loop/LoopsData;
5 18 4 loop Lorg/graalvm/compiler/loop/LoopEx;
7 17 6 controlSplits Ljava/util/List<Lorg/graalvm/compiler/nodes/ControlSplitNode;>;
MethodParameters:
Name Flags
graph
private static void logUnswitch(org.graalvm.compiler.loop.LoopEx, java.util.List<org.graalvm.compiler.nodes.ControlSplitNode>);
descriptor: (Lorg/graalvm/compiler/loop/LoopEx;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
ldc "Unswitching "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " at "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: org.graalvm.compiler.loop.LoopEx java.util.List java.lang.StringBuilder top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.ControlSplitNode
astore 3
start local 3 4: aload 2
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 3
invokevirtual org.graalvm.compiler.nodes.ControlSplitNode.successors:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.iterator:()Ljava/util/Iterator;
astore 5
start local 5 6: goto 10
7: StackMap locals: org.graalvm.compiler.loop.LoopEx java.util.List java.lang.StringBuilder org.graalvm.compiler.nodes.ControlSplitNode java.util.Iterator java.util.Iterator
StackMap stack:
aload 2
aload 3
aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.nodes.AbstractBeginNode
invokevirtual org.graalvm.compiler.nodes.ControlSplitNode.probability:(Lorg/graalvm/compiler/nodes/AbstractBeginNode;)D
invokevirtual java.lang.StringBuilder.append:(D)Ljava/lang/StringBuilder;
pop
8: aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 10
9: aload 2
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
11: aload 2
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 5 end local 3 12: StackMap locals: org.graalvm.compiler.loop.LoopEx java.util.List java.lang.StringBuilder top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
13: ldc "%s"
aload 2
invokestatic org.graalvm.compiler.debug.Debug.log:(Ljava/lang/String;Ljava/lang/Object;)V
14: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 loop Lorg/graalvm/compiler/loop/LoopEx;
0 15 1 controlSplits Ljava/util/List<Lorg/graalvm/compiler/nodes/ControlSplitNode;>;
1 15 2 sb Ljava/lang/StringBuilder;
4 12 3 controlSplit Lorg/graalvm/compiler/nodes/ControlSplitNode;
6 12 5 it Ljava/util/Iterator<Lorg/graalvm/compiler/graph/Node;>;
Signature: (Lorg/graalvm/compiler/loop/LoopEx;Ljava/util/List<Lorg/graalvm/compiler/nodes/ControlSplitNode;>;)V
MethodParameters:
Name Flags
loop
controlSplits
public float codeSizeIncrease();
descriptor: ()F
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc 10.0
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/loop/phases/LoopUnswitchingPhase;
}
Signature: Lorg/graalvm/compiler/loop/phases/ContextlessLoopPhase<Lorg/graalvm/compiler/loop/LoopPolicies;>;
SourceFile: "LoopUnswitchingPhase.java"