final class jdk.nashorn.internal.runtime.linker.NashornLinker implements jdk.dynalink.linker.TypeBasedGuardingDynamicLinker, jdk.dynalink.linker.GuardingTypeConverterFactory, jdk.dynalink.linker.ConversionComparator
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.runtime.linker.NashornLinker
super_class: java.lang.Object
{
private static final java.security.AccessControlContext GET_LOOKUP_PERMISSION_CONTEXT;
descriptor: Ljava/security/AccessControlContext;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.ClassValue<java.lang.invoke.MethodHandle> ARRAY_CONVERTERS;
descriptor: Ljava/lang/ClassValue;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ClassValue<Ljava/lang/invoke/MethodHandle;>;
private static final java.lang.invoke.MethodHandle IS_SCRIPT_OBJECT;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle IS_FUNCTION;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle IS_NATIVE_ARRAY;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle IS_NASHORN_OR_UNDEFINED_TYPE;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle CREATE_MIRROR;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle TO_COLLECTION;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle TO_DEQUE;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle TO_LIST;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle TO_QUEUE;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
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=7, locals=1, args_size=0
0: ldc Ljdk/nashorn/internal/runtime/linker/NashornLinker;
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.linker.NashornLinker.$assertionsDisabled:Z
3: iconst_1
anewarray java.lang.String
dup
iconst_0
4: ldc "dynalink.getLookup"
aastore
invokestatic jdk.nashorn.internal.runtime.AccessControlContextFactory.createAccessControlContext:([Ljava/lang/String;)Ljava/security/AccessControlContext;
putstatic jdk.nashorn.internal.runtime.linker.NashornLinker.GET_LOOKUP_PERMISSION_CONTEXT:Ljava/security/AccessControlContext;
5: new jdk.nashorn.internal.runtime.linker.NashornLinker$1
dup
invokespecial jdk.nashorn.internal.runtime.linker.NashornLinker$1.<init>:()V
putstatic jdk.nashorn.internal.runtime.linker.NashornLinker.ARRAY_CONVERTERS:Ljava/lang/ClassValue;
6: ldc Ljdk/nashorn/internal/runtime/ScriptObject;
getstatic jdk.nashorn.internal.lookup.Lookup.MH:Ljdk/nashorn/internal/lookup/MethodHandleFunctionality;
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/Object;
aastore
invokeinterface jdk.nashorn.internal.lookup.MethodHandleFunctionality.type:(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
invokestatic jdk.dynalink.linker.support.Guards.isInstance:(Ljava/lang/Class;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.nashorn.internal.runtime.linker.NashornLinker.IS_SCRIPT_OBJECT:Ljava/lang/invoke/MethodHandle;
7: ldc "isFunction"
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/Object;
aastore
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.findOwnMH:(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.nashorn.internal.runtime.linker.NashornLinker.IS_FUNCTION:Ljava/lang/invoke/MethodHandle;
8: ldc Ljdk/nashorn/internal/objects/NativeArray;
getstatic jdk.nashorn.internal.lookup.Lookup.MH:Ljdk/nashorn/internal/lookup/MethodHandleFunctionality;
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/Object;
aastore
invokeinterface jdk.nashorn.internal.lookup.MethodHandleFunctionality.type:(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
invokestatic jdk.dynalink.linker.support.Guards.isOfClass:(Ljava/lang/Class;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.nashorn.internal.runtime.linker.NashornLinker.IS_NATIVE_ARRAY:Ljava/lang/invoke/MethodHandle;
9: ldc "isNashornTypeOrUndefined"
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/Object;
aastore
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.findOwnMH:(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.nashorn.internal.runtime.linker.NashornLinker.IS_NASHORN_OR_UNDEFINED_TYPE:Ljava/lang/invoke/MethodHandle;
10: ldc "createMirror"
ldc Ljava/lang/Object;
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/Object;
aastore
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.findOwnMH:(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.nashorn.internal.runtime.linker.NashornLinker.CREATE_MIRROR:Ljava/lang/invoke/MethodHandle;
11: new jdk.dynalink.linker.support.Lookup
dup
invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
invokespecial jdk.dynalink.linker.support.Lookup.<init>:(Ljava/lang/invoke/MethodHandles$Lookup;)V
12: ldc Ljdk/nashorn/internal/runtime/ListAdapter;
ldc "create"
ldc Ljdk/nashorn/internal/runtime/ListAdapter;
ldc Ljava/lang/Object;
invokestatic java.lang.invoke.MethodType.methodType:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
13: invokevirtual jdk.dynalink.linker.support.Lookup.findStatic:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
astore 0
start local 0 14: aload 0
ldc Ljava/util/Collection;
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.asReturning:(Ljava/lang/invoke/MethodHandle;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.nashorn.internal.runtime.linker.NashornLinker.TO_COLLECTION:Ljava/lang/invoke/MethodHandle;
15: aload 0
ldc Ljava/util/Deque;
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.asReturning:(Ljava/lang/invoke/MethodHandle;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.nashorn.internal.runtime.linker.NashornLinker.TO_DEQUE:Ljava/lang/invoke/MethodHandle;
16: aload 0
ldc Ljava/util/List;
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.asReturning:(Ljava/lang/invoke/MethodHandle;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.nashorn.internal.runtime.linker.NashornLinker.TO_LIST:Ljava/lang/invoke/MethodHandle;
17: aload 0
ldc Ljava/util/Queue;
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.asReturning:(Ljava/lang/invoke/MethodHandle;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.nashorn.internal.runtime.linker.NashornLinker.TO_QUEUE:Ljava/lang/invoke/MethodHandle;
end local 0 18: return
LocalVariableTable:
Start End Slot Name Signature
14 18 0 listAdapterCreate Ljava/lang/invoke/MethodHandle;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/linker/NashornLinker;
public boolean canLinkType(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.canLinkTypeStatic:(Ljava/lang/Class;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/linker/NashornLinker;
0 1 1 type Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
type final
static boolean canLinkTypeStatic(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc Ljdk/nashorn/internal/runtime/ScriptObject;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 1
ldc Ljdk/nashorn/internal/runtime/Undefined;
aload 0
if_acmpeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 type Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
type final
public jdk.dynalink.linker.GuardedInvocation getGuardedInvocation(jdk.dynalink.linker.LinkRequest, jdk.dynalink.linker.LinkerServices);
descriptor: (Ljdk/dynalink/linker/LinkRequest;Ljdk/dynalink/linker/LinkerServices;)Ljdk/dynalink/linker/GuardedInvocation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface jdk.dynalink.linker.LinkRequest.getCallSiteDescriptor:()Ljdk/dynalink/CallSiteDescriptor;
astore 3
start local 3 1: aload 1
aload 3
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation:(Ljdk/dynalink/linker/LinkRequest;Ljdk/dynalink/CallSiteDescriptor;)Ljdk/dynalink/linker/GuardedInvocation;
aload 2
aload 3
invokestatic jdk.nashorn.internal.runtime.linker.Bootstrap.asTypeSafeReturn:(Ljdk/dynalink/linker/GuardedInvocation;Ljdk/dynalink/linker/LinkerServices;Ljdk/dynalink/CallSiteDescriptor;)Ljdk/dynalink/linker/GuardedInvocation;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/linker/NashornLinker;
0 2 1 request Ljdk/dynalink/linker/LinkRequest;
0 2 2 linkerServices Ljdk/dynalink/linker/LinkerServices;
1 2 3 desc Ljdk/dynalink/CallSiteDescriptor;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
request final
linkerServices final
private static jdk.dynalink.linker.GuardedInvocation getGuardedInvocation(jdk.dynalink.linker.LinkRequest, jdk.dynalink.CallSiteDescriptor);
descriptor: (Ljdk/dynalink/linker/LinkRequest;Ljdk/dynalink/CallSiteDescriptor;)Ljdk/dynalink/linker/GuardedInvocation;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface jdk.dynalink.linker.LinkRequest.getReceiver:()Ljava/lang/Object;
astore 2
start local 2 1: aload 2
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifeq 4
2: aload 2
checkcast jdk.nashorn.internal.runtime.ScriptObject
aload 1
aload 0
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.lookup:(Ljdk/dynalink/CallSiteDescriptor;Ljdk/dynalink/linker/LinkRequest;)Ljdk/dynalink/linker/GuardedInvocation;
astore 3
start local 3 3: goto 8
end local 3 StackMap locals: java.lang.Object
StackMap stack:
4: aload 2
instanceof jdk.nashorn.internal.runtime.Undefined
ifeq 7
5: aload 1
invokestatic jdk.nashorn.internal.runtime.Undefined.lookup:(Ljdk/dynalink/CallSiteDescriptor;)Ljdk/dynalink/linker/GuardedInvocation;
astore 3
start local 3 6: goto 8
end local 3 7: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
start local 3 8: StackMap locals: jdk.dynalink.linker.GuardedInvocation
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 request Ljdk/dynalink/linker/LinkRequest;
0 9 1 desc Ljdk/dynalink/CallSiteDescriptor;
1 9 2 self Ljava/lang/Object;
3 4 3 inv Ljdk/dynalink/linker/GuardedInvocation;
6 7 3 inv Ljdk/dynalink/linker/GuardedInvocation;
8 9 3 inv Ljdk/dynalink/linker/GuardedInvocation;
MethodParameters:
Name Flags
request final
desc final
public jdk.dynalink.linker.GuardedInvocation convertToType(java.lang.Class<?>, java.lang.Class<?>, java.util.function.Supplier<java.lang.invoke.MethodHandles$Lookup>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;Ljava/util/function/Supplier;)Ljdk/dynalink/linker/GuardedInvocation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
aload 3
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.convertToTypeNoCast:(Ljava/lang/Class;Ljava/lang/Class;Ljava/util/function/Supplier;)Ljdk/dynalink/linker/GuardedInvocation;
astore 4
start local 4 1: aload 4
ifnonnull 3
2: aload 1
aload 2
aload 3
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.getSamTypeConverter:(Ljava/lang/Class;Ljava/lang/Class;Ljava/util/function/Supplier;)Ljdk/dynalink/linker/GuardedInvocation;
astore 4
3: StackMap locals: jdk.dynalink.linker.GuardedInvocation
StackMap stack:
aload 4
ifnonnull 4
aconst_null
goto 5
StackMap locals:
StackMap stack:
4: aload 4
getstatic jdk.nashorn.internal.lookup.Lookup.MH:Ljdk/nashorn/internal/lookup/MethodHandleFunctionality;
aload 2
iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 1
aastore
invokeinterface jdk.nashorn.internal.lookup.MethodHandleFunctionality.type:(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
invokevirtual jdk.dynalink.linker.GuardedInvocation.asType:(Ljava/lang/invoke/MethodType;)Ljdk/dynalink/linker/GuardedInvocation;
StackMap locals:
StackMap stack: jdk.dynalink.linker.GuardedInvocation
5: areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/internal/runtime/linker/NashornLinker;
0 6 1 sourceType Ljava/lang/Class<*>;
0 6 2 targetType Ljava/lang/Class<*>;
0 6 3 lookupSupplier Ljava/util/function/Supplier<Ljava/lang/invoke/MethodHandles$Lookup;>;
1 6 4 gi Ljdk/dynalink/linker/GuardedInvocation;
Exceptions:
throws java.lang.Exception
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;Ljava/util/function/Supplier<Ljava/lang/invoke/MethodHandles$Lookup;>;)Ljdk/dynalink/linker/GuardedInvocation;
MethodParameters:
Name Flags
sourceType final
targetType final
lookupSupplier final
private static jdk.dynalink.linker.GuardedInvocation convertToTypeNoCast(java.lang.Class<?>, java.lang.Class<?>, java.util.function.Supplier<java.lang.invoke.MethodHandles$Lookup>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;Ljava/util/function/Supplier;)Ljdk/dynalink/linker/GuardedInvocation;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic jdk.nashorn.internal.runtime.linker.JavaArgumentConverters.getConverter:(Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
astore 3
start local 3 1: aload 3
ifnull 5
2: new jdk.dynalink.linker.GuardedInvocation
dup
aload 3
aload 0
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.canLinkTypeStatic:(Ljava/lang/Class;)Z
ifeq 3
aconst_null
goto 4
StackMap locals: java.lang.Class java.lang.Class java.util.function.Supplier java.lang.invoke.MethodHandle
StackMap stack: new 2 new 2 java.lang.invoke.MethodHandle
3: getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.IS_NASHORN_OR_UNDEFINED_TYPE:Ljava/lang/invoke/MethodHandle;
StackMap locals: java.lang.Class java.lang.Class java.util.function.Supplier java.lang.invoke.MethodHandle
StackMap stack: new 2 new 2 java.lang.invoke.MethodHandle java.lang.invoke.MethodHandle
4: invokespecial jdk.dynalink.linker.GuardedInvocation.<init>:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)V
areturn
5: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.getArrayConverter:(Ljava/lang/Class;Ljava/lang/Class;Ljava/util/function/Supplier;)Ljdk/dynalink/linker/GuardedInvocation;
astore 4
start local 4 6: aload 4
ifnull 8
7: aload 4
areturn
8: StackMap locals: jdk.dynalink.linker.GuardedInvocation
StackMap stack:
aload 0
aload 1
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.getMirrorConverter:(Ljava/lang/Class;Ljava/lang/Class;)Ljdk/dynalink/linker/GuardedInvocation;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 sourceType Ljava/lang/Class<*>;
0 9 1 targetType Ljava/lang/Class<*>;
0 9 2 lookupSupplier Ljava/util/function/Supplier<Ljava/lang/invoke/MethodHandles$Lookup;>;
1 9 3 mh Ljava/lang/invoke/MethodHandle;
6 9 4 arrayConverter Ljdk/dynalink/linker/GuardedInvocation;
Exceptions:
throws java.lang.Exception
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;Ljava/util/function/Supplier<Ljava/lang/invoke/MethodHandles$Lookup;>;)Ljdk/dynalink/linker/GuardedInvocation;
MethodParameters:
Name Flags
sourceType final
targetType final
lookupSupplier final
private static jdk.dynalink.linker.GuardedInvocation getSamTypeConverter(java.lang.Class<?>, java.lang.Class<?>, java.util.function.Supplier<java.lang.invoke.MethodHandles$Lookup>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;Ljava/util/function/Supplier;)Ljdk/dynalink/linker/GuardedInvocation;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc Ljdk/nashorn/internal/runtime/ScriptObject;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
istore 3
start local 3 1: iload 3
ifne 2
ldc Ljdk/nashorn/internal/runtime/ScriptFunction;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 11
StackMap locals: int
StackMap stack:
2: aload 1
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.isAutoConvertibleFromFunction:(Ljava/lang/Class;)Z
ifeq 11
3: iload 3
ifeq 4
ldc Ljava/lang/Object;
goto 5
StackMap locals:
StackMap stack:
4: ldc Ljdk/nashorn/internal/runtime/ScriptFunction;
StackMap locals:
StackMap stack: java.lang.Class
5: astore 4
start local 4 6: aload 4
aload 1
aload 2
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.getCurrentLookup:(Ljava/util/function/Supplier;)Ljava/lang/invoke/MethodHandles$Lookup;
invokestatic jdk.nashorn.internal.runtime.linker.JavaAdapterFactory.getConstructor:(Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/invoke/MethodHandles$Lookup;)Ljava/lang/invoke/MethodHandle;
astore 5
start local 5 7: getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.$assertionsDisabled:Z
ifne 8
aload 5
ifnonnull 8
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
8: StackMap locals: java.lang.Class java.lang.invoke.MethodHandle
StackMap stack:
new jdk.dynalink.linker.GuardedInvocation
dup
aload 5
iload 3
ifeq 9
getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.IS_FUNCTION:Ljava/lang/invoke/MethodHandle;
goto 10
StackMap locals: java.lang.Class java.lang.Class java.util.function.Supplier int java.lang.Class java.lang.invoke.MethodHandle
StackMap stack: new 8 new 8 java.lang.invoke.MethodHandle
9: aconst_null
StackMap locals: java.lang.Class java.lang.Class java.util.function.Supplier int java.lang.Class java.lang.invoke.MethodHandle
StackMap stack: new 8 new 8 java.lang.invoke.MethodHandle java.lang.invoke.MethodHandle
10: invokespecial jdk.dynalink.linker.GuardedInvocation.<init>:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)V
areturn
end local 5 end local 4 11: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 sourceType Ljava/lang/Class<*>;
0 12 1 targetType Ljava/lang/Class<*>;
0 12 2 lookupSupplier Ljava/util/function/Supplier<Ljava/lang/invoke/MethodHandles$Lookup;>;
1 12 3 isSourceTypeGeneric Z
6 11 4 paramType Ljava/lang/Class<*>;
7 11 5 ctor Ljava/lang/invoke/MethodHandle;
Exceptions:
throws java.lang.Exception
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;Ljava/util/function/Supplier<Ljava/lang/invoke/MethodHandles$Lookup;>;)Ljdk/dynalink/linker/GuardedInvocation;
MethodParameters:
Name Flags
sourceType final
targetType final
lookupSupplier final
private static java.lang.invoke.MethodHandles$Lookup getCurrentLookup(java.util.function.Supplier<java.lang.invoke.MethodHandles$Lookup>);
descriptor: (Ljava/util/function/Supplier;)Ljava/lang/invoke/MethodHandles$Lookup;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new jdk.nashorn.internal.runtime.linker.NashornLinker$2
dup
aload 0
invokespecial jdk.nashorn.internal.runtime.linker.NashornLinker$2.<init>:(Ljava/util/function/Supplier;)V
1: getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.GET_LOOKUP_PERMISSION_CONTEXT:Ljava/security/AccessControlContext;
2: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
checkcast java.lang.invoke.MethodHandles$Lookup
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 lookupSupplier Ljava/util/function/Supplier<Ljava/lang/invoke/MethodHandles$Lookup;>;
Signature: (Ljava/util/function/Supplier<Ljava/lang/invoke/MethodHandles$Lookup;>;)Ljava/lang/invoke/MethodHandles$Lookup;
MethodParameters:
Name Flags
lookupSupplier final
private static jdk.dynalink.linker.GuardedInvocation getArrayConverter(java.lang.Class<?>, java.lang.Class<?>, java.util.function.Supplier<java.lang.invoke.MethodHandles$Lookup>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;Ljava/util/function/Supplier;)Ljdk/dynalink/linker/GuardedInvocation;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=9, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc Ljdk/nashorn/internal/objects/NativeArray;
if_acmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 3
start local 3 3: iload 3
ifne 4
aload 0
ldc Ljdk/nashorn/internal/objects/NativeArray;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 4
iconst_1
goto 5
StackMap locals: int
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: istore 4
start local 4 6: iload 3
ifne 7
iload 4
ifeq 28
7: StackMap locals: int
StackMap stack:
iload 4
ifeq 8
getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.IS_NATIVE_ARRAY:Ljava/lang/invoke/MethodHandle;
goto 9
StackMap locals:
StackMap stack:
8: aconst_null
StackMap locals:
StackMap stack: java.lang.invoke.MethodHandle
9: astore 5
start local 5 10: aload 1
invokevirtual java.lang.Class.isArray:()Z
ifeq 20
11: getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.ARRAY_CONVERTERS:Ljava/lang/ClassValue;
aload 1
invokevirtual java.lang.ClassValue.get:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast java.lang.invoke.MethodHandle
astore 6
start local 6 12: aload 6
invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
invokevirtual java.lang.invoke.MethodType.parameterCount:()I
iconst_2
if_icmpne 18
13: getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.$assertionsDisabled:Z
ifne 14
aload 6
invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
iconst_1
invokevirtual java.lang.invoke.MethodType.parameterType:(I)Ljava/lang/Class;
ldc Ljdk/dynalink/SecureLookupSupplier;
if_acmpeq 14
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
14: StackMap locals: java.lang.invoke.MethodHandle java.lang.invoke.MethodHandle
StackMap stack:
getstatic jdk.nashorn.internal.lookup.Lookup.MH:Ljdk/nashorn/internal/lookup/MethodHandleFunctionality;
aload 6
iconst_1
iconst_1
anewarray java.lang.Object
dup
iconst_0
15: new jdk.dynalink.SecureLookupSupplier
dup
aload 2
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.getCurrentLookup:(Ljava/util/function/Supplier;)Ljava/lang/invoke/MethodHandles$Lookup;
invokespecial jdk.dynalink.SecureLookupSupplier.<init>:(Ljava/lang/invoke/MethodHandles$Lookup;)V
aastore
16: invokeinterface jdk.nashorn.internal.lookup.MethodHandleFunctionality.insertArguments:(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;
astore 7
start local 7 17: goto 19
end local 7 18: StackMap locals:
StackMap stack:
aload 6
astore 7
start local 7 19: StackMap locals: java.lang.invoke.MethodHandle
StackMap stack:
new jdk.dynalink.linker.GuardedInvocation
dup
aload 7
aload 5
invokespecial jdk.dynalink.linker.GuardedInvocation.<init>:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)V
areturn
end local 7 end local 6 20: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/util/List;
if_acmpne 22
21: new jdk.dynalink.linker.GuardedInvocation
dup
getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.TO_LIST:Ljava/lang/invoke/MethodHandle;
aload 5
invokespecial jdk.dynalink.linker.GuardedInvocation.<init>:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)V
areturn
22: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/util/Deque;
if_acmpne 24
23: new jdk.dynalink.linker.GuardedInvocation
dup
getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.TO_DEQUE:Ljava/lang/invoke/MethodHandle;
aload 5
invokespecial jdk.dynalink.linker.GuardedInvocation.<init>:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)V
areturn
24: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/util/Queue;
if_acmpne 26
25: new jdk.dynalink.linker.GuardedInvocation
dup
getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.TO_QUEUE:Ljava/lang/invoke/MethodHandle;
aload 5
invokespecial jdk.dynalink.linker.GuardedInvocation.<init>:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)V
areturn
26: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/util/Collection;
if_acmpne 28
27: new jdk.dynalink.linker.GuardedInvocation
dup
getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.TO_COLLECTION:Ljava/lang/invoke/MethodHandle;
aload 5
invokespecial jdk.dynalink.linker.GuardedInvocation.<init>:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)V
areturn
end local 5 28: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 sourceType Ljava/lang/Class<*>;
0 29 1 targetType Ljava/lang/Class<*>;
0 29 2 lookupSupplier Ljava/util/function/Supplier<Ljava/lang/invoke/MethodHandles$Lookup;>;
3 29 3 isSourceTypeNativeArray Z
6 29 4 isSourceTypeGeneric Z
10 28 5 guard Ljava/lang/invoke/MethodHandle;
12 20 6 mh Ljava/lang/invoke/MethodHandle;
17 18 7 mhWithLookup Ljava/lang/invoke/MethodHandle;
19 20 7 mhWithLookup Ljava/lang/invoke/MethodHandle;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;Ljava/util/function/Supplier<Ljava/lang/invoke/MethodHandles$Lookup;>;)Ljdk/dynalink/linker/GuardedInvocation;
MethodParameters:
Name Flags
sourceType final
targetType final
lookupSupplier final
private static java.lang.invoke.MethodHandle createArrayConverter(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=4, args_size=1
start local 0 0: getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual java.lang.Class.isArray:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
astore 1
start local 1 2: aload 1
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.isComponentTypeAutoConvertibleFromFunction:(Ljava/lang/Class;)Z
ifeq 5
3: getstatic jdk.nashorn.internal.runtime.JSType.TO_JAVA_ARRAY_WITH_LOOKUP:Ljdk/nashorn/internal/codegen/CompilerConstants$Call;
astore 2
start local 2 4: goto 6
end local 2 5: StackMap locals: java.lang.Class
StackMap stack:
getstatic jdk.nashorn.internal.runtime.JSType.TO_JAVA_ARRAY:Ljdk/nashorn/internal/codegen/CompilerConstants$Call;
astore 2
start local 2 6: StackMap locals: jdk.nashorn.internal.codegen.CompilerConstants$Call
StackMap stack:
getstatic jdk.nashorn.internal.lookup.Lookup.MH:Ljdk/nashorn/internal/lookup/MethodHandleFunctionality;
aload 2
invokevirtual jdk.nashorn.internal.codegen.CompilerConstants$Call.methodHandle:()Ljava/lang/invoke/MethodHandle;
iconst_1
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokeinterface jdk.nashorn.internal.lookup.MethodHandleFunctionality.insertArguments:(Ljava/lang/invoke/MethodHandle;I[Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;
astore 3
start local 3 7: getstatic jdk.nashorn.internal.lookup.Lookup.MH:Ljdk/nashorn/internal/lookup/MethodHandleFunctionality;
aload 3
aload 3
invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
aload 0
invokevirtual java.lang.invoke.MethodType.changeReturnType:(Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
invokeinterface jdk.nashorn.internal.lookup.MethodHandleFunctionality.asType:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 type Ljava/lang/Class<*>;
2 8 1 componentType Ljava/lang/Class<*>;
4 5 2 converterCall Ljdk/nashorn/internal/codegen/CompilerConstants$Call;
6 8 2 converterCall Ljdk/nashorn/internal/codegen/CompilerConstants$Call;
7 8 3 typeBoundConverter Ljava/lang/invoke/MethodHandle;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
type final
private static boolean isComponentTypeAutoConvertibleFromFunction(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.isArray:()Z
ifeq 2
1: aload 0
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.isComponentTypeAutoConvertibleFromFunction:(Ljava/lang/Class;)Z
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.isAutoConvertibleFromFunction:(Ljava/lang/Class;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 targetType Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
targetType final
private static jdk.dynalink.linker.GuardedInvocation getMirrorConverter(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)Ljdk/dynalink/linker/GuardedInvocation;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc Ljava/util/Map;
if_acmpeq 1
aload 1
ldc Ljavax/script/Bindings;
if_acmpeq 1
aload 1
ldc Ljdk/nashorn/api/scripting/JSObject;
if_acmpeq 1
aload 1
ldc Ljdk/nashorn/api/scripting/ScriptObjectMirror;
if_acmpne 5
1: StackMap locals:
StackMap stack:
ldc Ljdk/nashorn/internal/runtime/ScriptObject;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 3
2: new jdk.dynalink.linker.GuardedInvocation
dup
getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.CREATE_MIRROR:Ljava/lang/invoke/MethodHandle;
invokespecial jdk.dynalink.linker.GuardedInvocation.<init>:(Ljava/lang/invoke/MethodHandle;)V
areturn
3: StackMap locals:
StackMap stack:
aload 0
ldc Ljdk/nashorn/internal/runtime/ScriptObject;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 4
aload 0
invokevirtual java.lang.Class.isInterface:()Z
ifeq 5
4: StackMap locals:
StackMap stack:
new jdk.dynalink.linker.GuardedInvocation
dup
getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.CREATE_MIRROR:Ljava/lang/invoke/MethodHandle;
getstatic jdk.nashorn.internal.runtime.linker.NashornLinker.IS_SCRIPT_OBJECT:Ljava/lang/invoke/MethodHandle;
invokespecial jdk.dynalink.linker.GuardedInvocation.<init>:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)V
areturn
5: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 sourceType Ljava/lang/Class<*>;
0 6 1 targetType Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Ljdk/dynalink/linker/GuardedInvocation;
MethodParameters:
Name Flags
sourceType final
targetType final
private static boolean isAutoConvertibleFromFunction(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.isAbstractClass:(Ljava/lang/Class;)Z
ifeq 3
ldc Ljdk/nashorn/internal/runtime/ScriptObject;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 3
1: aload 0
invokestatic jdk.nashorn.internal.runtime.linker.JavaAdapterFactory.isAutoConvertibleFromFunction:(Ljava/lang/Class;)Z
ifeq 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
clazz final
static boolean isAbstractClass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isAbstract:(I)Z
ifeq 1
aload 0
invokevirtual java.lang.Class.isArray:()Z
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
clazz final
public jdk.dynalink.linker.ConversionComparator$Comparison compareConversion(java.lang.Class<?>, java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)Ljdk/dynalink/linker/ConversionComparator$Comparison;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ldc Ljdk/nashorn/internal/objects/NativeArray;
if_acmpne 11
1: aload 2
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.isArrayPreferredTarget:(Ljava/lang/Class;)Z
ifeq 4
2: aload 3
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.isArrayPreferredTarget:(Ljava/lang/Class;)Z
ifne 6
3: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_1_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
4: StackMap locals:
StackMap stack:
aload 3
invokestatic jdk.nashorn.internal.runtime.linker.NashornLinker.isArrayPreferredTarget:(Ljava/lang/Class;)Z
ifeq 6
5: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_2_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
6: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.Class.isArray:()Z
ifeq 9
7: aload 3
invokevirtual java.lang.Class.isArray:()Z
ifne 11
8: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_1_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
9: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.Class.isArray:()Z
ifeq 11
10: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_2_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
11: StackMap locals:
StackMap stack:
ldc Ljdk/nashorn/internal/runtime/ScriptObject;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 17
12: aload 2
invokevirtual java.lang.Class.isInterface:()Z
ifeq 15
13: aload 3
invokevirtual java.lang.Class.isInterface:()Z
ifne 17
14: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_1_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
15: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.Class.isInterface:()Z
ifeq 17
16: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_2_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
17: StackMap locals:
StackMap stack:
getstatic jdk.dynalink.linker.ConversionComparator$Comparison.INDETERMINATE:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/nashorn/internal/runtime/linker/NashornLinker;
0 18 1 sourceType Ljava/lang/Class<*>;
0 18 2 targetType1 Ljava/lang/Class<*>;
0 18 3 targetType2 Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;Ljava/lang/Class<*>;)Ljdk/dynalink/linker/ConversionComparator$Comparison;
MethodParameters:
Name Flags
sourceType final
targetType1 final
targetType2 final
private static boolean isArrayPreferredTarget(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc Ljava/util/List;
if_acmpeq 1
aload 0
ldc Ljava/util/Collection;
if_acmpeq 1
aload 0
ldc Ljava/util/Queue;
if_acmpeq 1
aload 0
ldc Ljava/util/Deque;
if_acmpeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
clazz final
private static java.lang.invoke.MethodHandle asReturning(java.lang.invoke.MethodHandle, java.lang.Class<?>);
descriptor: (Ljava/lang/invoke/MethodHandle;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
aload 1
invokevirtual java.lang.invoke.MethodType.changeReturnType:(Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
invokevirtual java.lang.invoke.MethodHandle.asType:(Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 mh Ljava/lang/invoke/MethodHandle;
0 1 1 nrtype Ljava/lang/Class<*>;
Signature: (Ljava/lang/invoke/MethodHandle;Ljava/lang/Class<*>;)Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
mh final
nrtype final
private static boolean isNashornTypeOrUndefined(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifne 1
aload 0
instanceof jdk.nashorn.internal.runtime.Undefined
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj final
private static java.lang.Object createMirror(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifeq 1
aload 0
checkcast jdk.nashorn.internal.runtime.ScriptObject
invokestatic jdk.nashorn.api.scripting.ScriptUtils.wrap:(Ljava/lang/Object;)Ljdk/nashorn/api/scripting/ScriptObjectMirror;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
StackMap locals:
StackMap stack: java.lang.Object
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj final
private static boolean isFunction(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof jdk.nashorn.internal.runtime.ScriptFunction
ifne 2
aload 0
instanceof jdk.nashorn.api.scripting.ScriptObjectMirror
ifeq 1
aload 0
checkcast jdk.nashorn.api.scripting.ScriptObjectMirror
invokevirtual jdk.nashorn.api.scripting.ScriptObjectMirror.isFunction:()Z
ifne 2
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
StackMap locals:
StackMap stack:
2: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj final
private static java.lang.invoke.MethodHandle findOwnMH(java.lang.String, java.lang.Class<?>, java.lang.Class<?>[]);
descriptor: (Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.nashorn.internal.lookup.Lookup.MH:Ljdk/nashorn/internal/lookup/MethodHandleFunctionality;
invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
ldc Ljdk/nashorn/internal/runtime/linker/NashornLinker;
aload 0
getstatic jdk.nashorn.internal.lookup.Lookup.MH:Ljdk/nashorn/internal/lookup/MethodHandleFunctionality;
aload 1
aload 2
invokeinterface jdk.nashorn.internal.lookup.MethodHandleFunctionality.type:(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;
invokeinterface jdk.nashorn.internal.lookup.MethodHandleFunctionality.findStatic:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/MethodHandle;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
0 1 1 rtype Ljava/lang/Class<*>;
0 1 2 types [Ljava/lang/Class;
Signature: (Ljava/lang/String;Ljava/lang/Class<*>;[Ljava/lang/Class<*>;)Ljava/lang/invoke/MethodHandle;
MethodParameters:
Name Flags
name final
rtype final
types final
}
SourceFile: "NashornLinker.java"
NestMembers:
jdk.nashorn.internal.runtime.linker.NashornLinker$1 jdk.nashorn.internal.runtime.linker.NashornLinker$2
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Comparison = jdk.dynalink.linker.ConversionComparator$Comparison of jdk.dynalink.linker.ConversionComparator
public abstract Call = jdk.nashorn.internal.codegen.CompilerConstants$Call of jdk.nashorn.internal.codegen.CompilerConstants
jdk.nashorn.internal.runtime.linker.NashornLinker$1
jdk.nashorn.internal.runtime.linker.NashornLinker$2