final class jdk.nashorn.internal.runtime.linker.NashornPrimitiveLinker 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.NashornPrimitiveLinker
super_class: java.lang.Object
{
private static final jdk.dynalink.linker.GuardedInvocation VOID_TO_OBJECT;
descriptor: Ljdk/dynalink/linker/GuardedInvocation;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.MethodHandle GUARD_PRIMITIVE;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: new jdk.dynalink.linker.GuardedInvocation
dup
ldc Ljava/lang/Object;
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
invokestatic java.lang.invoke.MethodHandles.constant:(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;
invokespecial jdk.dynalink.linker.GuardedInvocation.<init>:(Ljava/lang/invoke/MethodHandle;)V
1: putstatic jdk.nashorn.internal.runtime.linker.NashornPrimitiveLinker.VOID_TO_OBJECT:Ljdk/dynalink/linker/GuardedInvocation;
2: ldc "isJavaScriptPrimitive"
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.NashornPrimitiveLinker.findOwnMH:(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.nashorn.internal.runtime.linker.NashornPrimitiveLinker.GUARD_PRIMITIVE:Ljava/lang/invoke/MethodHandle;
return
LocalVariableTable:
Start End Slot Name Signature
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/NashornPrimitiveLinker;
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.NashornPrimitiveLinker.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/NashornPrimitiveLinker;
0 1 1 type Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
type final
private static boolean canLinkTypeStatic(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/lang/String;
if_acmpeq 4
aload 0
ldc Ljava/lang/Boolean;
if_acmpeq 4
aload 0
ldc Ljdk/nashorn/internal/runtime/ConsString;
if_acmpeq 4
aload 0
ldc Ljava/lang/Integer;
if_acmpeq 4
1: aload 0
ldc Ljava/lang/Double;
if_acmpeq 4
aload 0
ldc Ljava/lang/Float;
if_acmpeq 4
aload 0
ldc Ljava/lang/Short;
if_acmpeq 4
aload 0
ldc Ljava/lang/Byte;
if_acmpeq 4
2: aload 0
ldc Ljdk/nashorn/internal/runtime/Symbol;
if_acmpeq 4
3: iconst_0
ireturn
StackMap locals:
StackMap stack:
4: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 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.getReceiver:()Ljava/lang/Object;
astore 3
start local 3 1: aload 1
aload 3
invokestatic jdk.nashorn.internal.objects.Global.primitiveLookup:(Ljdk/dynalink/linker/LinkRequest;Ljava/lang/Object;)Ljdk/dynalink/linker/GuardedInvocation;
aload 2
aload 1
invokeinterface jdk.dynalink.linker.LinkRequest.getCallSiteDescriptor:()Ljdk/dynalink/CallSiteDescriptor;
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/NashornPrimitiveLinker;
0 2 1 request Ljdk/dynalink/linker/LinkRequest;
0 2 2 linkerServices Ljdk/dynalink/linker/LinkerServices;
1 2 3 self Ljava/lang/Object;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
request final
linkerServices 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=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokestatic jdk.nashorn.internal.runtime.linker.JavaArgumentConverters.getConverter:(Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
astore 4
start local 4 1: aload 4
ifnonnull 5
2: aload 2
ldc Ljava/lang/Object;
if_acmpne 4
aload 1
getstatic java.lang.Void.TYPE:Ljava/lang/Class;
if_acmpne 4
3: getstatic jdk.nashorn.internal.runtime.linker.NashornPrimitiveLinker.VOID_TO_OBJECT:Ljdk/dynalink/linker/GuardedInvocation;
areturn
4: StackMap locals: java.lang.invoke.MethodHandle
StackMap stack:
aconst_null
areturn
5: StackMap locals:
StackMap stack:
new jdk.dynalink.linker.GuardedInvocation
dup
aload 4
aload 1
invokestatic jdk.nashorn.internal.runtime.linker.NashornPrimitiveLinker.canLinkTypeStatic:(Ljava/lang/Class;)Z
ifeq 6
aconst_null
goto 7
StackMap locals: jdk.nashorn.internal.runtime.linker.NashornPrimitiveLinker java.lang.Class java.lang.Class java.util.function.Supplier java.lang.invoke.MethodHandle
StackMap stack: new 5 new 5 java.lang.invoke.MethodHandle
6: getstatic jdk.nashorn.internal.runtime.linker.NashornPrimitiveLinker.GUARD_PRIMITIVE:Ljava/lang/invoke/MethodHandle;
StackMap locals: jdk.nashorn.internal.runtime.linker.NashornPrimitiveLinker java.lang.Class java.lang.Class java.util.function.Supplier java.lang.invoke.MethodHandle
StackMap stack: new 5 new 5 java.lang.invoke.MethodHandle java.lang.invoke.MethodHandle
7: invokespecial jdk.dynalink.linker.GuardedInvocation.<init>:(Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodHandle;)V
aload 4
invokevirtual java.lang.invoke.MethodHandle.type:()Ljava/lang/invoke/MethodType;
iconst_0
aload 1
invokevirtual java.lang.invoke.MethodType.changeParameterType:(ILjava/lang/Class;)Ljava/lang/invoke/MethodType;
invokevirtual jdk.dynalink.linker.GuardedInvocation.asType:(Ljava/lang/invoke/MethodType;)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 8 0 this Ljdk/nashorn/internal/runtime/linker/NashornPrimitiveLinker;
0 8 1 sourceType Ljava/lang/Class<*>;
0 8 2 targetType Ljava/lang/Class<*>;
0 8 3 lookupSupplier Ljava/util/function/Supplier<Ljava/lang/invoke/MethodHandles$Lookup;>;
1 8 4 mh 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
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=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokestatic jdk.nashorn.internal.runtime.linker.NashornPrimitiveLinker.getWrapperTypeOrSelf:(Ljava/lang/Class;)Ljava/lang/Class;
astore 4
start local 4 1: aload 1
aload 4
if_acmpne 3
2: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_1_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
3: StackMap locals: java.lang.Class
StackMap stack:
aload 3
invokestatic jdk.nashorn.internal.runtime.linker.NashornPrimitiveLinker.getWrapperTypeOrSelf:(Ljava/lang/Class;)Ljava/lang/Class;
astore 5
start local 5 4: aload 1
aload 5
if_acmpne 6
5: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_2_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
6: StackMap locals: java.lang.Class
StackMap stack:
ldc Ljava/lang/Number;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 16
7: ldc Ljava/lang/Number;
aload 4
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 10
8: ldc Ljava/lang/Number;
aload 5
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 12
9: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_1_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
10: StackMap locals:
StackMap stack:
ldc Ljava/lang/Number;
aload 5
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 12
11: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_2_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
12: StackMap locals:
StackMap stack:
ldc Ljava/lang/Character;
aload 4
if_acmpne 14
13: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_1_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
14: StackMap locals:
StackMap stack:
ldc Ljava/lang/Character;
aload 5
if_acmpne 16
15: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_2_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
16: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/lang/String;
if_acmpeq 17
aload 1
ldc Ljava/lang/Boolean;
if_acmpeq 17
ldc Ljava/lang/Number;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 27
17: StackMap locals:
StackMap stack:
aload 2
invokestatic jdk.nashorn.internal.runtime.linker.NashornPrimitiveLinker.getPrimitiveTypeOrSelf:(Ljava/lang/Class;)Ljava/lang/Class;
astore 6
start local 6 18: aload 3
invokestatic jdk.nashorn.internal.runtime.linker.NashornPrimitiveLinker.getPrimitiveTypeOrSelf:(Ljava/lang/Class;)Ljava/lang/Class;
astore 7
start local 7 19: aload 6
aload 7
invokestatic jdk.dynalink.linker.support.TypeUtilities.isMethodInvocationConvertible:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 21
20: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_2_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
21: StackMap locals: java.lang.Class java.lang.Class
StackMap stack:
aload 7
aload 6
invokestatic jdk.dynalink.linker.support.TypeUtilities.isMethodInvocationConvertible:(Ljava/lang/Class;Ljava/lang/Class;)Z
ifeq 23
22: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_1_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
23: StackMap locals:
StackMap stack:
aload 2
ldc Ljava/lang/String;
if_acmpne 25
24: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_1_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
25: StackMap locals:
StackMap stack:
aload 3
ldc Ljava/lang/String;
if_acmpne 27
26: getstatic jdk.dynalink.linker.ConversionComparator$Comparison.TYPE_2_BETTER:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
end local 7 end local 6 27: StackMap locals:
StackMap stack:
getstatic jdk.dynalink.linker.ConversionComparator$Comparison.INDETERMINATE:Ljdk/dynalink/linker/ConversionComparator$Comparison;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Ljdk/nashorn/internal/runtime/linker/NashornPrimitiveLinker;
0 28 1 sourceType Ljava/lang/Class<*>;
0 28 2 targetType1 Ljava/lang/Class<*>;
0 28 3 targetType2 Ljava/lang/Class<*>;
1 28 4 wrapper1 Ljava/lang/Class<*>;
4 28 5 wrapper2 Ljava/lang/Class<*>;
18 27 6 primitiveType1 Ljava/lang/Class<*>;
19 27 7 primitiveType2 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 java.lang.Class<?> getPrimitiveTypeOrSelf(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Class;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokestatic jdk.dynalink.linker.support.TypeUtilities.getPrimitiveType:(Ljava/lang/Class;)Ljava/lang/Class;
astore 1
start local 1 1: aload 1
ifnonnull 2
aload 0
goto 3
StackMap locals: java.lang.Class
StackMap stack:
2: aload 1
StackMap locals:
StackMap stack: java.lang.Class
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 type Ljava/lang/Class<*>;
1 4 1 primitive Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
type final
private static java.lang.Class<?> getWrapperTypeOrSelf(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Class;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokestatic jdk.dynalink.linker.support.TypeUtilities.getWrapperType:(Ljava/lang/Class;)Ljava/lang/Class;
astore 1
start local 1 1: aload 1
ifnonnull 2
aload 0
goto 3
StackMap locals: java.lang.Class
StackMap stack:
2: aload 1
StackMap locals:
StackMap stack: java.lang.Class
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 type Ljava/lang/Class<*>;
1 4 1 wrapper Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
type final
private static boolean isJavaScriptPrimitive(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
invokestatic jdk.nashorn.internal.runtime.JSType.isString:(Ljava/lang/Object;)Z
ifne 1
aload 0
instanceof java.lang.Boolean
ifne 1
aload 0
invokestatic jdk.nashorn.internal.runtime.JSType.isNumber:(Ljava/lang/Object;)Z
ifne 1
aload 0
ifnull 1
aload 0
instanceof jdk.nashorn.internal.runtime.Symbol
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 o Ljava/lang/Object;
MethodParameters:
Name Flags
o 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/NashornPrimitiveLinker;
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: "NashornPrimitiveLinker.java"
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