class jdk.nashorn.internal.runtime.arrays.SparseArrayData extends jdk.nashorn.internal.runtime.arrays.ArrayData
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.nashorn.internal.runtime.arrays.SparseArrayData
super_class: jdk.nashorn.internal.runtime.arrays.ArrayData
{
static final int MAX_DENSE_LENGTH;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 131072
private jdk.nashorn.internal.runtime.arrays.ArrayData underlying;
descriptor: Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0002) ACC_PRIVATE
private final long maxDenseLength;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.TreeMap<java.lang.Long, java.lang.Object> sparseMap;
descriptor: Ljava/util/TreeMap;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/TreeMap<Ljava/lang/Long;Ljava/lang/Object;>;
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 Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
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 jdk.nashorn.internal.runtime.arrays.SparseArrayData.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.nashorn.internal.runtime.arrays.ArrayData, long);
descriptor: (Ljdk/nashorn/internal/runtime/arrays/ArrayData;J)V
flags: (0x0000)
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
lload 2
new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
invokespecial jdk.nashorn.internal.runtime.arrays.SparseArrayData.<init>:(Ljdk/nashorn/internal/runtime/arrays/ArrayData;JLjava/util/TreeMap;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 2 1 underlying Ljdk/nashorn/internal/runtime/arrays/ArrayData;
0 2 2 length J
MethodParameters:
Name Flags
underlying final
length final
private void <init>(jdk.nashorn.internal.runtime.arrays.ArrayData, long, java.util.TreeMap<java.lang.Long, java.lang.Object>);
descriptor: (Ljdk/nashorn/internal/runtime/arrays/ArrayData;JLjava/util/TreeMap;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
lload 2
invokespecial jdk.nashorn.internal.runtime.arrays.ArrayData.<init>:(J)V
1: getstatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.$assertionsDisabled:Z
ifne 2
aload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lload 2
lcmp
ifle 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: jdk.nashorn.internal.runtime.arrays.SparseArrayData jdk.nashorn.internal.runtime.arrays.ArrayData long java.util.TreeMap
StackMap stack:
aload 0
aload 1
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
3: aload 0
aload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
4: aload 0
aload 4
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
5: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 6 1 underlying Ljdk/nashorn/internal/runtime/arrays/ArrayData;
0 6 2 length J
0 6 4 sparseMap Ljava/util/TreeMap<Ljava/lang/Long;Ljava/lang/Object;>;
Signature: (Ljdk/nashorn/internal/runtime/arrays/ArrayData;JLjava/util/TreeMap<Ljava/lang/Long;Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
underlying final
length final
sparseMap final
public jdk.nashorn.internal.runtime.arrays.ArrayData copy();
descriptor: ()Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=1, args_size=1
start local 0 0: new jdk.nashorn.internal.runtime.arrays.SparseArrayData
dup
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.copy:()Ljdk/nashorn/internal/runtime/arrays/ArrayData;
aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
new java.util.TreeMap
dup
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
invokespecial java.util.TreeMap.<init>:(Ljava/util/SortedMap;)V
invokespecial jdk.nashorn.internal.runtime.arrays.SparseArrayData.<init>:(Ljdk/nashorn/internal/runtime/arrays/ArrayData;JLjava/util/TreeMap;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
public java.lang.Object[] asObjectArray();
descriptor: ()[Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
ldc 2147483647
invokestatic java.lang.Math.min:(JJ)J
l2i
istore 1
start local 1 1: iload 1
i2l
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
invokestatic java.lang.Math.min:(JJ)J
l2i
istore 2
start local 2 2: iload 1
anewarray java.lang.Object
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 7
5: StackMap locals: jdk.nashorn.internal.runtime.arrays.SparseArrayData int int java.lang.Object[] int
StackMap stack:
aload 3
iload 4
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 4
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.getObject:(I)Ljava/lang/Object;
aastore
6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 2
if_icmplt 5
end local 4 8: aload 3
iload 2
iload 1
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
invokestatic java.util.Arrays.fill:([Ljava/lang/Object;IILjava/lang/Object;)V
9: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
invokevirtual java.util.TreeMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 14
StackMap locals: jdk.nashorn.internal.runtime.arrays.SparseArrayData int int java.lang.Object[] top java.util.Iterator
StackMap stack:
10: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 11: aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
lstore 6
start local 6 12: lload 6
ldc 2147483647
lcmp
ifge 15
13: aload 3
lload 6
l2i
aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
aastore
end local 6 end local 4 14: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
15: StackMap locals: jdk.nashorn.internal.runtime.arrays.SparseArrayData int int java.lang.Object[]
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
1 16 1 len I
2 16 2 underlyingLength I
3 16 3 objArray [Ljava/lang/Object;
4 8 4 i I
11 14 4 entry Ljava/util/Map$Entry<Ljava/lang/Long;Ljava/lang/Object;>;
12 14 6 key J
public jdk.nashorn.internal.runtime.arrays.ArrayData shiftLeft(int);
descriptor: (I)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=9, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.shiftLeft:(I)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
1: new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
astore 2
start local 2 2: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
invokevirtual java.util.TreeMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 14
StackMap locals: jdk.nashorn.internal.runtime.arrays.SparseArrayData int java.util.TreeMap top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 4: aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
iload 1
i2l
lsub
lstore 5
start local 5 5: lload 5
lconst_0
lcmp
iflt 14
6: lload 5
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifge 13
7: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lstore 7
start local 7 8: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 5
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.ensure:(J)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
9: lload 5
l2i
aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
iconst_0
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.set:(ILjava/lang/Object;Z)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
10: lload 7
lload 5
lconst_1
lsub
iconst_0
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.safeDelete:(JJZ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
11: putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
end local 7 12: goto 14
13: StackMap locals: jdk.nashorn.internal.runtime.arrays.SparseArrayData int java.util.TreeMap java.util.Map$Entry java.util.Iterator long
StackMap stack:
aload 2
lload 5
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual java.util.TreeMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 end local 3 14: StackMap locals: jdk.nashorn.internal.runtime.arrays.SparseArrayData int java.util.TreeMap top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
15: aload 0
aload 2
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
16: aload 0
aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
iload 1
i2l
lsub
lconst_0
invokestatic java.lang.Math.max:(JJ)J
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.setLength:(J)V
17: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
invokevirtual java.util.TreeMap.isEmpty:()Z
ifeq 18
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
goto 19
StackMap locals: jdk.nashorn.internal.runtime.arrays.SparseArrayData int java.util.TreeMap
StackMap stack:
18: aload 0
StackMap locals:
StackMap stack: jdk.nashorn.internal.runtime.arrays.ArrayData
19: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 20 1 by I
2 20 2 newSparseMap Ljava/util/TreeMap<Ljava/lang/Long;Ljava/lang/Object;>;
4 14 3 entry Ljava/util/Map$Entry<Ljava/lang/Long;Ljava/lang/Object;>;
5 14 5 newIndex J
8 12 7 oldLength J
MethodParameters:
Name Flags
by final
public jdk.nashorn.internal.runtime.arrays.ArrayData shiftRight(int);
descriptor: (I)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
astore 2
start local 2 1: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lstore 3
start local 3 2: lload 3
iload 1
i2l
ladd
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifle 12
3: lconst_0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
iload 1
i2l
lsub
invokestatic java.lang.Math.max:(JJ)J
lstore 5
start local 5 4: lload 5
lstore 7
start local 7 5: goto 9
6: StackMap locals: jdk.nashorn.internal.runtime.arrays.SparseArrayData int java.util.TreeMap long long long
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 7
l2i
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.has:(I)Z
ifeq 8
7: aload 2
lload 7
iload 1
i2l
ladd
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 7
l2i
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.getObject:(I)Ljava/lang/Object;
invokevirtual java.util.TreeMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: StackMap locals:
StackMap stack:
lload 7
lconst_1
ladd
lstore 7
StackMap locals:
StackMap stack:
9: lload 7
lload 3
lcmp
iflt 6
end local 7 10: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 5
l2i
i2l
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.shrink:(J)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
11: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 5
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.setLength:(J)V
end local 5 12: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.shiftRight:(I)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
13: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
invokevirtual java.util.TreeMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 17
StackMap locals: jdk.nashorn.internal.runtime.arrays.SparseArrayData int java.util.TreeMap long top java.util.Iterator
StackMap stack:
14: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 15: aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
iload 1
i2l
ladd
lstore 7
start local 7 16: aload 2
lload 7
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual java.util.TreeMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 5 17: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
18: aload 0
aload 2
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
19: aload 0
aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
iload 1
i2l
ladd
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.setLength:(J)V
20: aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 21 1 by I
1 21 2 newSparseMap Ljava/util/TreeMap<Ljava/lang/Long;Ljava/lang/Object;>;
2 21 3 len J
4 12 5 tempLength J
5 10 7 i J
15 17 5 entry Ljava/util/Map$Entry<Ljava/lang/Long;Ljava/lang/Object;>;
16 17 7 newIndex J
MethodParameters:
Name Flags
by final
public jdk.nashorn.internal.runtime.arrays.ArrayData ensure(long);
descriptor: (J)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: lload 1
aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
lcmp
iflt 2
1: aload 0
lload 1
lconst_1
ladd
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.setLength:(J)V
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 3 1 safeIndex J
MethodParameters:
Name Flags
safeIndex final
public jdk.nashorn.internal.runtime.arrays.ArrayData shrink(long);
descriptor: (J)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: lload 1
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lcmp
ifge 5
1: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.shrink:(J)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
2: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.setLength:(J)V
3: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
invokevirtual java.util.TreeMap.clear:()V
4: aload 0
lload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.setLength:(J)V
5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
ldc 9223372036854775807
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual java.util.TreeMap.subMap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/SortedMap;
invokeinterface java.util.SortedMap.clear:()V
6: aload 0
lload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.setLength:(J)V
7: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 8 1 newLength J
MethodParameters:
Name Flags
newLength final
public jdk.nashorn.internal.runtime.arrays.ArrayData set(int, java.lang.Object, boolean);
descriptor: (ILjava/lang/Object;Z)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
iflt 5
iload 1
i2l
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifge 5
1: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lstore 4
start local 4 2: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
i2l
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.ensure:(J)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
aload 2
iload 3
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.set:(ILjava/lang/Object;Z)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 4
iload 1
iconst_1
isub
i2l
iload 3
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.safeDelete:(JJZ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
3: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
invokestatic java.lang.Math.max:(JJ)J
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.setLength:(J)V
end local 4 4: goto 8
5: StackMap locals:
StackMap stack:
iload 1
invokestatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.indexToKey:(I)Ljava/lang/Long;
astore 4
start local 4 6: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
aload 4
aload 2
invokevirtual java.util.TreeMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 0
aload 4
invokevirtual java.lang.Long.longValue:()J
lconst_1
ladd
aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
invokestatic java.lang.Math.max:(JJ)J
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.setLength:(J)V
end local 4 8: StackMap locals:
StackMap stack:
aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 9 1 index I
0 9 2 value Ljava/lang/Object;
0 9 3 strict Z
2 4 4 oldLength J
6 8 4 longIndex Ljava/lang/Long;
MethodParameters:
Name Flags
index final
value final
strict final
public jdk.nashorn.internal.runtime.arrays.ArrayData set(int, int, boolean);
descriptor: (IIZ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
iflt 5
iload 1
i2l
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifge 5
1: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lstore 4
start local 4 2: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
i2l
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.ensure:(J)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
iload 2
iload 3
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.set:(IIZ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 4
iload 1
iconst_1
isub
i2l
iload 3
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.safeDelete:(JJZ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
3: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
invokestatic java.lang.Math.max:(JJ)J
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.setLength:(J)V
end local 4 4: goto 8
5: StackMap locals:
StackMap stack:
iload 1
invokestatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.indexToKey:(I)Ljava/lang/Long;
astore 4
start local 4 6: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
aload 4
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.TreeMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 0
aload 4
invokevirtual java.lang.Long.longValue:()J
lconst_1
ladd
aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
invokestatic java.lang.Math.max:(JJ)J
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.setLength:(J)V
end local 4 8: StackMap locals:
StackMap stack:
aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 9 1 index I
0 9 2 value I
0 9 3 strict Z
2 4 4 oldLength J
6 8 4 longIndex Ljava/lang/Long;
MethodParameters:
Name Flags
index final
value final
strict final
public jdk.nashorn.internal.runtime.arrays.ArrayData set(int, double, boolean);
descriptor: (IDZ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 4 0: iload 1
iflt 5
iload 1
i2l
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifge 5
1: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lstore 5
start local 5 2: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
i2l
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.ensure:(J)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
dload 2
iload 4
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.set:(IDZ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 5
iload 1
iconst_1
isub
i2l
iload 4
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.safeDelete:(JJZ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
3: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
invokestatic java.lang.Math.max:(JJ)J
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.setLength:(J)V
end local 5 4: goto 8
5: StackMap locals:
StackMap stack:
iload 1
invokestatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.indexToKey:(I)Ljava/lang/Long;
astore 5
start local 5 6: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
aload 5
dload 2
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual java.util.TreeMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 0
aload 5
invokevirtual java.lang.Long.longValue:()J
lconst_1
ladd
aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
invokestatic java.lang.Math.max:(JJ)J
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.setLength:(J)V
end local 5 8: StackMap locals:
StackMap stack:
aload 0
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 9 1 index I
0 9 2 value D
0 9 4 strict Z
2 4 5 oldLength J
6 8 5 longIndex Ljava/lang/Long;
MethodParameters:
Name Flags
index final
value final
strict final
public jdk.nashorn.internal.runtime.arrays.ArrayData setEmpty(int);
descriptor: (I)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.setEmpty:(I)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
pop
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 2 1 index I
MethodParameters:
Name Flags
index final
public jdk.nashorn.internal.runtime.arrays.ArrayData setEmpty(long, long);
descriptor: (JJ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 1
lload 3
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.setEmpty:(JJ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
pop
1: aload 0
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 2 1 lo J
0 2 3 hi J
MethodParameters:
Name Flags
lo final
hi final
public jdk.nashorn.internal.codegen.types.Type getOptimisticType();
descriptor: ()Ljdk/nashorn/internal/codegen/types/Type;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.getOptimisticType:()Ljdk/nashorn/internal/codegen/types/Type;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
public int getInt(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iflt 2
iload 1
i2l
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifge 2
1: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.getInt:(I)I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
iload 1
invokestatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.indexToKey:(I)Ljava/lang/Long;
invokevirtual java.util.TreeMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic jdk.nashorn.internal.runtime.JSType.toInt32:(Ljava/lang/Object;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 3 1 index I
MethodParameters:
Name Flags
index final
public int getIntOptimistic(int, int);
descriptor: (II)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iflt 2
iload 1
i2l
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifge 2
1: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
iload 2
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.getIntOptimistic:(II)I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
iload 1
invokestatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.indexToKey:(I)Ljava/lang/Long;
invokevirtual java.util.TreeMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
iload 2
invokestatic jdk.nashorn.internal.runtime.JSType.toInt32Optimistic:(Ljava/lang/Object;I)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 3 1 index I
0 3 2 programPoint I
MethodParameters:
Name Flags
index final
programPoint final
public double getDouble(int);
descriptor: (I)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iflt 2
iload 1
i2l
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifge 2
1: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.getDouble:(I)D
dreturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
iload 1
invokestatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.indexToKey:(I)Ljava/lang/Long;
invokevirtual java.util.TreeMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic jdk.nashorn.internal.runtime.JSType.toNumber:(Ljava/lang/Object;)D
dreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 3 1 index I
MethodParameters:
Name Flags
index final
public double getDoubleOptimistic(int, int);
descriptor: (II)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iflt 2
iload 1
i2l
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifge 2
1: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.getDouble:(I)D
dreturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
iload 1
invokestatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.indexToKey:(I)Ljava/lang/Long;
invokevirtual java.util.TreeMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
iload 2
invokestatic jdk.nashorn.internal.runtime.JSType.toNumberOptimistic:(Ljava/lang/Object;I)D
dreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 3 1 index I
0 3 2 programPoint I
MethodParameters:
Name Flags
index final
programPoint final
public java.lang.Object getObject(int);
descriptor: (I)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iload 1
iflt 2
iload 1
i2l
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifge 2
1: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.getObject:(I)Ljava/lang/Object;
areturn
2: StackMap locals:
StackMap stack:
iload 1
invokestatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.indexToKey:(I)Ljava/lang/Long;
astore 2
start local 2 3: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
aload 2
invokevirtual java.util.TreeMap.containsKey:(Ljava/lang/Object;)Z
ifeq 5
4: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
aload 2
invokevirtual java.util.TreeMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
5: StackMap locals: java.lang.Long
StackMap stack:
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 6 1 index I
3 6 2 key Ljava/lang/Long;
MethodParameters:
Name Flags
index final
public boolean has(int);
descriptor: (I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iflt 3
iload 1
i2l
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifge 3
1: iload 1
i2l
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lcmp
ifge 2
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.has:(I)Z
ifeq 2
iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
iload 1
invokestatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.indexToKey:(I)Ljava/lang/Long;
invokevirtual java.util.TreeMap.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 4 1 index I
MethodParameters:
Name Flags
index final
public jdk.nashorn.internal.runtime.arrays.ArrayData delete(int);
descriptor: (I)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iflt 4
iload 1
i2l
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifge 4
1: iload 1
i2l
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lcmp
ifge 5
2: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
iload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.delete:(I)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
iload 1
invokestatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.indexToKey:(I)Ljava/lang/Long;
invokevirtual java.util.TreeMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
5: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 6 1 index I
MethodParameters:
Name Flags
index final
public jdk.nashorn.internal.runtime.arrays.ArrayData delete(long, long);
descriptor: (JJ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=5, args_size=3
start local 0 start local 1 start local 3 0: lload 1
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifge 2
lload 1
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lcmp
ifge 2
1: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 1
lload 3
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lconst_1
lsub
invokestatic java.lang.Math.min:(JJ)J
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.delete:(JJ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
2: StackMap locals:
StackMap stack:
lload 3
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
iflt 4
3: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
iconst_1
lload 3
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
iconst_1
invokevirtual java.util.TreeMap.subMap:(Ljava/lang/Object;ZLjava/lang/Object;Z)Ljava/util/NavigableMap;
invokeinterface java.util.NavigableMap.clear:()V
4: StackMap locals:
StackMap stack:
aload 0
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 5 1 fromIndex J
0 5 3 toIndex J
MethodParameters:
Name Flags
fromIndex final
toIndex final
private static java.lang.Long indexToKey(int);
descriptor: (I)Ljava/lang/Long;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
invokestatic jdk.nashorn.internal.runtime.arrays.ArrayIndex.toLongIndex:(I)J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 index I
MethodParameters:
Name Flags
index final
public jdk.nashorn.internal.runtime.arrays.ArrayData convert(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
aload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.convert:(Ljava/lang/Class;)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
putfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 2 1 type Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
MethodParameters:
Name Flags
type final
public java.lang.Object pop();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
lstore 1
start local 1 1: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lstore 3
start local 3 2: lload 1
lconst_0
lcmp
ifne 4
3: getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
areturn
4: StackMap locals: long long
StackMap stack:
lload 1
lload 3
lcmp
ifne 8
5: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.pop:()Ljava/lang/Object;
astore 5
start local 5 6: aload 0
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.setLength:(J)V
7: aload 5
areturn
end local 5 8: StackMap locals:
StackMap stack:
aload 0
lload 1
lconst_1
lsub
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.setLength:(J)V
9: lload 1
lconst_1
lsub
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
astore 5
start local 5 10: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
aload 5
invokevirtual java.util.TreeMap.containsKey:(Ljava/lang/Object;)Z
ifeq 11
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
aload 5
invokevirtual java.util.TreeMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
goto 12
StackMap locals: java.lang.Long
StackMap stack:
11: getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
StackMap locals:
StackMap stack: java.lang.Object
12: areturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
1 13 1 len J
2 13 3 underlyingLen J
6 8 5 result Ljava/lang/Object;
10 13 5 key Ljava/lang/Long;
public jdk.nashorn.internal.runtime.arrays.ArrayData slice(long, long);
descriptor: (JJ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=14, args_size=3
start local 0 start local 1 start local 3 0: getstatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.$assertionsDisabled:Z
ifne 1
lload 3
aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
lcmp
ifle 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
lload 1
lconst_0
lcmp
ifge 2
lload 1
aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
ladd
goto 3
StackMap locals:
StackMap stack:
2: lload 1
StackMap locals:
StackMap stack: long
3: lstore 5
start local 5 4: lload 3
lload 5
lsub
lstore 7
start local 7 5: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lstore 9
start local 9 6: lload 5
lconst_0
lcmp
iflt 10
lload 3
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.maxDenseLength:J
lcmp
ifgt 10
7: lload 7
lload 9
lcmp
ifgt 9
8: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 1
lload 3
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.slice:(JJ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
areturn
9: StackMap locals: long long long
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 1
lload 3
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.slice:(JJ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 7
lconst_1
lsub
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.ensure:(J)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 9
lload 7
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.delete:(JJ)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
areturn
10: StackMap locals:
StackMap stack:
getstatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.EMPTY_ARRAY:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
astore 11
start local 11 11: aload 11
lload 7
lconst_1
lsub
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.ensure:(J)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
astore 11
12: lload 5
lstore 12
start local 12 13: goto 17
14: StackMap locals: jdk.nashorn.internal.runtime.arrays.ArrayData long
StackMap stack:
aload 0
lload 12
l2i
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.has:(I)Z
ifeq 16
15: aload 11
lload 12
lload 5
lsub
l2i
aload 0
lload 12
l2i
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.getObject:(I)Ljava/lang/Object;
iconst_0
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.set:(ILjava/lang/Object;Z)Ljdk/nashorn/internal/runtime/arrays/ArrayData;
astore 11
16: StackMap locals:
StackMap stack:
aload 0
lload 12
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.nextIndex:(J)J
lstore 12
StackMap locals:
StackMap stack:
17: lload 12
lload 3
lcmp
iflt 14
end local 12 18: getstatic jdk.nashorn.internal.runtime.arrays.SparseArrayData.$assertionsDisabled:Z
ifne 19
aload 11
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lload 7
lcmp
ifeq 19
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
19: StackMap locals:
StackMap stack:
aload 11
areturn
end local 11 end local 9 end local 7 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 20 1 from J
0 20 3 to J
4 20 5 start J
5 20 7 newLength J
6 20 9 underlyingLength J
11 20 11 sliced Ljdk/nashorn/internal/runtime/arrays/ArrayData;
13 18 12 i J
MethodParameters:
Name Flags
from final
to final
public long nextIndex(long);
descriptor: (J)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: lload 1
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.length:()J
lconst_1
lsub
lcmp
ifge 2
1: aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.underlying:Ljdk/nashorn/internal/runtime/arrays/ArrayData;
lload 1
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.nextIndex:(J)J
lreturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.arrays.SparseArrayData.sparseMap:Ljava/util/TreeMap;
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual java.util.TreeMap.higherKey:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
astore 3
start local 3 3: aload 3
ifnull 5
4: aload 3
invokevirtual java.lang.Long.longValue:()J
lreturn
5: StackMap locals: java.lang.Long
StackMap stack:
aload 0
invokevirtual jdk.nashorn.internal.runtime.arrays.SparseArrayData.length:()J
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/internal/runtime/arrays/SparseArrayData;
0 6 1 index J
3 6 3 nextKey Ljava/lang/Long;
MethodParameters:
Name Flags
index final
}
SourceFile: "SparseArrayData.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map