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 java.util.Map<T, org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry<T>> map;
descriptor: Ljava/util/Map;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/Map<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=4, locals=0, args_size=0
0: new org.graalvm.compiler.core.common.util.FrequencyEncoder
dup
new java.util.IdentityHashMap
dup
invokespecial java.util.IdentityHashMap.<init>:()V
invokespecial org.graalvm.compiler.core.common.util.FrequencyEncoder.<init>:(Ljava/util/Map;)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=4, locals=0, args_size=0
0: new org.graalvm.compiler.core.common.util.FrequencyEncoder
dup
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
invokespecial org.graalvm.compiler.core.common.util.FrequencyEncoder.<init>:(Ljava/util/Map;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <T:Ljava/lang/Object;>()Lorg/graalvm/compiler/core/common/util/FrequencyEncoder<TT;>;
protected void <init>(java.util.Map<T, org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry<T>>);
descriptor: (Ljava/util/Map;)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:Ljava/util/Map;
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 Ljava/util/Map<TT;Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;>;
Signature: (Ljava/util/Map<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:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.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:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.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(java.lang.Object);
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:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.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 Ljava/lang/Object;
4 7 2 entry Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;
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:Ljava/util/Map;
invokeinterface java.util.Map.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 0
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder.map:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 2
start local 2 2: 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
3: iconst_0
istore 3
start local 3 4: aload 0
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder.containsNull:Z
ifeq 7
5: aload 1
iconst_0
aconst_null
aastore
6: iconst_1
istore 3
7: StackMap locals: java.util.List int
StackMap stack:
iconst_0
istore 4
start local 4 8: goto 15
9: 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 10: iload 4
iload 3
iadd
istore 6
start local 6 11: aload 5
iload 6
putfield org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry.index:I
12: aload 1
iload 6
aload 5
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry.object:Ljava/lang/Object;
aastore
13: getstatic org.graalvm.compiler.core.common.util.FrequencyEncoder.$assertionsDisabled:Z
ifne 14
aload 5
getfield org.graalvm.compiler.core.common.util.FrequencyEncoder$Entry.object:Ljava/lang/Object;
ifnonnull 14
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 6 end local 5 14: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
15: iload 4
aload 2
invokeinterface java.util.List.size:()I
if_icmplt 9
end local 4 16: aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/graalvm/compiler/core/common/util/FrequencyEncoder<TT;>;
0 17 1 allObjects [Ljava/lang/Object;
2 17 2 sortedEntries Ljava/util/List<Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;>;
4 17 3 offset I
8 16 4 i I
10 14 5 entry Lorg/graalvm/compiler/core/common/util/FrequencyEncoder$Entry<TT;>;
11 14 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