class org.graalvm.compiler.lir.SwitchStrategy$EffortClosure implements org.graalvm.compiler.lir.SwitchStrategy$SwitchClosure
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.graalvm.compiler.lir.SwitchStrategy$EffortClosure
super_class: java.lang.Object
{
private int defaultEffort;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int defaultCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final int[] keyEfforts;
descriptor: [I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int[] keyCounts;
descriptor: [I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.graalvm.compiler.lir.LabelRef[] keyTargets;
descriptor: [Lorg/graalvm/compiler/lir/LabelRef;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
final org.graalvm.compiler.lir.SwitchStrategy this$0;
descriptor: Lorg/graalvm/compiler/lir/SwitchStrategy;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(org.graalvm.compiler.lir.SwitchStrategy, org.graalvm.compiler.lir.LabelRef[]);
descriptor: (Lorg/graalvm/compiler/lir/SwitchStrategy;[Lorg/graalvm/compiler/lir/LabelRef;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.this$0:Lorg/graalvm/compiler/lir/SwitchStrategy;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
getfield org.graalvm.compiler.lir.SwitchStrategy.keyProbabilities:[D
arraylength
newarray 10
putfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.keyEfforts:[I
2: aload 0
aload 1
getfield org.graalvm.compiler.lir.SwitchStrategy.keyProbabilities:[D
arraylength
newarray 10
putfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.keyCounts:[I
3: aload 0
aload 2
putfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.keyTargets:[Lorg/graalvm/compiler/lir/LabelRef;
4: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
0 5 2 keyTargets [Lorg/graalvm/compiler/lir/LabelRef;
MethodParameters:
Name Flags
this$0 final
keyTargets
public void conditionalJump(int, org.graalvm.compiler.core.common.calc.Condition, boolean);
descriptor: (ILorg/graalvm/compiler/core/common/calc/Condition;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
0 1 1 index I
0 1 2 condition Lorg/graalvm/compiler/core/common/calc/Condition;
0 1 3 defaultTarget Z
MethodParameters:
Name Flags
index
condition
defaultTarget
public void conditionalJumpOrDefault(int, org.graalvm.compiler.core.common.calc.Condition, boolean);
descriptor: (ILorg/graalvm/compiler/core/common/calc/Condition;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
0 1 1 index I
0 1 2 condition Lorg/graalvm/compiler/core/common/calc/Condition;
0 1 3 canFallThrough Z
MethodParameters:
Name Flags
index
condition
canFallThrough
public org.graalvm.compiler.asm.Label conditionalJump(int, org.graalvm.compiler.core.common.calc.Condition);
descriptor: (ILorg/graalvm/compiler/core/common/calc/Condition;)Lorg/graalvm/compiler/asm/Label;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
0 1 1 index I
0 1 2 condition Lorg/graalvm/compiler/core/common/calc/Condition;
MethodParameters:
Name Flags
index
condition
public void bind(org.graalvm.compiler.asm.Label);
descriptor: (Lorg/graalvm/compiler/asm/Label;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
0 1 1 label Lorg/graalvm/compiler/asm/Label;
MethodParameters:
Name Flags
label
public boolean isSameTarget(int, int);
descriptor: (II)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.keyTargets:[Lorg/graalvm/compiler/lir/LabelRef;
iload 1
aaload
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.keyTargets:[Lorg/graalvm/compiler/lir/LabelRef;
iload 2
aaload
if_acmpne 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/lir/SwitchStrategy$EffortClosure;
0 2 1 index1 I
0 2 2 index2 I
MethodParameters:
Name Flags
index1
index2
public double getAverageEffort();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: dconst_1
dstore 1
start local 1 1: dconst_0
dstore 3
start local 3 2: iconst_0
istore 5
start local 5 3: goto 7
4: StackMap locals: double double int
StackMap stack:
dload 3
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.keyEfforts:[I
iload 5
iaload
i2d
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.this$0:Lorg/graalvm/compiler/lir/SwitchStrategy;
getfield org.graalvm.compiler.lir.SwitchStrategy.keyProbabilities:[D
iload 5
daload
dmul
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.keyCounts:[I
iload 5
iaload
i2d
ddiv
dadd
dstore 3
5: dload 1
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.this$0:Lorg/graalvm/compiler/lir/SwitchStrategy;
getfield org.graalvm.compiler.lir.SwitchStrategy.keyProbabilities:[D
iload 5
daload
dsub
dstore 1
6: iinc 5 1
StackMap locals:
StackMap stack:
7: iload 5
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.this$0:Lorg/graalvm/compiler/lir/SwitchStrategy;
getfield org.graalvm.compiler.lir.SwitchStrategy.keyProbabilities:[D
arraylength
if_icmplt 4
end local 5 8: dload 3
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.defaultEffort:I
i2d
dload 1
dmul
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.defaultCount:I
i2d
ddiv
dadd
dreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
1 9 1 defaultProbability D
2 9 3 effort D
3 8 5 i I
}
SourceFile: "SwitchStrategy.java"
NestHost: org.graalvm.compiler.lir.SwitchStrategy
InnerClasses:
private EffortClosure = org.graalvm.compiler.lir.SwitchStrategy$EffortClosure of org.graalvm.compiler.lir.SwitchStrategy
private abstract SwitchClosure = org.graalvm.compiler.lir.SwitchStrategy$SwitchClosure of org.graalvm.compiler.lir.SwitchStrategy