public final class jdk.nashorn.internal.objects.NativeFunction
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.objects.NativeFunction
super_class: java.lang.Object
{
public static final java.lang.invoke.MethodHandle TO_APPLY_ARGS;
descriptor: Ljava/lang/invoke/MethodHandle;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static jdk.nashorn.internal.runtime.PropertyMap $nasgenmap$;
descriptor: Ljdk/nashorn/internal/runtime/PropertyMap;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=0, args_size=0
0: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
ldc "toApplyArgs"
ldc [Ljava/lang/Object;
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/Object;
aastore
invokestatic jdk.dynalink.linker.support.Lookup.findOwnStatic:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
putstatic jdk.nashorn.internal.objects.NativeFunction.TO_APPLY_ARGS:Ljava/lang/invoke/MethodHandle;
1: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/objects/NativeFunction;
public static java.lang.String toString(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
instanceof jdk.nashorn.internal.runtime.ScriptFunction
ifne 2
1: ldc "not.a.function"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.safeToString:(Ljava/lang/Object;)Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
checkcast jdk.nashorn.internal.runtime.ScriptFunction
invokevirtual jdk.nashorn.internal.runtime.ScriptFunction.toSource:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 self Ljava/lang/Object;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Function(attributes = 2)
MethodParameters:
Name Flags
self final
public static java.lang.Object apply(java.lang.Object, java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokestatic jdk.nashorn.internal.objects.NativeFunction.checkCallable:(Ljava/lang/Object;)V
1: aload 2
invokestatic jdk.nashorn.internal.objects.NativeFunction.toApplyArgs:(Ljava/lang/Object;)[Ljava/lang/Object;
astore 3
start local 3 2: aload 0
instanceof jdk.nashorn.internal.runtime.ScriptFunction
ifeq 4
3: aload 0
checkcast jdk.nashorn.internal.runtime.ScriptFunction
aload 1
aload 3
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.apply:(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
areturn
4: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
instanceof jdk.nashorn.api.scripting.ScriptObjectMirror
ifeq 6
5: aload 0
checkcast jdk.nashorn.api.scripting.JSObject
aload 1
aload 3
invokeinterface jdk.nashorn.api.scripting.JSObject.call:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
areturn
6: StackMap locals:
StackMap stack:
aload 0
instanceof jdk.nashorn.api.scripting.JSObject
ifeq 12
7: invokestatic jdk.nashorn.internal.objects.Global.instance:()Ljdk/nashorn/internal/objects/Global;
astore 4
start local 4 8: aload 0
checkcast jdk.nashorn.api.scripting.JSObject
aload 1
aload 4
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.wrap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
9: aload 3
aload 4
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.wrapArray:([Ljava/lang/Object;Ljava/lang/Object;)[Ljava/lang/Object;
10: invokeinterface jdk.nashorn.api.scripting.JSObject.call:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 5
start local 5 11: aload 5
aload 4
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.unwrap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 5 end local 4 12: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
ldc "Should not reach here"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 self Ljava/lang/Object;
0 13 1 thiz Ljava/lang/Object;
0 13 2 array Ljava/lang/Object;
2 13 3 args [Ljava/lang/Object;
8 12 4 global Ljdk/nashorn/internal/objects/Global;
11 12 5 result Ljava/lang/Object;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Function(attributes = 2)
MethodParameters:
Name Flags
self final
thiz final
array final
public static java.lang.Object[] toApplyArgs(java.lang.Object);
descriptor: (Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
instanceof jdk.nashorn.internal.objects.NativeArguments
ifeq 2
1: aload 0
checkcast jdk.nashorn.internal.objects.NativeArguments
invokevirtual jdk.nashorn.internal.objects.NativeArguments.getArray:()Ljdk/nashorn/internal/runtime/arrays/ArrayData;
invokevirtual jdk.nashorn.internal.runtime.arrays.ArrayData.asObjectArray:()[Ljava/lang/Object;
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifeq 12
3: aload 0
checkcast jdk.nashorn.internal.runtime.ScriptObject
astore 1
start local 1 4: aload 1
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.getLength:()Ljava/lang/Object;
invokestatic jdk.nashorn.internal.objects.NativeFunction.lengthToInt:(Ljava/lang/Object;)I
istore 2
start local 2 5: iload 2
anewarray java.lang.Object
astore 3
start local 3 6: iconst_0
istore 4
start local 4 7: goto 10
8: StackMap locals: java.lang.Object jdk.nashorn.internal.runtime.ScriptObject int java.lang.Object[] int
StackMap stack:
aload 3
iload 4
aload 1
iload 4
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.get:(I)Ljava/lang/Object;
aastore
9: iinc 4 1
StackMap locals:
StackMap stack:
10: iload 4
aload 3
arraylength
if_icmplt 8
end local 4 11: aload 3
areturn
end local 3 end local 2 end local 1 12: StackMap locals: java.lang.Object
StackMap stack:
aload 0
instanceof java.lang.Object[]
ifeq 14
13: aload 0
checkcast java.lang.Object[]
areturn
14: StackMap locals:
StackMap stack:
aload 0
instanceof java.util.List
ifeq 17
15: aload 0
checkcast java.util.List
astore 1
start local 1 16: aload 1
iconst_0
anewarray java.lang.Object
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
areturn
end local 1 17: StackMap locals:
StackMap stack:
aload 0
ifnull 18
aload 0
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpne 19
18: StackMap locals:
StackMap stack:
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.EMPTY_ARRAY:[Ljava/lang/Object;
areturn
19: StackMap locals:
StackMap stack:
aload 0
instanceof jdk.nashorn.api.scripting.JSObject
ifeq 34
20: aload 0
checkcast jdk.nashorn.api.scripting.JSObject
astore 1
start local 1 21: aload 1
ldc "length"
invokeinterface jdk.nashorn.api.scripting.JSObject.hasMember:(Ljava/lang/String;)Z
ifeq 22
aload 1
ldc "length"
invokeinterface jdk.nashorn.api.scripting.JSObject.getMember:(Ljava/lang/String;)Ljava/lang/Object;
goto 23
StackMap locals: jdk.nashorn.api.scripting.JSObject
StackMap stack:
22: iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
StackMap locals:
StackMap stack: java.lang.Object
23: astore 2
start local 2 24: aload 2
invokestatic jdk.nashorn.internal.objects.NativeFunction.lengthToInt:(Ljava/lang/Object;)I
istore 3
start local 3 25: iload 3
anewarray java.lang.Object
astore 4
start local 4 26: iconst_0
istore 5
start local 5 27: goto 32
28: StackMap locals: java.lang.Object jdk.nashorn.api.scripting.JSObject java.lang.Object int java.lang.Object[] int
StackMap stack:
aload 4
iload 5
aload 1
iload 5
invokeinterface jdk.nashorn.api.scripting.JSObject.hasSlot:(I)Z
ifeq 29
aload 1
iload 5
invokeinterface jdk.nashorn.api.scripting.JSObject.getSlot:(I)Ljava/lang/Object;
goto 30
StackMap locals: java.lang.Object jdk.nashorn.api.scripting.JSObject java.lang.Object int java.lang.Object[] int
StackMap stack: java.lang.Object[] int
29: getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
StackMap locals: java.lang.Object jdk.nashorn.api.scripting.JSObject java.lang.Object int java.lang.Object[] int
StackMap stack: java.lang.Object[] int java.lang.Object
30: aastore
31: iinc 5 1
StackMap locals:
StackMap stack:
32: iload 5
aload 4
arraylength
if_icmplt 28
end local 5 33: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 34: StackMap locals: java.lang.Object
StackMap stack:
ldc "function.apply.expects.array"
iconst_0
anewarray java.lang.String
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 array Ljava/lang/Object;
4 12 1 sobj Ljdk/nashorn/internal/runtime/ScriptObject;
5 12 2 n I
6 12 3 args [Ljava/lang/Object;
7 11 4 i I
16 17 1 list Ljava/util/List<*>;
21 34 1 jsObj Ljdk/nashorn/api/scripting/JSObject;
24 34 2 len Ljava/lang/Object;
25 34 3 n I
26 34 4 args [Ljava/lang/Object;
27 33 5 i I
MethodParameters:
Name Flags
array final
private static int lengthToInt(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokestatic jdk.nashorn.internal.runtime.JSType.toUint32:(Ljava/lang/Object;)J
lstore 1
start local 1 1: lload 1
ldc 2147483647
lcmp
ifle 3
2: ldc "range.error.inappropriate.array.length"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.rangeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
3: StackMap locals: long
StackMap stack:
lload 1
l2i
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 len Ljava/lang/Object;
1 4 1 ln J
MethodParameters:
Name Flags
len final
private static void checkCallable(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, 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.JSObject
ifeq 1
aload 0
checkcast jdk.nashorn.api.scripting.JSObject
invokeinterface jdk.nashorn.api.scripting.JSObject.isFunction:()Z
ifne 2
1: StackMap locals:
StackMap stack:
ldc "not.a.function"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.safeToString:(Ljava/lang/Object;)Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 self Ljava/lang/Object;
MethodParameters:
Name Flags
self final
public static java.lang.Object call(java.lang.Object, java.lang.Object[]);
descriptor: (Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic jdk.nashorn.internal.objects.NativeFunction.checkCallable:(Ljava/lang/Object;)V
1: aload 1
arraylength
ifne 2
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
goto 3
StackMap locals:
StackMap stack:
2: aload 1
iconst_0
aaload
StackMap locals:
StackMap stack: java.lang.Object
3: astore 2
start local 2 4: aload 1
arraylength
iconst_1
if_icmple 8
5: aload 1
arraylength
iconst_1
isub
anewarray java.lang.Object
astore 3
start local 3 6: aload 1
iconst_1
aload 3
iconst_0
aload 3
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: goto 9
end local 3 8: StackMap locals: java.lang.Object
StackMap stack:
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.EMPTY_ARRAY:[Ljava/lang/Object;
astore 3
start local 3 9: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
instanceof jdk.nashorn.internal.runtime.ScriptFunction
ifeq 11
10: aload 0
checkcast jdk.nashorn.internal.runtime.ScriptFunction
aload 2
aload 3
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.apply:(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
areturn
11: StackMap locals:
StackMap stack:
aload 0
instanceof jdk.nashorn.api.scripting.JSObject
ifeq 13
12: aload 0
checkcast jdk.nashorn.api.scripting.JSObject
aload 2
aload 3
invokeinterface jdk.nashorn.api.scripting.JSObject.call:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
areturn
13: StackMap locals:
StackMap stack:
new java.lang.AssertionError
dup
ldc "should not reach here"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 self Ljava/lang/Object;
0 14 1 args [Ljava/lang/Object;
4 14 2 thiz Ljava/lang/Object;
6 8 3 arguments [Ljava/lang/Object;
9 14 3 arguments [Ljava/lang/Object;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Function(attributes = 2, arity = 1)
MethodParameters:
Name Flags
self final
args final
public static java.lang.Object bind(java.lang.Object, java.lang.Object[]);
descriptor: (Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
arraylength
ifne 1
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
goto 2
StackMap locals:
StackMap stack:
1: aload 1
iconst_0
aaload
StackMap locals:
StackMap stack: java.lang.Object
2: astore 2
start local 2 3: aload 1
arraylength
iconst_1
if_icmple 7
4: aload 1
arraylength
iconst_1
isub
anewarray java.lang.Object
astore 3
start local 3 5: aload 1
iconst_1
aload 3
iconst_0
aload 3
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: goto 8
end local 3 7: StackMap locals: java.lang.Object
StackMap stack:
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.EMPTY_ARRAY:[Ljava/lang/Object;
astore 3
start local 3 8: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
aload 2
aload 3
invokestatic jdk.nashorn.internal.runtime.linker.Bootstrap.bindCallable:(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 self Ljava/lang/Object;
0 9 1 args [Ljava/lang/Object;
3 9 2 thiz Ljava/lang/Object;
5 7 3 arguments [Ljava/lang/Object;
8 9 3 arguments [Ljava/lang/Object;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Function(attributes = 2, arity = 1)
MethodParameters:
Name Flags
self final
args final
public static java.lang.String toSource(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
instanceof jdk.nashorn.internal.runtime.ScriptFunction
ifne 2
1: ldc "not.a.function"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.safeToString:(Ljava/lang/Object;)Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.typeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
checkcast jdk.nashorn.internal.runtime.ScriptFunction
invokevirtual jdk.nashorn.internal.runtime.ScriptFunction.toSource:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 self Ljava/lang/Object;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Function(attributes = 2)
MethodParameters:
Name Flags
self final
public static jdk.nashorn.internal.runtime.ScriptFunction function(boolean, java.lang.Object, java.lang.Object[]);
descriptor: (ZLjava/lang/Object;[Ljava/lang/Object;)Ljdk/nashorn/internal/runtime/ScriptFunction;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 1: aload 3
ldc "(function ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 2
arraylength
ifle 17
3: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 5
start local 5 4: iconst_0
istore 6
start local 6 5: goto 10
6: StackMap locals: int java.lang.Object java.lang.Object[] java.lang.StringBuilder top java.lang.StringBuilder int
StackMap stack:
aload 5
aload 2
iload 6
aaload
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: iload 6
aload 2
arraylength
iconst_2
isub
if_icmpge 9
8: aload 5
ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
10: iload 6
aload 2
arraylength
iconst_1
isub
if_icmplt 6
end local 6 11: aload 2
aload 2
arraylength
iconst_1
isub
aaload
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
astore 4
start local 4 12: aload 5
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
start local 6 13: aload 6
invokevirtual java.lang.String.isEmpty:()Z
ifne 18
14: aload 6
invokestatic jdk.nashorn.internal.objects.NativeFunction.checkFunctionParameters:(Ljava/lang/String;)V
15: aload 3
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 6 end local 5 16: goto 18
end local 4 17: StackMap locals: int java.lang.Object java.lang.Object[] java.lang.StringBuilder
StackMap stack:
aconst_null
astore 4
start local 4 18: StackMap locals: java.lang.String
StackMap stack:
aload 3
ldc ") {\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
19: aload 2
arraylength
ifle 23
20: aload 4
invokestatic jdk.nashorn.internal.objects.NativeFunction.checkFunctionBody:(Ljava/lang/String;)V
21: aload 3
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
22: aload 3
bipush 10
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
23: StackMap locals:
StackMap stack:
aload 3
ldc "})"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
24: invokestatic jdk.nashorn.internal.objects.Global.instance:()Ljdk/nashorn/internal/objects/Global;
astore 5
start local 5 25: aload 5
invokevirtual jdk.nashorn.internal.objects.Global.getContext:()Ljdk/nashorn/internal/runtime/Context;
astore 6
start local 6 26: aload 6
aload 5
aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
ldc "<function>"
invokevirtual jdk.nashorn.internal.runtime.Context.eval:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.ScriptFunction
areturn
end local 6 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 27 0 newObj Z
0 27 1 self Ljava/lang/Object;
0 27 2 args [Ljava/lang/Object;
1 27 3 sb Ljava/lang/StringBuilder;
12 17 4 funcBody Ljava/lang/String;
18 27 4 funcBody Ljava/lang/String;
4 16 5 paramListBuf Ljava/lang/StringBuilder;
5 11 6 i I
13 16 6 paramList Ljava/lang/String;
25 27 5 global Ljdk/nashorn/internal/objects/Global;
26 27 6 context Ljdk/nashorn/internal/runtime/Context;
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.Constructor(arity = 1)
MethodParameters:
Name Flags
newObj final
self final
args final
private static void checkFunctionParameters(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokestatic jdk.nashorn.internal.objects.NativeFunction.getParser:(Ljava/lang/String;)Ljdk/nashorn/internal/parser/Parser;
astore 1
start local 1 1: aload 1
invokevirtual jdk.nashorn.internal.parser.Parser.parseFormalParameterList:()Ljava/util/List;
pop
2: goto 5
StackMap locals: java.lang.String jdk.nashorn.internal.parser.Parser
StackMap stack: jdk.nashorn.internal.runtime.ParserException
3: astore 2
start local 2 4: aload 2
invokevirtual jdk.nashorn.internal.runtime.ParserException.throwAsEcmaException:()V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 params Ljava/lang/String;
1 6 1 parser Ljdk/nashorn/internal/parser/Parser;
4 5 2 pe Ljdk/nashorn/internal/runtime/ParserException;
Exception table:
from to target type
1 2 3 Class jdk.nashorn.internal.runtime.ParserException
MethodParameters:
Name Flags
params final
private static void checkFunctionBody(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokestatic jdk.nashorn.internal.objects.NativeFunction.getParser:(Ljava/lang/String;)Ljdk/nashorn/internal/parser/Parser;
astore 1
start local 1 1: aload 1
invokevirtual jdk.nashorn.internal.parser.Parser.parseFunctionBody:()Ljdk/nashorn/internal/ir/FunctionNode;
pop
2: goto 5
StackMap locals: java.lang.String jdk.nashorn.internal.parser.Parser
StackMap stack: jdk.nashorn.internal.runtime.ParserException
3: astore 2
start local 2 4: aload 2
invokevirtual jdk.nashorn.internal.runtime.ParserException.throwAsEcmaException:()V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 funcBody Ljava/lang/String;
1 6 1 parser Ljdk/nashorn/internal/parser/Parser;
4 5 2 pe Ljdk/nashorn/internal/runtime/ParserException;
Exception table:
from to target type
1 2 3 Class jdk.nashorn.internal.runtime.ParserException
MethodParameters:
Name Flags
funcBody final
private static jdk.nashorn.internal.parser.Parser getParser(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/nashorn/internal/parser/Parser;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: invokestatic jdk.nashorn.internal.objects.Global.getEnv:()Ljdk/nashorn/internal/runtime/ScriptEnvironment;
astore 1
start local 1 1: new jdk.nashorn.internal.parser.Parser
dup
aload 1
ldc "<function>"
aload 0
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/lang/String;)Ljdk/nashorn/internal/runtime/Source;
new jdk.nashorn.internal.runtime.Context$ThrowErrorManager
dup
invokespecial jdk.nashorn.internal.runtime.Context$ThrowErrorManager.<init>:()V
aload 1
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._strict:Z
aconst_null
invokespecial jdk.nashorn.internal.parser.Parser.<init>:(Ljdk/nashorn/internal/runtime/ScriptEnvironment;Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/internal/runtime/ErrorManager;ZLjdk/nashorn/internal/runtime/logging/DebugLogger;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 sourceText Ljava/lang/String;
1 2 1 env Ljdk/nashorn/internal/runtime/ScriptEnvironment;
MethodParameters:
Name Flags
sourceText final
}
SourceFile: "NativeFunction.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public ThrowErrorManager = jdk.nashorn.internal.runtime.Context$ThrowErrorManager of jdk.nashorn.internal.runtime.Context
RuntimeVisibleAnnotations:
jdk.nashorn.internal.objects.annotations.ScriptClass(value = "Function")