public abstract class org.graalvm.compiler.lir.SwitchStrategy
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.graalvm.compiler.lir.SwitchStrategy
super_class: java.lang.Object
{
public final double[] keyProbabilities;
descriptor: [D
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private double averageEffort;
descriptor: D
flags: (0x0002) ACC_PRIVATE
private org.graalvm.compiler.lir.SwitchStrategy$EffortClosure effortClosure;
descriptor: Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
flags: (0x0002) ACC_PRIVATE
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/lir/SwitchStrategy;
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.lir.SwitchStrategy.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(double[]);
descriptor: ([D)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc -1.0
putfield org.graalvm.compiler.lir.SwitchStrategy.averageEffort:D
2: getstatic org.graalvm.compiler.lir.SwitchStrategy.$assertionsDisabled:Z
ifne 3
aload 1
arraylength
iconst_2
if_icmpge 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: org.graalvm.compiler.lir.SwitchStrategy double[]
StackMap stack:
aload 0
aload 1
putfield org.graalvm.compiler.lir.SwitchStrategy.keyProbabilities:[D
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/lir/SwitchStrategy;
0 5 1 keyProbabilities [D
MethodParameters:
Name Flags
keyProbabilities
public abstract jdk.vm.ci.meta.Constant[] getKeyConstants();
descriptor: ()[Ljdk/vm/ci/meta/Constant;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public double getAverageEffort();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic org.graalvm.compiler.lir.SwitchStrategy.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy.averageEffort:D
dconst_0
dcmpl
ifge 1
new java.lang.AssertionError
dup
ldc "average effort was not calculated yet for this strategy"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy.averageEffort:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/lir/SwitchStrategy;
protected void registerEffort(int, int, int);
descriptor: (III)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy.effortClosure:Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
ifnull 7
1: iload 1
istore 4
start local 4 2: goto 6
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy.effortClosure:Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
getfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.keyEfforts:[I
iload 4
dup2
iaload
iload 3
iadd
iastore
4: aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy.effortClosure:Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
getfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.keyCounts:[I
iload 4
dup2
iaload
iconst_1
iadd
iastore
5: iinc 4 1
StackMap locals:
StackMap stack:
6: iload 4
iload 2
if_icmple 3
end local 4 7: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/graalvm/compiler/lir/SwitchStrategy;
0 8 1 rangeStart I
0 8 2 rangeEnd I
0 8 3 depth I
2 7 4 i I
MethodParameters:
Name Flags
rangeStart
rangeEnd
depth
protected void registerDefaultEffort(int);
descriptor: (I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy.effortClosure:Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
ifnull 3
1: aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy.effortClosure:Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
dup
getfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.defaultEffort:I
iload 1
iadd
putfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.defaultEffort:I
2: aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy.effortClosure:Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
dup
getfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.defaultCount:I
iconst_1
iadd
putfield org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.defaultCount:I
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/lir/SwitchStrategy;
0 4 1 depth I
MethodParameters:
Name Flags
depth
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "[avgEffort="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy.averageEffort:D
invokevirtual java.lang.StringBuilder.append:(D)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/SwitchStrategy;
public abstract void run(org.graalvm.compiler.lir.SwitchStrategy$SwitchClosure);
descriptor: (Lorg/graalvm/compiler/lir/SwitchStrategy$SwitchClosure;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
closure
private static org.graalvm.compiler.lir.SwitchStrategy[] getStrategies(double[], jdk.vm.ci.meta.JavaConstant[], org.graalvm.compiler.lir.LabelRef[]);
descriptor: ([D[Ljdk/vm/ci/meta/JavaConstant;[Lorg/graalvm/compiler/lir/LabelRef;)[Lorg/graalvm/compiler/lir/SwitchStrategy;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=8, args_size=3
start local 0 start local 1 start local 2 0: iconst_3
anewarray org.graalvm.compiler.lir.SwitchStrategy
dup
iconst_0
new org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy
dup
aload 0
aload 1
invokespecial org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.<init>:([D[Ljdk/vm/ci/meta/Constant;)V
aastore
dup
iconst_1
new org.graalvm.compiler.lir.SwitchStrategy$RangesStrategy
dup
aload 0
aload 1
invokespecial org.graalvm.compiler.lir.SwitchStrategy$RangesStrategy.<init>:([D[Ljdk/vm/ci/meta/JavaConstant;)V
aastore
dup
iconst_2
1: new org.graalvm.compiler.lir.SwitchStrategy$BinaryStrategy
dup
aload 0
aload 1
invokespecial org.graalvm.compiler.lir.SwitchStrategy$BinaryStrategy.<init>:([D[Ljdk/vm/ci/meta/JavaConstant;)V
aastore
2: astore 3
start local 3 3: aload 3
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 10
StackMap locals: double[] jdk.vm.ci.meta.JavaConstant[] org.graalvm.compiler.lir.LabelRef[] org.graalvm.compiler.lir.SwitchStrategy[] top int int org.graalvm.compiler.lir.SwitchStrategy[]
StackMap stack:
4: aload 7
iload 5
aaload
astore 4
start local 4 5: aload 4
new org.graalvm.compiler.lir.SwitchStrategy$EffortClosure
dup
aload 4
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
aload 2
invokespecial org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.<init>:(Lorg/graalvm/compiler/lir/SwitchStrategy;[Lorg/graalvm/compiler/lir/LabelRef;)V
putfield org.graalvm.compiler.lir.SwitchStrategy.effortClosure:Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
6: aload 4
aload 4
getfield org.graalvm.compiler.lir.SwitchStrategy.effortClosure:Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
invokevirtual org.graalvm.compiler.lir.SwitchStrategy.run:(Lorg/graalvm/compiler/lir/SwitchStrategy$SwitchClosure;)V
7: aload 4
aload 4
getfield org.graalvm.compiler.lir.SwitchStrategy.effortClosure:Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
invokevirtual org.graalvm.compiler.lir.SwitchStrategy$EffortClosure.getAverageEffort:()D
putfield org.graalvm.compiler.lir.SwitchStrategy.averageEffort:D
8: aload 4
aconst_null
putfield org.graalvm.compiler.lir.SwitchStrategy.effortClosure:Lorg/graalvm/compiler/lir/SwitchStrategy$EffortClosure;
end local 4 9: iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
iload 6
if_icmplt 4
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 keyProbabilities [D
0 12 1 keyConstants [Ljdk/vm/ci/meta/JavaConstant;
0 12 2 keyTargets [Lorg/graalvm/compiler/lir/LabelRef;
3 12 3 strategies [Lorg/graalvm/compiler/lir/SwitchStrategy;
5 9 4 strategy Lorg/graalvm/compiler/lir/SwitchStrategy;
MethodParameters:
Name Flags
keyProbabilities
keyConstants
keyTargets
public static org.graalvm.compiler.lir.SwitchStrategy getBestStrategy(double[], jdk.vm.ci.meta.JavaConstant[], org.graalvm.compiler.lir.LabelRef[]);
descriptor: ([D[Ljdk/vm/ci/meta/JavaConstant;[Lorg/graalvm/compiler/lir/LabelRef;)Lorg/graalvm/compiler/lir/SwitchStrategy;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic org.graalvm.compiler.lir.SwitchStrategy.getStrategies:([D[Ljdk/vm/ci/meta/JavaConstant;[Lorg/graalvm/compiler/lir/LabelRef;)[Lorg/graalvm/compiler/lir/SwitchStrategy;
astore 3
start local 3 1: ldc 2.147483647E9
dstore 4
start local 4 2: aconst_null
astore 6
start local 6 3: aload 3
dup
astore 10
arraylength
istore 9
iconst_0
istore 8
goto 9
StackMap locals: double[] jdk.vm.ci.meta.JavaConstant[] org.graalvm.compiler.lir.LabelRef[] org.graalvm.compiler.lir.SwitchStrategy[] double org.graalvm.compiler.lir.SwitchStrategy top int int org.graalvm.compiler.lir.SwitchStrategy[]
StackMap stack:
4: aload 10
iload 8
aaload
astore 7
start local 7 5: aload 7
invokevirtual org.graalvm.compiler.lir.SwitchStrategy.getAverageEffort:()D
dload 4
dcmpg
ifge 8
6: aload 7
invokevirtual org.graalvm.compiler.lir.SwitchStrategy.getAverageEffort:()D
dstore 4
7: aload 7
astore 6
end local 7 8: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
9: iload 8
iload 9
if_icmplt 4
10: aload 6
areturn
end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 keyProbabilities [D
0 11 1 keyConstants [Ljdk/vm/ci/meta/JavaConstant;
0 11 2 keyTargets [Lorg/graalvm/compiler/lir/LabelRef;
1 11 3 strategies [Lorg/graalvm/compiler/lir/SwitchStrategy;
2 11 4 bestEffort D
3 11 6 bestStrategy Lorg/graalvm/compiler/lir/SwitchStrategy;
5 8 7 strategy Lorg/graalvm/compiler/lir/SwitchStrategy;
MethodParameters:
Name Flags
keyProbabilities
keyConstants
keyTargets
}
SourceFile: "SwitchStrategy.java"
NestMembers:
org.graalvm.compiler.lir.SwitchStrategy$BaseSwitchClosure org.graalvm.compiler.lir.SwitchStrategy$BinaryStrategy org.graalvm.compiler.lir.SwitchStrategy$EffortClosure org.graalvm.compiler.lir.SwitchStrategy$PrimitiveStrategy org.graalvm.compiler.lir.SwitchStrategy$RangesStrategy org.graalvm.compiler.lir.SwitchStrategy$RangesStrategy$1 org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy$1 org.graalvm.compiler.lir.SwitchStrategy$SwitchClosure
InnerClasses:
public abstract BaseSwitchClosure = org.graalvm.compiler.lir.SwitchStrategy$BaseSwitchClosure of org.graalvm.compiler.lir.SwitchStrategy
public BinaryStrategy = org.graalvm.compiler.lir.SwitchStrategy$BinaryStrategy of org.graalvm.compiler.lir.SwitchStrategy
private EffortClosure = org.graalvm.compiler.lir.SwitchStrategy$EffortClosure of org.graalvm.compiler.lir.SwitchStrategy
private abstract PrimitiveStrategy = org.graalvm.compiler.lir.SwitchStrategy$PrimitiveStrategy of org.graalvm.compiler.lir.SwitchStrategy
public RangesStrategy = org.graalvm.compiler.lir.SwitchStrategy$RangesStrategy of org.graalvm.compiler.lir.SwitchStrategy
public SequentialStrategy = org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy of org.graalvm.compiler.lir.SwitchStrategy
private abstract SwitchClosure = org.graalvm.compiler.lir.SwitchStrategy$SwitchClosure of org.graalvm.compiler.lir.SwitchStrategy