public final class org.graalvm.compiler.core.common.alloc.ComputeBlockOrder
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.core.common.alloc.ComputeBlockOrder
super_class: java.lang.Object
{
private static final int INITIAL_WORKLIST_CAPACITY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 10
private static final int PENALTY_VERSUS_UNSCHEDULED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 10
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/core/common/alloc/ComputeBlockOrder;
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.core.common.alloc.ComputeBlockOrder.$assertionsDisabled:Z
3: 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 java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/common/alloc/ComputeBlockOrder;
public static <T extends org.graalvm.compiler.core.common.cfg.AbstractBlockBase<T>> org.graalvm.compiler.core.common.cfg.AbstractBlockBase<?>[] computeLinearScanOrder(int, T);
descriptor: (ILorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)[Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: new java.util.BitSet
dup
iload 0
invokespecial java.util.BitSet.<init>:(I)V
astore 3
start local 3 2: aload 1
aload 3
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.initializeWorklist:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/BitSet;)Ljava/util/PriorityQueue;
astore 4
start local 4 3: aload 2
aload 4
aload 3
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.computeLinearScanOrder:(Ljava/util/List;Ljava/util/PriorityQueue;Ljava/util/BitSet;)V
4: getstatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.$assertionsDisabled:Z
ifne 5
aload 2
iload 0
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.checkOrder:(Ljava/util/List;I)Z
ifne 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals: java.util.List java.util.BitSet java.util.PriorityQueue
StackMap stack:
aload 2
iconst_0
anewarray org.graalvm.compiler.core.common.cfg.AbstractBlockBase
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.graalvm.compiler.core.common.cfg.AbstractBlockBase[]
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 blockCount I
0 6 1 startBlock TT;
1 6 2 order Ljava/util/List<TT;>;
2 6 3 visitedBlocks Ljava/util/BitSet;
3 6 4 worklist Ljava/util/PriorityQueue<TT;>;
Signature: <T:Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<TT;>;>(ITT;)[Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
MethodParameters:
Name Flags
blockCount
startBlock
public static <T extends org.graalvm.compiler.core.common.cfg.AbstractBlockBase<T>> org.graalvm.compiler.core.common.cfg.AbstractBlockBase<?>[] computeCodeEmittingOrder(int, T);
descriptor: (ILorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)[Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: new java.util.BitSet
dup
iload 0
invokespecial java.util.BitSet.<init>:(I)V
astore 3
start local 3 2: aload 1
aload 3
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.initializeWorklist:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/BitSet;)Ljava/util/PriorityQueue;
astore 4
start local 4 3: aload 2
aload 4
aload 3
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.computeCodeEmittingOrder:(Ljava/util/List;Ljava/util/PriorityQueue;Ljava/util/BitSet;)V
4: getstatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.$assertionsDisabled:Z
ifne 5
aload 2
iload 0
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.checkOrder:(Ljava/util/List;I)Z
ifne 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals: java.util.List java.util.BitSet java.util.PriorityQueue
StackMap stack:
aload 2
iconst_0
anewarray org.graalvm.compiler.core.common.cfg.AbstractBlockBase
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.graalvm.compiler.core.common.cfg.AbstractBlockBase[]
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 blockCount I
0 6 1 startBlock TT;
1 6 2 order Ljava/util/List<TT;>;
2 6 3 visitedBlocks Ljava/util/BitSet;
3 6 4 worklist Ljava/util/PriorityQueue<TT;>;
Signature: <T:Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<TT;>;>(ITT;)[Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;
MethodParameters:
Name Flags
blockCount
startBlock
private static <T extends org.graalvm.compiler.core.common.cfg.AbstractBlockBase<T>> void computeCodeEmittingOrder(java.util.List<T>, java.util.PriorityQueue<T>, java.util.BitSet);
descriptor: (Ljava/util/List;Ljava/util/PriorityQueue;Ljava/util/BitSet;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: goto 3
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.PriorityQueue.poll:()Ljava/lang/Object;
checkcast org.graalvm.compiler.core.common.cfg.AbstractBlockBase
astore 3
start local 3 2: aload 3
aload 0
aload 1
aload 2
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.addPathToCodeEmittingOrder:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/List;Ljava/util/PriorityQueue;Ljava/util/BitSet;)V
end local 3 3: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.PriorityQueue.isEmpty:()Z
ifeq 1
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 order Ljava/util/List<TT;>;
0 5 1 worklist Ljava/util/PriorityQueue<TT;>;
0 5 2 visitedBlocks Ljava/util/BitSet;
2 3 3 nextImportantPath TT;
Signature: <T:Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<TT;>;>(Ljava/util/List<TT;>;Ljava/util/PriorityQueue<TT;>;Ljava/util/BitSet;)V
MethodParameters:
Name Flags
order
worklist
visitedBlocks
private static <T extends org.graalvm.compiler.core.common.cfg.AbstractBlockBase<T>> void computeLinearScanOrder(java.util.List<T>, java.util.PriorityQueue<T>, java.util.BitSet);
descriptor: (Ljava/util/List;Ljava/util/PriorityQueue;Ljava/util/BitSet;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: goto 4
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.PriorityQueue.poll:()Ljava/lang/Object;
checkcast org.graalvm.compiler.core.common.cfg.AbstractBlockBase
astore 3
start local 3 2: StackMap locals: org.graalvm.compiler.core.common.cfg.AbstractBlockBase
StackMap stack:
aload 3
aload 0
aload 1
aload 2
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.addPathToLinearScanOrder:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/List;Ljava/util/PriorityQueue;Ljava/util/BitSet;)Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
astore 3
3: aload 3
ifnonnull 2
end local 3 4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.PriorityQueue.isEmpty:()Z
ifeq 1
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 order Ljava/util/List<TT;>;
0 6 1 worklist Ljava/util/PriorityQueue<TT;>;
0 6 2 visitedBlocks Ljava/util/BitSet;
2 4 3 nextImportantPath TT;
Signature: <T:Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<TT;>;>(Ljava/util/List<TT;>;Ljava/util/PriorityQueue<TT;>;Ljava/util/BitSet;)V
MethodParameters:
Name Flags
order
worklist
visitedBlocks
private static <T extends org.graalvm.compiler.core.common.cfg.AbstractBlockBase<T>> java.util.PriorityQueue<T> initializeWorklist(T, java.util.BitSet);
descriptor: (Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/BitSet;)Ljava/util/PriorityQueue;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: new java.util.PriorityQueue
dup
bipush 10
new org.graalvm.compiler.core.common.alloc.ComputeBlockOrder$BlockOrderComparator
dup
invokespecial org.graalvm.compiler.core.common.alloc.ComputeBlockOrder$BlockOrderComparator.<init>:()V
invokespecial java.util.PriorityQueue.<init>:(ILjava/util/Comparator;)V
astore 2
start local 2 1: aload 2
aload 0
invokevirtual java.util.PriorityQueue.add:(Ljava/lang/Object;)Z
pop
2: aload 1
aload 0
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getId:()I
invokevirtual java.util.BitSet.set:(I)V
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 startBlock TT;
0 4 1 visitedBlocks Ljava/util/BitSet;
1 4 2 result Ljava/util/PriorityQueue<TT;>;
Signature: <T:Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<TT;>;>(TT;Ljava/util/BitSet;)Ljava/util/PriorityQueue<TT;>;
MethodParameters:
Name Flags
startBlock
visitedBlocks
private static <T extends org.graalvm.compiler.core.common.cfg.AbstractBlockBase<T>> T addPathToLinearScanOrder(T, java.util.List<T>, java.util.PriorityQueue<T>, java.util.BitSet);
descriptor: (Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/List;Ljava/util/PriorityQueue;Ljava/util/BitSet;)Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokeinterface java.util.List.size:()I
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.setLinearScanNumber:(I)V
1: aload 1
aload 0
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: aload 0
aload 3
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.findAndMarkMostLikelySuccessor:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/BitSet;)Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
astore 4
start local 4 3: aload 0
aload 2
aload 3
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.enqueueSuccessors:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/PriorityQueue;Ljava/util/BitSet;)V
4: aload 4
ifnull 17
5: aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.isLoopHeader:()Z
ifne 16
aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getPredecessorCount:()I
iconst_1
if_icmple 16
6: dconst_0
dstore 5
start local 5 7: aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getPredecessors:()[Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
dup
astore 10
arraylength
istore 9
iconst_0
istore 8
goto 12
StackMap locals: org.graalvm.compiler.core.common.cfg.AbstractBlockBase java.util.List java.util.PriorityQueue java.util.BitSet org.graalvm.compiler.core.common.cfg.AbstractBlockBase double top int int org.graalvm.compiler.core.common.cfg.AbstractBlockBase[]
StackMap stack:
8: aload 10
iload 8
aaload
astore 7
start local 7 9: aload 7
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLinearScanNumber:()I
iconst_m1
if_icmpne 11
10: dload 5
aload 7
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.probability:()D
dadd
dstore 5
end local 7 11: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
12: iload 8
iload 9
if_icmplt 8
13: dload 5
aload 0
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.probability:()D
ldc 10.0
ddiv
dcmpl
ifle 16
14: aload 3
aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getId:()I
invokevirtual java.util.BitSet.clear:(I)V
15: aconst_null
areturn
end local 5 16: StackMap locals: org.graalvm.compiler.core.common.cfg.AbstractBlockBase java.util.List java.util.PriorityQueue java.util.BitSet org.graalvm.compiler.core.common.cfg.AbstractBlockBase
StackMap stack:
aload 4
areturn
17: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 block TT;
0 18 1 order Ljava/util/List<TT;>;
0 18 2 worklist Ljava/util/PriorityQueue<TT;>;
0 18 3 visitedBlocks Ljava/util/BitSet;
3 18 4 mostLikelySuccessor TT;
7 16 5 unscheduledSum D
9 11 7 pred TT;
Signature: <T:Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<TT;>;>(TT;Ljava/util/List<TT;>;Ljava/util/PriorityQueue<TT;>;Ljava/util/BitSet;)TT;
MethodParameters:
Name Flags
block
order
worklist
visitedBlocks
private static <T extends org.graalvm.compiler.core.common.cfg.AbstractBlockBase<T>> void addPathToCodeEmittingOrder(T, java.util.List<T>, java.util.PriorityQueue<T>, java.util.BitSet);
descriptor: (Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/List;Ljava/util/PriorityQueue;Ljava/util/BitSet;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
astore 4
start local 4 1: goto 18
2: StackMap locals: org.graalvm.compiler.core.common.cfg.AbstractBlockBase
StackMap stack:
aload 4
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.skipLoopHeader:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)Z
ifne 6
3: aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.isLoopHeader:()Z
ifeq 5
4: aload 4
iconst_1
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.setAlign:(Z)V
5: StackMap locals:
StackMap stack:
aload 4
aload 1
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.addBlock:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/List;)V
6: StackMap locals:
StackMap stack:
aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLoop:()Lorg/graalvm/compiler/core/common/cfg/Loop;
astore 5
start local 5 7: aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.isLoopEnd:()Z
ifeq 15
aload 5
invokevirtual org.graalvm.compiler.core.common.cfg.Loop.getHeader:()Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.skipLoopHeader:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)Z
ifeq 15
8: aload 5
invokevirtual org.graalvm.compiler.core.common.cfg.Loop.getHeader:()Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
aload 1
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.addBlock:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/List;)V
9: aload 5
invokevirtual org.graalvm.compiler.core.common.cfg.Loop.getHeader:()Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getSuccessors:()[Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 14
StackMap locals: org.graalvm.compiler.core.common.cfg.AbstractBlockBase java.util.List java.util.PriorityQueue java.util.BitSet org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.core.common.cfg.Loop top int int org.graalvm.compiler.core.common.cfg.AbstractBlockBase[]
StackMap stack:
10: aload 9
iload 7
aaload
astore 6
start local 6 11: aload 6
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLoopDepth:()I
aload 4
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLoopDepth:()I
if_icmpne 13
12: aload 6
iconst_1
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.setAlign:(Z)V
end local 6 13: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
14: iload 7
iload 8
if_icmplt 10
15: StackMap locals: org.graalvm.compiler.core.common.cfg.AbstractBlockBase java.util.List java.util.PriorityQueue java.util.BitSet org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.core.common.cfg.Loop
StackMap stack:
aload 4
aload 3
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.findAndMarkMostLikelySuccessor:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/BitSet;)Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
astore 6
start local 6 16: aload 4
aload 2
aload 3
invokestatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.enqueueSuccessors:(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/PriorityQueue;Ljava/util/BitSet;)V
17: aload 6
astore 4
end local 6 end local 5 18: StackMap locals:
StackMap stack:
aload 4
ifnonnull 2
19: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 initialBlock TT;
0 20 1 order Ljava/util/List<TT;>;
0 20 2 worklist Ljava/util/PriorityQueue<TT;>;
0 20 3 visitedBlocks Ljava/util/BitSet;
1 20 4 block TT;
7 18 5 loop Lorg/graalvm/compiler/core/common/cfg/Loop<TT;>;
11 13 6 successor TT;
16 18 6 mostLikelySuccessor TT;
Signature: <T:Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<TT;>;>(TT;Ljava/util/List<TT;>;Ljava/util/PriorityQueue<TT;>;Ljava/util/BitSet;)V
MethodParameters:
Name Flags
initialBlock
order
worklist
visitedBlocks
private static <T extends org.graalvm.compiler.core.common.cfg.AbstractBlockBase<T>> void addBlock(T, java.util.List<T>);
descriptor: (Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.$assertionsDisabled:Z
ifne 1
aload 1
aload 0
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifeq 1
new java.lang.AssertionError
dup
ldc "Cannot insert block twice"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 1
aload 0
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 header TT;
0 3 1 order Ljava/util/List<TT;>;
Signature: <T:Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<TT;>;>(TT;Ljava/util/List<TT;>;)V
MethodParameters:
Name Flags
header
order
private static <T extends org.graalvm.compiler.core.common.cfg.AbstractBlockBase<T>> T findAndMarkMostLikelySuccessor(T, java.util.BitSet);
descriptor: (Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/BitSet;)Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getSuccessors:()[Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 7
StackMap locals: org.graalvm.compiler.core.common.cfg.AbstractBlockBase java.util.BitSet org.graalvm.compiler.core.common.cfg.AbstractBlockBase top int int org.graalvm.compiler.core.common.cfg.AbstractBlockBase[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: getstatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.$assertionsDisabled:Z
ifne 4
aload 3
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.probability:()D
dconst_0
dcmpl
ifge 4
new java.lang.AssertionError
dup
ldc "Probabilities must be positive"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals: org.graalvm.compiler.core.common.cfg.AbstractBlockBase java.util.BitSet org.graalvm.compiler.core.common.cfg.AbstractBlockBase org.graalvm.compiler.core.common.cfg.AbstractBlockBase int int org.graalvm.compiler.core.common.cfg.AbstractBlockBase[]
StackMap stack:
aload 1
aload 3
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getId:()I
invokevirtual java.util.BitSet.get:(I)Z
ifne 6
aload 3
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLoopDepth:()I
aload 0
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLoopDepth:()I
if_icmplt 6
aload 2
ifnull 5
aload 3
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.probability:()D
aload 2
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.probability:()D
dcmpl
iflt 6
5: StackMap locals:
StackMap stack:
aload 3
astore 2
end local 3 6: StackMap locals: org.graalvm.compiler.core.common.cfg.AbstractBlockBase java.util.BitSet org.graalvm.compiler.core.common.cfg.AbstractBlockBase top int int org.graalvm.compiler.core.common.cfg.AbstractBlockBase[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 5
if_icmplt 2
8: aload 2
ifnull 10
9: aload 1
aload 2
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getId:()I
invokevirtual java.util.BitSet.set:(I)V
10: StackMap locals: org.graalvm.compiler.core.common.cfg.AbstractBlockBase java.util.BitSet org.graalvm.compiler.core.common.cfg.AbstractBlockBase
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 block TT;
0 11 1 visitedBlocks Ljava/util/BitSet;
1 11 2 result TT;
3 6 3 successor TT;
Signature: <T:Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<TT;>;>(TT;Ljava/util/BitSet;)TT;
MethodParameters:
Name Flags
block
visitedBlocks
private static <T extends org.graalvm.compiler.core.common.cfg.AbstractBlockBase<T>> void enqueueSuccessors(T, java.util.PriorityQueue<T>, java.util.BitSet);
descriptor: (Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;Ljava/util/PriorityQueue;Ljava/util/BitSet;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getSuccessors:()[Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 6
StackMap locals: org.graalvm.compiler.core.common.cfg.AbstractBlockBase java.util.PriorityQueue java.util.BitSet top int int org.graalvm.compiler.core.common.cfg.AbstractBlockBase[]
StackMap stack:
1: aload 6
iload 4
aaload
astore 3
start local 3 2: aload 2
aload 3
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getId:()I
invokevirtual java.util.BitSet.get:(I)Z
ifne 5
3: aload 2
aload 3
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getId:()I
invokevirtual java.util.BitSet.set:(I)V
4: aload 1
aload 3
invokevirtual java.util.PriorityQueue.add:(Ljava/lang/Object;)Z
pop
end local 3 5: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
6: iload 4
iload 5
if_icmplt 1
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 block TT;
0 8 1 worklist Ljava/util/PriorityQueue<TT;>;
0 8 2 visitedBlocks Ljava/util/BitSet;
2 5 3 successor TT;
Signature: <T:Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<TT;>;>(TT;Ljava/util/PriorityQueue<TT;>;Ljava/util/BitSet;)V
MethodParameters:
Name Flags
block
worklist
visitedBlocks
private static <T extends org.graalvm.compiler.core.common.cfg.AbstractBlockBase<T>> boolean skipLoopHeader(org.graalvm.compiler.core.common.cfg.AbstractBlockBase<T>);
descriptor: (Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.isLoopHeader:()Z
ifeq 1
aload 0
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.isLoopEnd:()Z
ifne 1
aload 0
invokevirtual org.graalvm.compiler.core.common.cfg.AbstractBlockBase.getLoop:()Lorg/graalvm/compiler/core/common/cfg/Loop;
invokevirtual org.graalvm.compiler.core.common.cfg.Loop.numBackedges:()J
lconst_1
lcmp
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 block Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<TT;>;
Signature: <T:Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<TT;>;>(Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<TT;>;)Z
MethodParameters:
Name Flags
block
private static boolean checkOrder(java.util.List<? extends org.graalvm.compiler.core.common.cfg.AbstractBlockBase<?>>, );
descriptor: (Ljava/util/List;I)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.core.common.alloc.ComputeBlockOrder.$assertionsDisabled:Z
ifne 1
aload 0
invokeinterface java.util.List.size:()I
iload 1
if_icmpeq 1
new java.lang.AssertionError
dup
ldc "Number of blocks in ordering (%d) does not match expected block count (%d)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
invokeinterface java.util.List.size:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 order Ljava/util/List<+Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;>;
0 2 1 expectedBlockCount I
Signature: (Ljava/util/List<+Lorg/graalvm/compiler/core/common/cfg/AbstractBlockBase<*>;>;I)Z
MethodParameters:
Name Flags
order
expectedBlockCount
}
SourceFile: "ComputeBlockOrder.java"
NestMembers:
org.graalvm.compiler.core.common.alloc.ComputeBlockOrder$BlockOrderComparator
InnerClasses:
private BlockOrderComparator = org.graalvm.compiler.core.common.alloc.ComputeBlockOrder$BlockOrderComparator of org.graalvm.compiler.core.common.alloc.ComputeBlockOrder