public final class org.graalvm.compiler.lir.hashing.Hasher
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.lir.hashing.Hasher
super_class: java.lang.Object
{
private final org.graalvm.compiler.lir.hashing.HashFunction function;
descriptor: Lorg/graalvm/compiler/lir/hashing/HashFunction;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int cardinality;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int min;
descriptor: I
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/hashing/Hasher;
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.hashing.Hasher.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public static java.util.Optional<org.graalvm.compiler.lir.hashing.Hasher> forKeys(jdk.vm.ci.meta.JavaConstant[], double);
descriptor: ([Ljdk/vm/ci/meta/JavaConstant;D)Ljava/util/Optional;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.lir.hashing.Hasher.$assertionsDisabled:Z
ifne 1
aload 0
invokestatic org.graalvm.compiler.lir.hashing.Hasher.checkKeyKind:([Ljdk/vm/ci/meta/JavaConstant;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
arraylength
iconst_2
if_icmpgt 3
2: invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
3: StackMap locals:
StackMap stack:
aload 0
arraylength
i2d
dload 1
ddiv
invokestatic java.lang.Math.round:(D)J
l2i
istore 3
start local 3 4: getstatic org.graalvm.compiler.lir.hashing.Hasher.$assertionsDisabled:Z
ifne 5
aload 0
invokestatic org.graalvm.compiler.lir.hashing.Hasher.checkIfSorted:([Ljdk/vm/ci/meta/JavaConstant;)Z
ifne 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals: int
StackMap stack:
new java.util.TreeSet
dup
new org.graalvm.compiler.lir.hashing.Hasher$1
dup
invokespecial org.graalvm.compiler.lir.hashing.Hasher$1.<init>:()V
invokespecial java.util.TreeSet.<init>:(Ljava/util/Comparator;)V
astore 4
start local 4 6: aload 0
iconst_0
aaload
invokeinterface jdk.vm.ci.meta.JavaConstant.asInt:()I
istore 5
start local 5 7: invokestatic org.graalvm.compiler.lir.hashing.HashFunction.instances:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 16
StackMap locals: jdk.vm.ci.meta.JavaConstant[] double int java.util.TreeSet int top java.util.Iterator
StackMap stack:
8: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.lir.hashing.HashFunction
astore 6
start local 6 9: aload 0
arraylength
istore 8
start local 8 10: goto 15
11: StackMap locals: jdk.vm.ci.meta.JavaConstant[] double int java.util.TreeSet int org.graalvm.compiler.lir.hashing.HashFunction java.util.Iterator int
StackMap stack:
aload 0
iload 5
aload 6
iload 8
invokestatic org.graalvm.compiler.lir.hashing.Hasher.isValid:([Ljdk/vm/ci/meta/JavaConstant;ILorg/graalvm/compiler/lir/hashing/HashFunction;I)Z
ifeq 14
12: aload 4
new org.graalvm.compiler.lir.hashing.Hasher
dup
aload 6
iload 8
iload 5
invokespecial org.graalvm.compiler.lir.hashing.Hasher.<init>:(Lorg/graalvm/compiler/lir/hashing/HashFunction;II)V
invokevirtual java.util.TreeSet.add:(Ljava/lang/Object;)Z
pop
13: goto 16
14: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
15: iload 8
iload 3
if_icmplt 11
end local 8 end local 6 16: StackMap locals: jdk.vm.ci.meta.JavaConstant[] double int java.util.TreeSet int top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
17: aload 4
invokevirtual java.util.TreeSet.isEmpty:()Z
ifeq 19
18: invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
19: StackMap locals: jdk.vm.ci.meta.JavaConstant[] double int java.util.TreeSet int
StackMap stack:
aload 4
invokevirtual java.util.TreeSet.first:()Ljava/lang/Object;
checkcast org.graalvm.compiler.lir.hashing.Hasher
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 keys [Ljdk/vm/ci/meta/JavaConstant;
0 20 1 minDensity D
4 20 3 maxCardinality I
6 20 4 candidates Ljava/util/TreeSet<Lorg/graalvm/compiler/lir/hashing/Hasher;>;
7 20 5 min I
9 16 6 f Lorg/graalvm/compiler/lir/hashing/HashFunction;
10 16 8 cardinality I
Signature: ([Ljdk/vm/ci/meta/JavaConstant;D)Ljava/util/Optional<Lorg/graalvm/compiler/lir/hashing/Hasher;>;
MethodParameters:
Name Flags
keys
minDensity
private static boolean checkKeyKind(jdk.vm.ci.meta.JavaConstant[]);
descriptor: ([Ljdk/vm/ci/meta/JavaConstant;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=8, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
aaload
invokeinterface jdk.vm.ci.meta.JavaConstant.getJavaKind:()Ljdk/vm/ci/meta/JavaKind;
getstatic jdk.vm.ci.meta.JavaKind.Int:Ljdk/vm/ci/meta/JavaKind;
if_acmpeq 4
3: new java.lang.AssertionError
dup
ldc "Key at index %d is not an int: %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
iload 1
aaload
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
4: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
5: iload 1
aload 0
arraylength
if_icmplt 2
end local 1 6: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 keys [Ljdk/vm/ci/meta/JavaConstant;
1 6 1 i I
MethodParameters:
Name Flags
keys
private static boolean checkIfSorted(jdk.vm.ci.meta.JavaConstant[]);
descriptor: ([Ljdk/vm/ci/meta/JavaConstant;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
iconst_1
isub
aaload
invokeinterface jdk.vm.ci.meta.JavaConstant.asInt:()I
aload 0
iload 1
aaload
invokeinterface jdk.vm.ci.meta.JavaConstant.asInt:()I
if_icmplt 4
3: new java.lang.AssertionError
dup
ldc "Keys array is not sorted"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
5: iload 1
aload 0
arraylength
if_icmplt 2
end local 1 6: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 keys [Ljdk/vm/ci/meta/JavaConstant;
1 6 1 i I
MethodParameters:
Name Flags
keys
private static boolean isValid(jdk.vm.ci.meta.JavaConstant[], int, org.graalvm.compiler.lir.hashing.HashFunction, int);
descriptor: ([Ljdk/vm/ci/meta/JavaConstant;ILorg/graalvm/compiler/lir/hashing/HashFunction;I)Z
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: new java.util.HashSet
dup
aload 0
arraylength
invokespecial java.util.HashSet.<init>:(I)V
astore 4
start local 4 1: aload 0
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 7
StackMap locals: jdk.vm.ci.meta.JavaConstant[] int org.graalvm.compiler.lir.hashing.HashFunction int java.util.Set top int int jdk.vm.ci.meta.JavaConstant[]
StackMap stack:
2: aload 8
iload 6
aaload
astore 5
start local 5 3: aload 2
aload 5
invokeinterface jdk.vm.ci.meta.JavaConstant.asInt:()I
iload 1
invokevirtual org.graalvm.compiler.lir.hashing.HashFunction.apply:(II)I
iload 3
iconst_1
isub
iand
istore 9
start local 9 4: aload 4
iload 9
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
ifne 6
5: iconst_0
ireturn
end local 9 end local 5 6: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
7: iload 6
iload 7
if_icmplt 2
8: iconst_1
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 keys [Ljdk/vm/ci/meta/JavaConstant;
0 9 1 min I
0 9 2 function Lorg/graalvm/compiler/lir/hashing/HashFunction;
0 9 3 cardinality I
1 9 4 seen Ljava/util/Set<Ljava/lang/Integer;>;
3 6 5 key Ljdk/vm/ci/meta/JavaConstant;
4 6 9 hash I
MethodParameters:
Name Flags
keys
min
function
cardinality
private void <init>(org.graalvm.compiler.lir.hashing.HashFunction, int, int);
descriptor: (Lorg/graalvm/compiler/lir/hashing/HashFunction;II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.lir.hashing.Hasher.function:Lorg/graalvm/compiler/lir/hashing/HashFunction;
2: aload 0
iload 2
putfield org.graalvm.compiler.lir.hashing.Hasher.cardinality:I
3: aload 0
iload 3
putfield org.graalvm.compiler.lir.hashing.Hasher.min:I
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/lir/hashing/Hasher;
0 5 1 function Lorg/graalvm/compiler/lir/hashing/HashFunction;
0 5 2 cardinality I
0 5 3 min I
MethodParameters:
Name Flags
function
cardinality
min
public int hash(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.lir.hashing.Hasher.function:Lorg/graalvm/compiler/lir/hashing/HashFunction;
iload 1
aload 0
getfield org.graalvm.compiler.lir.hashing.Hasher.min:I
invokevirtual org.graalvm.compiler.lir.hashing.HashFunction.apply:(II)I
aload 0
getfield org.graalvm.compiler.lir.hashing.Hasher.cardinality:I
iconst_1
isub
iand
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/hashing/Hasher;
0 1 1 value I
MethodParameters:
Name Flags
value
public jdk.vm.ci.meta.Value hash(jdk.vm.ci.meta.Value, org.graalvm.compiler.lir.gen.ArithmeticLIRGenerator);
descriptor: (Ljdk/vm/ci/meta/Value;Lorg/graalvm/compiler/lir/gen/ArithmeticLIRGenerator;)Ljdk/vm/ci/meta/Value;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.graalvm.compiler.lir.hashing.Hasher.function:Lorg/graalvm/compiler/lir/hashing/HashFunction;
aload 1
aload 2
invokevirtual org.graalvm.compiler.lir.gen.ArithmeticLIRGenerator.getLIRGen:()Lorg/graalvm/compiler/lir/gen/LIRGenerator;
aload 0
getfield org.graalvm.compiler.lir.hashing.Hasher.min:I
invokestatic jdk.vm.ci.meta.JavaConstant.forInt:(I)Ljdk/vm/ci/meta/PrimitiveConstant;
invokevirtual org.graalvm.compiler.lir.gen.LIRGenerator.emitJavaConstant:(Ljdk/vm/ci/meta/JavaConstant;)Ljdk/vm/ci/meta/Value;
aload 2
invokevirtual org.graalvm.compiler.lir.hashing.HashFunction.gen:(Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/Value;Lorg/graalvm/compiler/lir/gen/ArithmeticLIRGenerator;)Ljdk/vm/ci/meta/Value;
astore 3
start local 3 1: aload 2
aload 3
aload 2
invokevirtual org.graalvm.compiler.lir.gen.ArithmeticLIRGenerator.getLIRGen:()Lorg/graalvm/compiler/lir/gen/LIRGenerator;
aload 0
getfield org.graalvm.compiler.lir.hashing.Hasher.cardinality:I
iconst_1
isub
invokestatic jdk.vm.ci.meta.JavaConstant.forInt:(I)Ljdk/vm/ci/meta/PrimitiveConstant;
invokevirtual org.graalvm.compiler.lir.gen.LIRGenerator.emitJavaConstant:(Ljdk/vm/ci/meta/JavaConstant;)Ljdk/vm/ci/meta/Value;
invokevirtual org.graalvm.compiler.lir.gen.ArithmeticLIRGenerator.emitAnd:(Ljdk/vm/ci/meta/Value;Ljdk/vm/ci/meta/Value;)Ljdk/vm/ci/meta/Value;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/lir/hashing/Hasher;
0 2 1 value Ljdk/vm/ci/meta/Value;
0 2 2 gen Lorg/graalvm/compiler/lir/gen/ArithmeticLIRGenerator;
1 2 3 h Ljdk/vm/ci/meta/Value;
MethodParameters:
Name Flags
value
gen
public int effort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.lir.hashing.Hasher.function:Lorg/graalvm/compiler/lir/hashing/HashFunction;
invokevirtual org.graalvm.compiler.lir.hashing.HashFunction.effort:()I
iconst_1
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/hashing/Hasher;
public int cardinality();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.lir.hashing.Hasher.cardinality:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/hashing/Hasher;
public org.graalvm.compiler.lir.hashing.HashFunction function();
descriptor: ()Lorg/graalvm/compiler/lir/hashing/HashFunction;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.lir.hashing.Hasher.function:Lorg/graalvm/compiler/lir/hashing/HashFunction;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/lir/hashing/Hasher;
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
ldc "Hasher[function="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.graalvm.compiler.lir.hashing.Hasher.function:Lorg/graalvm/compiler/lir/hashing/HashFunction;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ", effort="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.graalvm.compiler.lir.hashing.Hasher.effort:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", cardinality="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.graalvm.compiler.lir.hashing.Hasher.cardinality:I
invokevirtual java.lang.StringBuilder.append:(I)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/hashing/Hasher;
}
SourceFile: "Hasher.java"
NestMembers:
org.graalvm.compiler.lir.hashing.Hasher$1
InnerClasses:
org.graalvm.compiler.lir.hashing.Hasher$1