public final class org.graalvm.compiler.lir.hashing.IntHasher
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.compiler.lir.hashing.IntHasher
super_class: java.lang.Object
{
public final int cardinality;
descriptor: I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final short factor;
descriptor: S
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final byte shift;
descriptor: B
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private static final java.lang.Short[] factors;
descriptor: [Ljava/lang/Short;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final double log2;
descriptor: D
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=4, args_size=0
0: sipush 1000
anewarray java.lang.Short
putstatic org.graalvm.compiler.lir.hashing.IntHasher.factors:[Ljava/lang/Short;
1: iconst_0
istore 0
start local 0 2: iconst_1
istore 1
start local 1 3: goto 16
4: StackMap locals: int int
StackMap stack:
iconst_1
istore 2
start local 2 5: iconst_2
istore 3
start local 3 6: goto 11
7: StackMap locals: int int
StackMap stack:
iload 1
iload 3
irem
ifne 10
8: iconst_0
istore 2
9: goto 12
10: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
11: iload 3
iload 1
if_icmplt 7
end local 3 12: StackMap locals:
StackMap stack:
iload 2
ifeq 15
13: getstatic org.graalvm.compiler.lir.hashing.IntHasher.factors:[Ljava/lang/Short;
iload 0
iload 1
invokestatic java.lang.Short.valueOf:(S)Ljava/lang/Short;
aastore
14: iinc 0 1
15: StackMap locals:
StackMap stack:
iload 1
iconst_1
iadd
i2s
istore 1
end local 2 16: StackMap locals:
StackMap stack:
iload 0
getstatic org.graalvm.compiler.lir.hashing.IntHasher.factors:[Ljava/lang/Short;
arraylength
if_icmplt 4
17: getstatic org.graalvm.compiler.lir.hashing.IntHasher.factors:[Ljava/lang/Short;
invokedynamic compare()Ljava/util/Comparator;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)I
org/graalvm/compiler/lir/hashing/IntHasher.lambda$0(Ljava/lang/Short;Ljava/lang/Short;)I (6)
(Ljava/lang/Short;Ljava/lang/Short;)I
invokestatic java.util.Arrays.sort:([Ljava/lang/Object;Ljava/util/Comparator;)V
end local 1 end local 0 18: ldc 2.0
invokestatic java.lang.Math.log:(D)D
putstatic org.graalvm.compiler.lir.hashing.IntHasher.log2:D
return
LocalVariableTable:
Start End Slot Name Signature
2 18 0 pos I
3 18 1 i S
5 16 2 factor Z
6 12 3 j I
private void <init>(int, short, byte);
descriptor: (ISB)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
iload 1
putfield org.graalvm.compiler.lir.hashing.IntHasher.cardinality:I
2: aload 0
iload 2
putfield org.graalvm.compiler.lir.hashing.IntHasher.factor:S
3: aload 0
iload 3
putfield org.graalvm.compiler.lir.hashing.IntHasher.shift:B
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/IntHasher;
0 5 1 cardinality I
0 5 2 factor S
0 5 3 shift B
MethodParameters:
Name Flags
cardinality
factor
shift
private static boolean canSimplify(short);
descriptor: (S)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
iconst_1
isub
invokestatic org.graalvm.compiler.lir.hashing.IntHasher.isPowerOf2:(I)Z
ifne 1
iload 0
iconst_1
iadd
invokestatic org.graalvm.compiler.lir.hashing.IntHasher.isPowerOf2:(I)Z
ifne 1
iload 0
ineg
invokestatic org.graalvm.compiler.lir.hashing.IntHasher.isPowerOf2:(I)Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 factor S
MethodParameters:
Name Flags
factor
private static boolean isPowerOf2(int);
descriptor: (I)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: iload 0
iload 0
iconst_1
isub
iand
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 n I
MethodParameters:
Name Flags
n
public static java.util.Optional<org.graalvm.compiler.lir.hashing.IntHasher> forKeys(int[]);
descriptor: ([I)Ljava/util/Optional;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=13, args_size=1
start local 0 0: aload 0
arraylength
istore 1
start local 1 1: iconst_1
aload 0
arraylength
iconst_1
isub
i2d
invokestatic java.lang.Math.log:(D)D
getstatic org.graalvm.compiler.lir.hashing.IntHasher.log2:D
ddiv
d2i
iconst_1
iadd
ishl
istore 2
start local 2 2: iload 2
i2d
invokestatic java.lang.Math.log:(D)D
getstatic org.graalvm.compiler.lir.hashing.IntHasher.log2:D
ddiv
dconst_1
dadd
d2i
istore 3
start local 3 3: iload 1
newarray 10
astore 4
start local 4 4: iload 2
newarray 4
astore 5
start local 5 5: getstatic org.graalvm.compiler.lir.hashing.IntHasher.factors:[Ljava/lang/Short;
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 26
StackMap locals: int[] int int int int[] boolean[] top int int java.lang.Short[]
StackMap stack:
6: aload 9
iload 7
aaload
invokevirtual java.lang.Short.shortValue:()S
istore 6
start local 6 7: iconst_0
istore 10
start local 10 8: goto 11
9: StackMap locals: int[] int int int int[] boolean[] int int int java.lang.Short[] int
StackMap stack:
aload 4
iload 10
aload 0
iload 10
iaload
iload 6
imul
iastore
10: iinc 10 1
StackMap locals:
StackMap stack:
11: iload 10
iload 1
if_icmplt 9
end local 10 12: iconst_0
istore 10
start local 10 13: goto 24
14: StackMap locals: int[] int int int int[] boolean[] int int int java.lang.Short[] int
StackMap stack:
aload 5
iconst_0
invokestatic java.util.Arrays.fill:([ZZ)V
15: iconst_0
istore 11
start local 11 16: goto 21
17: StackMap locals: int
StackMap stack:
aload 4
iload 11
iaload
iload 10
ishr
iload 2
iconst_1
isub
iand
istore 12
start local 12 18: aload 5
iload 12
baload
ifne 23
19: aload 5
iload 12
iconst_1
bastore
end local 12 20: iinc 11 1
StackMap locals:
StackMap stack:
21: iload 11
iload 1
if_icmplt 17
end local 11 22: new org.graalvm.compiler.lir.hashing.IntHasher
dup
iload 2
iload 6
iload 10
invokespecial org.graalvm.compiler.lir.hashing.IntHasher.<init>:(ISB)V
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
23: StackMap locals:
StackMap stack:
iload 10
iconst_1
iadd
i2b
istore 10
StackMap locals:
StackMap stack:
24: iload 10
bipush 32
iload 3
isub
if_icmplt 14
end local 10 end local 6 25: iinc 7 1
StackMap locals: int[] int int int int[] boolean[] top int int java.lang.Short[]
StackMap stack:
26: iload 7
iload 8
if_icmplt 6
27: invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 keys [I
1 28 1 length I
2 28 2 cardinality I
3 28 3 maskBits I
4 28 4 scratch [I
5 28 5 seen [Z
7 25 6 factor S
8 12 10 i I
13 25 10 shift B
16 22 11 h I
18 20 12 idx I
Signature: ([I)Ljava/util/Optional<Lorg/graalvm/compiler/lir/hashing/IntHasher;>;
MethodParameters:
Name Flags
keys
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: iload 1
aload 0
getfield org.graalvm.compiler.lir.hashing.IntHasher.factor:S
imul
aload 0
getfield org.graalvm.compiler.lir.hashing.IntHasher.shift:B
ishr
aload 0
getfield org.graalvm.compiler.lir.hashing.IntHasher.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/IntHasher;
0 1 1 value I
MethodParameters:
Name Flags
value
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 "IntHasher [cardinality="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.graalvm.compiler.lir.hashing.IntHasher.cardinality:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", factor="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.graalvm.compiler.lir.hashing.IntHasher.factor:S
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", shift="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.graalvm.compiler.lir.hashing.IntHasher.shift:B
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/IntHasher;
private static int lambda$0(java.lang.Short, java.lang.Short);
descriptor: (Ljava/lang/Short;Ljava/lang/Short;)I
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.Short.shortValue:()S
invokestatic org.graalvm.compiler.lir.hashing.IntHasher.canSimplify:(S)Z
ifeq 2
aload 1
invokevirtual java.lang.Short.shortValue:()S
invokestatic org.graalvm.compiler.lir.hashing.IntHasher.canSimplify:(S)Z
ifne 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Short.shortValue:()S
invokestatic org.graalvm.compiler.lir.hashing.IntHasher.canSimplify:(S)Z
ifne 4
aload 1
invokevirtual java.lang.Short.shortValue:()S
invokestatic org.graalvm.compiler.lir.hashing.IntHasher.canSimplify:(S)Z
ifeq 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 a Ljava/lang/Short;
0 5 1 b Ljava/lang/Short;
}
SourceFile: "IntHasher.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles