public final class jdk.nashorn.internal.runtime.arrays.ArrayIndex
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.runtime.arrays.ArrayIndex
super_class: java.lang.Object
{
private static final int INVALID_ARRAY_INDEX;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private static final long MAX_ARRAY_INDEX;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4294967294
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/ArrayIndex;
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.ArrayIndex.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/arrays/ArrayIndex;
private static long fromString(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: aload 0
invokevirtual java.lang.String.length:()I
istore 3
start local 3 2: iload 3
ifeq 3
iload 3
iconst_1
if_icmple 4
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 48
if_icmpne 4
3: StackMap locals: long int
StackMap stack:
ldc -1
lreturn
4: StackMap locals:
StackMap stack:
iconst_0
istore 4
start local 4 5: goto 13
6: StackMap locals: int
StackMap stack:
aload 0
iload 4
invokevirtual java.lang.String.charAt:(I)C
istore 5
start local 5 7: iload 5
bipush 48
if_icmplt 8
iload 5
bipush 57
if_icmple 9
8: StackMap locals: int
StackMap stack:
ldc -1
lreturn
9: StackMap locals:
StackMap stack:
lload 1
ldc 10
lmul
iload 5
i2l
ladd
ldc 48
lsub
lstore 1
10: lload 1
ldc 4294967294
lcmp
ifle 12
11: ldc -1
lreturn
end local 5 12: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
13: iload 4
iload 3
if_icmplt 6
end local 4 14: lload 1
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 key Ljava/lang/String;
1 15 1 value J
2 15 3 length I
5 14 4 i I
7 12 5 digit C
MethodParameters:
Name Flags
key final
public static int getArrayIndex(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
instanceof java.lang.Integer
ifeq 2
1: aload 0
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokestatic jdk.nashorn.internal.runtime.arrays.ArrayIndex.getArrayIndex:(I)I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.lang.Double
ifeq 4
3: aload 0
checkcast java.lang.Double
invokevirtual java.lang.Double.doubleValue:()D
invokestatic jdk.nashorn.internal.runtime.arrays.ArrayIndex.getArrayIndex:(D)I
ireturn
4: StackMap locals:
StackMap stack:
aload 0
instanceof java.lang.String
ifeq 6
5: aload 0
checkcast java.lang.String
invokestatic jdk.nashorn.internal.runtime.arrays.ArrayIndex.fromString:(Ljava/lang/String;)J
l2i
ireturn
6: StackMap locals:
StackMap stack:
aload 0
instanceof java.lang.Long
ifeq 8
7: aload 0
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
invokestatic jdk.nashorn.internal.runtime.arrays.ArrayIndex.getArrayIndex:(J)I
ireturn
8: StackMap locals:
StackMap stack:
aload 0
instanceof jdk.nashorn.internal.runtime.ConsString
ifeq 10
9: aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokestatic jdk.nashorn.internal.runtime.arrays.ArrayIndex.fromString:(Ljava/lang/String;)J
l2i
ireturn
10: StackMap locals:
StackMap stack:
getstatic jdk.nashorn.internal.runtime.arrays.ArrayIndex.$assertionsDisabled:Z
ifne 11
aload 0
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifeq 11
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
11: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 key Ljava/lang/Object;
MethodParameters:
Name Flags
key final
public static int getArrayIndex(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
iflt 1
iload 0
goto 2
StackMap locals:
StackMap stack:
1: iconst_m1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 key I
MethodParameters:
Name Flags
key final
public static int getArrayIndex(long);
descriptor: (J)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
lconst_0
lcmp
iflt 2
lload 0
ldc 4294967294
lcmp
ifgt 2
1: lload 0
l2i
ireturn
2: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 key J
MethodParameters:
Name Flags
key final
public static int getArrayIndex(double);
descriptor: (D)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: dload 0
invokestatic jdk.nashorn.internal.runtime.JSType.isRepresentableAsInt:(D)Z
ifeq 2
1: dload 0
d2i
invokestatic jdk.nashorn.internal.runtime.arrays.ArrayIndex.getArrayIndex:(I)I
ireturn
2: StackMap locals:
StackMap stack:
dload 0
invokestatic jdk.nashorn.internal.runtime.JSType.isRepresentableAsLong:(D)Z
ifeq 4
3: dload 0
d2l
invokestatic jdk.nashorn.internal.runtime.arrays.ArrayIndex.getArrayIndex:(J)I
ireturn
4: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 key D
MethodParameters:
Name Flags
key final
public static int getArrayIndex(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.nashorn.internal.runtime.arrays.ArrayIndex.fromString:(Ljava/lang/String;)J
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 key Ljava/lang/String;
MethodParameters:
Name Flags
key final
public static boolean isValidArrayIndex(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
iconst_m1
if_icmpeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 index I
MethodParameters:
Name Flags
index final
public static long toLongIndex(int);
descriptor: (I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
invokestatic jdk.nashorn.internal.runtime.JSType.toUint32:(I)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 index I
MethodParameters:
Name Flags
index final
public static java.lang.String toKey(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
invokestatic jdk.nashorn.internal.runtime.JSType.toUint32:(I)J
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 index I
MethodParameters:
Name Flags
index final
}
SourceFile: "ArrayIndex.java"