public class org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy extends org.graalvm.compiler.lir.SwitchStrategy
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy
super_class: org.graalvm.compiler.lir.SwitchStrategy
{
private final java.lang.Integer[] indexes;
descriptor: [Ljava/lang/Integer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.vm.ci.meta.Constant[] keyConstants;
descriptor: [Ljdk/vm/ci/meta/Constant;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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$SequentialStrategy.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(double[], jdk.vm.ci.meta.Constant[]);
descriptor: ([D[Ljdk/vm/ci/meta/Constant;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial org.graalvm.compiler.lir.SwitchStrategy.<init>:([D)V
1: getstatic org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.$assertionsDisabled:Z
ifne 2
aload 1
arraylength
aload 2
arraylength
if_icmpeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy double[] jdk.vm.ci.meta.Constant[]
StackMap stack:
aload 0
aload 2
putfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.keyConstants:[Ljdk/vm/ci/meta/Constant;
3: aload 2
arraylength
istore 3
start local 3 4: aload 0
iload 3
anewarray java.lang.Integer
putfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.indexes:[Ljava/lang/Integer;
5: iconst_0
istore 4
start local 4 6: goto 9
7: StackMap locals: int int
StackMap stack:
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.indexes:[Ljava/lang/Integer;
iload 4
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
8: iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 3
if_icmplt 7
end local 4 10: aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.indexes:[Ljava/lang/Integer;
new org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy$1
dup
aload 0
aload 1
invokespecial org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy$1.<init>:(Lorg/graalvm/compiler/lir/SwitchStrategy$SequentialStrategy;[D)V
invokestatic java.util.Arrays.sort:([Ljava/lang/Object;Ljava/util/Comparator;)V
11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/graalvm/compiler/lir/SwitchStrategy$SequentialStrategy;
0 12 1 keyProbabilities [D
0 12 2 keyConstants [Ljdk/vm/ci/meta/Constant;
4 12 3 keyCount I
6 10 4 i I
MethodParameters:
Name Flags
keyProbabilities final
keyConstants
public jdk.vm.ci.meta.Constant[] getKeyConstants();
descriptor: ()[Ljdk/vm/ci/meta/Constant;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.keyConstants:[Ljdk/vm/ci/meta/Constant;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/SwitchStrategy$SequentialStrategy;
public void run(org.graalvm.compiler.lir.SwitchStrategy$SwitchClosure);
descriptor: (Lorg/graalvm/compiler/lir/SwitchStrategy$SwitchClosure;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 1
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.indexes:[Ljava/lang/Integer;
iload 2
aaload
invokevirtual java.lang.Integer.intValue:()I
getstatic org.graalvm.compiler.core.common.calc.Condition.EQ:Lorg/graalvm/compiler/core/common/calc/Condition;
iconst_0
invokeinterface org.graalvm.compiler.lir.SwitchStrategy$SwitchClosure.conditionalJump:(ILorg/graalvm/compiler/core/common/calc/Condition;Z)V
3: aload 0
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.indexes:[Ljava/lang/Integer;
iload 2
aaload
invokevirtual java.lang.Integer.intValue:()I
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.indexes:[Ljava/lang/Integer;
iload 2
aaload
invokevirtual java.lang.Integer.intValue:()I
iload 2
iconst_1
iadd
invokevirtual org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.registerEffort:(III)V
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.keyConstants:[Ljdk/vm/ci/meta/Constant;
arraylength
iconst_1
isub
if_icmplt 2
end local 2 6: aload 1
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.indexes:[Ljava/lang/Integer;
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.keyConstants:[Ljdk/vm/ci/meta/Constant;
arraylength
iconst_1
isub
aaload
invokevirtual java.lang.Integer.intValue:()I
getstatic org.graalvm.compiler.core.common.calc.Condition.EQ:Lorg/graalvm/compiler/core/common/calc/Condition;
iconst_1
invokeinterface org.graalvm.compiler.lir.SwitchStrategy$SwitchClosure.conditionalJumpOrDefault:(ILorg/graalvm/compiler/core/common/calc/Condition;Z)V
7: aload 0
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.indexes:[Ljava/lang/Integer;
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.keyConstants:[Ljdk/vm/ci/meta/Constant;
arraylength
iconst_1
isub
aaload
invokevirtual java.lang.Integer.intValue:()I
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.indexes:[Ljava/lang/Integer;
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.keyConstants:[Ljdk/vm/ci/meta/Constant;
arraylength
iconst_1
isub
aaload
invokevirtual java.lang.Integer.intValue:()I
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.keyConstants:[Ljdk/vm/ci/meta/Constant;
arraylength
invokevirtual org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.registerEffort:(III)V
8: aload 0
aload 0
getfield org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.keyConstants:[Ljdk/vm/ci/meta/Constant;
arraylength
invokevirtual org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy.registerDefaultEffort:(I)V
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/graalvm/compiler/lir/SwitchStrategy$SequentialStrategy;
0 10 1 closure Lorg/graalvm/compiler/lir/SwitchStrategy$SwitchClosure;
1 6 2 i I
MethodParameters:
Name Flags
closure
}
SourceFile: "SwitchStrategy.java"
NestHost: org.graalvm.compiler.lir.SwitchStrategy
InnerClasses:
public SequentialStrategy = org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy of org.graalvm.compiler.lir.SwitchStrategy
org.graalvm.compiler.lir.SwitchStrategy$SequentialStrategy$1
private abstract SwitchClosure = org.graalvm.compiler.lir.SwitchStrategy$SwitchClosure of org.graalvm.compiler.lir.SwitchStrategy