public class org.graalvm.compiler.core.common.util.FrequencyEncoder<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.core.common.util.FrequencyEncoder
super_class: java.lang.Object
{
protected final jdk.internal.vm.compiler.collections.EconomicMap<T, org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry<T>> map;
descriptor: Ljdk/internal/vm/compiler/collections/EconomicMap;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljdk/internal/vm/compiler/collections/EconomicMap<TT;Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;>;
protected boolean containsNull;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
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/core/common/util/FrequencyEncoder;
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.core.common.util.FrequencyEncoder.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public static <T> org.graalvm.compiler.core.common.util.FrequencyEncoder<T> createIdentityEncoder();
descriptor: ()Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.graalvm.compiler.core.common.util.FrequencyEncoder
dup
getstatic jdk.internal.vm.compiler.collections.Equivalence.IDENTITY_WITH_SYSTEM_HASHCODE:Ljdk/internal/vm/compiler/collections/Equivalence;
invokestatic jdk.internal.vm.compiler.collections.EconomicMap.create:(Ljdk/internal/vm/compiler/collections/Equivalence;)Ljdk/internal/vm/compiler/collections/EconomicMap;
invokespecial org.graalvm.compiler.core.common.util.FrequencyEncoder.<init>:(Ljdk/internal/vm/compiler/collections/EconomicMap;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <T:Ljava/lang/Object;>()Lorg/graalvm/compiler/core/common/util/FrequencyEncoder<TT;>;
public static <T> org.graalvm.compiler.core.common.util.FrequencyEncoder<T> createEqualityEncoder();
descriptor: ()Lorg/graalvm/compiler/core/common/util/FrequencyEncoder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.graalvm.compiler.core.common.util.FrequencyEncoder
dup
getstatic jdk.internal.vm.compiler.collections.Equivalence.DEFAULT:Ljdk/internal/vm/compiler/collections/Equivalence;
invokestatic jdk.internal.vm.compiler.collections.EconomicMap.create:(Ljdk/internal/vm/compiler/collections/Equivalence;)Ljdk/internal/vm/compiler/collections/EconomicMap;
invokespecial org.graalvm.compiler.core.common.util.FrequencyEncoder.<init>:(Ljdk/internal/vm/compiler/collections/EconomicMap;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <T:Ljava/lang/Object;>()Lorg/graalvm/compiler/core/common/util/FrequencyEncoder<TT;>;
protected void <init>(jdk.internal.vm.compiler.collections.EconomicMap<T, org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry<T>>);
descriptor: (Ljdk/internal/vm/compiler/collections/EconomicMap;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.core.common.util.FrequencyEncoder.map:Ljdk/internal/vm/compiler/collections/EconomicMap;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/core/common/util/FrequencyEncoder<TT;>;
0 3 1 map Ljdk/internal/vm/compiler/collections/EconomicMap<TT;Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;>;
Signature: (Ljdk/internal/vm/compiler/collections/EconomicMap<TT;Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;>;)V
MethodParameters:
Name Flags
map
public void addObject();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 3
1: aload 0
iconst_1
putfield org.graalvm.compiler.core.common.util.FrequencyEncoder.containsNull:Z
2: return
3: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder.map:Ljdk/internal/vm/compiler/collections/EconomicMap;
aload 1
invokeinterface jdk.internal.vm.compiler.collections.EconomicMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry
astore 2
start local 2 4: aload 2
ifnonnull 7
5: new org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry
dup
aload 1
invokespecial org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry.<init>:(Ljava/lang/Object;)V
astore 2
6: aload 0
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder.map:Ljdk/internal/vm/compiler/collections/EconomicMap;
aload 1
aload 2
invokeinterface jdk.internal.vm.compiler.collections.EconomicMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: StackMap locals: org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry
StackMap stack:
aload 2
dup
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry.frequency:I
iconst_1
iadd
putfield org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry.frequency:I
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/graalvm/compiler/core/common/util/FrequencyEncoder<TT;>;
0 9 1 object TT;
4 9 2 entry Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;
Signature: (TT;)V
MethodParameters:
Name Flags
object
public int getIndex();
descriptor: (Ljava/lang/Object;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 3
1: getstatic org.graalvm.compiler.core.common.util.FrequencyEncoder.$assertionsDisabled:Z
ifne 2
aload 0
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder.containsNull:Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder.map:Ljdk/internal/vm/compiler/collections/EconomicMap;
aload 1
invokeinterface jdk.internal.vm.compiler.collections.EconomicMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry
astore 2
start local 2 4: getstatic org.graalvm.compiler.core.common.util.FrequencyEncoder.$assertionsDisabled:Z
ifne 6
aload 2
ifnull 5
aload 2
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry.index:I
ifge 6
StackMap locals: org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry
StackMap stack:
5: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
6: StackMap locals:
StackMap stack:
aload 2
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry.index:I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/graalvm/compiler/core/common/util/FrequencyEncoder<TT;>;
0 7 1 object TT;
4 7 2 entry Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;
Signature: (TT;)I
MethodParameters:
Name Flags
object
public int getLength();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder.map:Ljdk/internal/vm/compiler/collections/EconomicMap;
invokeinterface jdk.internal.vm.compiler.collections.EconomicMap.size:()I
aload 0
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder.containsNull:Z
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack: int
1: iconst_0
StackMap locals: org.graalvm.compiler.core.common.util.FrequencyEncoder
StackMap stack: int int
2: iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/core/common/util/FrequencyEncoder<TT;>;
public T[] encodeAll();
descriptor: ([Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: getstatic org.graalvm.compiler.core.common.util.FrequencyEncoder.$assertionsDisabled:Z
ifne 1
aload 1
arraylength
aload 0
invokevirtual org.graalvm.compiler.core.common.util.FrequencyEncoder.getLength:()I
if_icmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
aload 1
arraylength
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 2: aload 0
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder.map:Ljdk/internal/vm/compiler/collections/EconomicMap;
invokeinterface jdk.internal.vm.compiler.collections.EconomicMap.getValues:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: org.graalvm.compiler.core.common.util.FrequencyEncoder java.lang.Object[] java.util.List top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry
astore 3
start local 3 4: aload 2
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 2
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/core/common/util/FrequencyEncoder.lambda$0(Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry;Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry;)I (6)
(Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry;Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry;)I
invokeinterface java.util.List.sort:(Ljava/util/Comparator;)V
7: iconst_0
istore 3
start local 3 8: aload 0
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder.containsNull:Z
ifeq 11
9: aload 1
iconst_0
aconst_null
aastore
10: iconst_1
istore 3
11: StackMap locals: org.graalvm.compiler.core.common.util.FrequencyEncoder java.lang.Object[] java.util.List int
StackMap stack:
iconst_0
istore 4
start local 4 12: goto 19
13: StackMap locals: int
StackMap stack:
aload 2
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry
astore 5
start local 5 14: iload 4
iload 3
iadd
istore 6
start local 6 15: aload 5
iload 6
putfield org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry.index:I
16: aload 1
iload 6
aload 5
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry.object:Ljava/lang/Object;
aastore
17: getstatic org.graalvm.compiler.core.common.util.FrequencyEncoder.$assertionsDisabled:Z
ifne 18
aload 5
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry.object:Ljava/lang/Object;
ifnonnull 18
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 6 end local 5 18: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
19: iload 4
aload 2
invokeinterface java.util.List.size:()I
if_icmplt 13
end local 4 20: aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/graalvm/compiler/core/common/util/FrequencyEncoder<TT;>;
0 21 1 allObjects [Ljava/lang/Object;
2 21 2 sortedEntries Ljava/util/List<Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;>;
4 5 3 value Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;
8 21 3 offset I
12 20 4 i I
14 18 5 entry Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;
15 18 6 index I
Signature: ([TT;)[TT;
MethodParameters:
Name Flags
allObjects
private static int lambda$0(org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry, org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry);
descriptor: (Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry;Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry;)I
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry.frequency:I
aload 1
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry.frequency:I
invokestatic java.lang.Integer.compare:(II)I
ineg
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e1 Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;
0 1 1 e2 Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "FrequencyEncoder.java"
NestMembers:
org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
Entry = org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry of org.graalvm.compiler.core.common.util.FrequencyEncoder