class jdk.nashorn.internal.objects.NativeArray$6 implements java.util.Comparator<java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.nashorn.internal.objects.NativeArray$6
super_class: java.lang.Object
{
private final java.lang.invoke.MethodHandle call_cmp;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Object val$cmp;
descriptor: Ljava/lang/Object;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final java.lang.Object val$cmpThis;
descriptor: Ljava/lang/Object;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 0: aload 0
aload 1
putfield jdk.nashorn.internal.objects.NativeArray$6.val$cmp:Ljava/lang/Object;
aload 0
aload 2
putfield jdk.nashorn.internal.objects.NativeArray$6.val$cmpThis:Ljava/lang/Object;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic jdk.nashorn.internal.objects.NativeArray.getCALL_CMP:()Ljava/lang/invoke/MethodHandle;
putfield jdk.nashorn.internal.objects.NativeArray$6.call_cmp:Ljava/lang/invoke/MethodHandle;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/objects/NativeArray$6;
MethodParameters:
Name Flags
val$cmp final
val$cmpThis final
public int compare(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpne 2
aload 2
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpne 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 2
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpne 6
5: iconst_m1
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.nashorn.internal.objects.NativeArray$6.val$cmp:Ljava/lang/Object;
ifnull 13
7: aload 0
getfield jdk.nashorn.internal.objects.NativeArray$6.call_cmp:Ljava/lang/invoke/MethodHandle;
aload 0
getfield jdk.nashorn.internal.objects.NativeArray$6.val$cmp:Ljava/lang/Object;
aload 0
getfield jdk.nashorn.internal.objects.NativeArray$6.val$cmpThis:Ljava/lang/Object;
aload 1
aload 2
invokevirtual java.lang.invoke.MethodHandle.invokeExact:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)D
invokestatic java.lang.Math.signum:(D)D
d2i
8: ireturn
9: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
start local 3 10: aload 3
athrow
end local 3 11: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
start local 3 12: new java.lang.RuntimeException
dup
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 13: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
aload 2
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.String.compareTo:(Ljava/lang/String;)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/nashorn/internal/objects/NativeArray$6;
0 14 1 x Ljava/lang/Object;
0 14 2 y Ljava/lang/Object;
10 11 3 e Ljava/lang/Throwable;
12 13 3 t Ljava/lang/Throwable;
Exception table:
from to target type
7 8 9 Class java.lang.RuntimeException
7 8 9 Class java.lang.Error
7 8 11 Class java.lang.Throwable
MethodParameters:
Name Flags
x final
y final
}
Signature: Ljava/lang/Object;Ljava/util/Comparator<Ljava/lang/Object;>;
SourceFile: "NativeArray.java"
EnclosingMethod: jdk.nashorn.internal.objects.NativeArray.sort:([Ljava/lang/Object;Ljava/lang/Object;)[Ljava/lang/Object;
NestHost: jdk.nashorn.internal.objects.NativeArray
InnerClasses:
jdk.nashorn.internal.objects.NativeArray$6