public final class jdk.nashorn.internal.runtime.JSONFunctions
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.runtime.JSONFunctions
super_class: java.lang.Object
{
private static final java.lang.Object REVIVER_INVOKER;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic jdk.nashorn.internal.runtime.JSONFunctions.REVIVER_INVOKER:Ljava/lang/Object;
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
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/JSONFunctions;
private static java.lang.invoke.MethodHandle getREVIVER_INVOKER();
descriptor: ()Ljava/lang/invoke/MethodHandle;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
getstatic jdk.nashorn.internal.runtime.JSONFunctions.REVIVER_INVOKER:Ljava/lang/Object;
1: new jdk.nashorn.internal.runtime.JSONFunctions$1
dup
invokespecial jdk.nashorn.internal.runtime.JSONFunctions$1.<init>:()V
2: invokevirtual jdk.nashorn.internal.objects.Global.getDynamicInvoker:(Ljava/lang/Object;Ljava/util/concurrent/Callable;)Ljava/lang/invoke/MethodHandle;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.String quote(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.nashorn.internal.parser.JSONParser.quote:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 str Ljava/lang/String;
MethodParameters:
Name Flags
str final
public static java.lang.Object parse(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
astore 2
start local 2 1: invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 3
start local 3 2: aload 3
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.useDualFields:()Z
istore 4
start local 4 3: new jdk.nashorn.internal.parser.JSONParser
dup
aload 2
aload 3
iload 4
invokespecial jdk.nashorn.internal.parser.JSONParser.<init>:(Ljava/lang/String;Ljdk/nashorn/internal/objects/Global;Z)V
astore 5
start local 5 4: aload 5
invokevirtual jdk.nashorn.internal.parser.JSONParser.parse:()Ljava/lang/Object;
astore 6
start local 6 5: goto 8
end local 6 StackMap locals: java.lang.Object java.lang.Object java.lang.String jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.parser.JSONParser
StackMap stack: jdk.nashorn.internal.runtime.ParserException
6: astore 7
start local 7 7: aload 7
ldc "invalid.json"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 7
invokevirtual jdk.nashorn.internal.runtime.ParserException.getMessage:()Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.syntaxError:(Ljava/lang/Throwable;Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
end local 7 start local 6 8: StackMap locals: java.lang.Object
StackMap stack:
aload 3
aload 6
aload 1
invokestatic jdk.nashorn.internal.runtime.JSONFunctions.applyReviver:(Ljdk/nashorn/internal/objects/Global;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
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 9 0 text Ljava/lang/Object;
0 9 1 reviver Ljava/lang/Object;
1 9 2 str Ljava/lang/String;
2 9 3 global Ljdk/nashorn/internal/objects/Global;
3 9 4 dualFields Z
4 9 5 parser Ljdk/nashorn/internal/parser/JSONParser;
5 6 6 value Ljava/lang/Object;
8 9 6 value Ljava/lang/Object;
7 8 7 e Ljdk/nashorn/internal/runtime/ParserException;
Exception table:
from to target type
4 5 6 Class jdk.nashorn.internal.runtime.ParserException
MethodParameters:
Name Flags
text final
reviver final
private static java.lang.Object applyReviver(jdk.nashorn.internal.objects.Global, java.lang.Object, java.lang.Object);
descriptor: (Ljdk/nashorn/internal/objects/Global;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic jdk.nashorn.internal.runtime.linker.Bootstrap.isCallable:(Ljava/lang/Object;)Z
ifeq 4
1: aload 0
invokevirtual jdk.nashorn.internal.objects.Global.newObject:()Ljdk/nashorn/internal/runtime/ScriptObject;
astore 3
start local 3 2: aload 3
ldc ""
iconst_0
aload 1
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.addOwnProperty:(Ljava/lang/Object;ILjava/lang/Object;)Ljdk/nashorn/internal/runtime/Property;
pop
3: aload 3
ldc ""
aload 2
invokestatic jdk.nashorn.internal.runtime.JSONFunctions.walk:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 3 4: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 global Ljdk/nashorn/internal/objects/Global;
0 5 1 unfiltered Ljava/lang/Object;
0 5 2 reviver Ljava/lang/Object;
2 4 3 root Ljdk/nashorn/internal/runtime/ScriptObject;
MethodParameters:
Name Flags
global final
unfiltered final
reviver final
private static java.lang.Object walk(jdk.nashorn.internal.runtime.ScriptObject, java.lang.Object, java.lang.Object);
descriptor: (Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 1: aload 3
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifeq 26
2: aload 3
checkcast jdk.nashorn.internal.runtime.ScriptObject
astore 4
start local 4 3: aload 4
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.isArray:()Z
ifeq 16
4: aload 4
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.getLength:()Ljava/lang/Object;
invokestatic jdk.nashorn.internal.runtime.JSType.toInteger:(Ljava/lang/Object;)I
istore 5
start local 5 5: iconst_0
istore 6
start local 6 6: goto 14
7: StackMap locals: jdk.nashorn.internal.runtime.ScriptObject java.lang.Object java.lang.Object java.lang.Object jdk.nashorn.internal.runtime.ScriptObject int int
StackMap stack:
iload 6
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
astore 7
start local 7 8: aload 4
aload 7
aload 2
invokestatic jdk.nashorn.internal.runtime.JSONFunctions.walk:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
astore 8
start local 8 9: aload 8
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpne 12
10: aload 4
iload 6
iconst_0
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.delete:(IZ)Z
pop
11: goto 13
12: StackMap locals: java.lang.String java.lang.Object
StackMap stack:
aload 4
aload 7
aload 8
invokestatic jdk.nashorn.internal.runtime.JSONFunctions.setPropertyValue:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/String;Ljava/lang/Object;)V
end local 8 end local 7 13: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
14: iload 6
iload 5
if_icmplt 7
end local 6 end local 5 15: goto 26
16: StackMap locals:
StackMap stack:
aload 4
iconst_0
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.getOwnKeys:(Z)[Ljava/lang/String;
astore 5
start local 5 17: aload 5
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 25
StackMap locals: jdk.nashorn.internal.runtime.ScriptObject java.lang.Object java.lang.Object java.lang.Object jdk.nashorn.internal.runtime.ScriptObject java.lang.String[] top int int java.lang.String[]
StackMap stack:
18: aload 9
iload 7
aaload
astore 6
start local 6 19: aload 4
aload 6
aload 2
invokestatic jdk.nashorn.internal.runtime.JSONFunctions.walk:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
astore 10
start local 10 20: aload 10
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpne 23
21: aload 4
aload 6
iconst_0
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.delete:(Ljava/lang/Object;Z)Z
pop
22: goto 24
23: StackMap locals: jdk.nashorn.internal.runtime.ScriptObject java.lang.Object java.lang.Object java.lang.Object jdk.nashorn.internal.runtime.ScriptObject java.lang.String[] java.lang.String int int java.lang.String[] java.lang.Object
StackMap stack:
aload 4
aload 6
aload 10
invokestatic jdk.nashorn.internal.runtime.JSONFunctions.setPropertyValue:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/String;Ljava/lang/Object;)V
end local 10 end local 6 24: StackMap locals: jdk.nashorn.internal.runtime.ScriptObject java.lang.Object java.lang.Object java.lang.Object jdk.nashorn.internal.runtime.ScriptObject java.lang.String[] top int int java.lang.String[]
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
25: iload 7
iload 8
if_icmplt 18
end local 5 end local 4 26: StackMap locals: jdk.nashorn.internal.runtime.ScriptObject java.lang.Object java.lang.Object java.lang.Object
StackMap stack:
invokestatic jdk.nashorn.internal.runtime.JSONFunctions.getREVIVER_INVOKER:()Ljava/lang/invoke/MethodHandle;
aload 2
aload 0
aload 1
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
aload 3
invokevirtual java.lang.invoke.MethodHandle.invokeExact:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
27: areturn
28: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
start local 4 29: aload 4
athrow
end local 4 30: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
start local 4 31: new java.lang.RuntimeException
dup
aload 4
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 holder Ljdk/nashorn/internal/runtime/ScriptObject;
0 32 1 name Ljava/lang/Object;
0 32 2 reviver Ljava/lang/Object;
1 32 3 val Ljava/lang/Object;
3 26 4 valueObj Ljdk/nashorn/internal/runtime/ScriptObject;
5 15 5 length I
6 15 6 i I
8 13 7 key Ljava/lang/String;
9 13 8 newElement Ljava/lang/Object;
17 26 5 keys [Ljava/lang/String;
19 24 6 key Ljava/lang/String;
20 24 10 newElement Ljava/lang/Object;
29 30 4 t Ljava/lang/Throwable;
31 32 4 t Ljava/lang/Throwable;
Exception table:
from to target type
26 27 28 Class java.lang.Error
26 27 28 Class java.lang.RuntimeException
26 27 30 Class java.lang.Throwable
MethodParameters:
Name Flags
holder final
name final
reviver final
private static void setPropertyValue(jdk.nashorn.internal.runtime.ScriptObject, java.lang.String, java.lang.Object);
descriptor: (Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic jdk.nashorn.internal.runtime.arrays.ArrayIndex.getArrayIndex:(Ljava/lang/String;)I
istore 3
start local 3 1: iload 3
invokestatic jdk.nashorn.internal.runtime.arrays.ArrayIndex.isValidArrayIndex:(I)Z
ifeq 4
2: aload 0
iload 3
aload 2
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.defineOwnProperty:(ILjava/lang/Object;)V
3: goto 8
StackMap locals: int
StackMap stack:
4: aload 0
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.getMap:()Ljdk/nashorn/internal/runtime/PropertyMap;
aload 1
invokevirtual jdk.nashorn.internal.runtime.PropertyMap.findProperty:(Ljava/lang/Object;)Ljdk/nashorn/internal/runtime/Property;
ifnull 7
5: aload 0
aload 1
aload 2
iconst_0
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.set:(Ljava/lang/Object;Ljava/lang/Object;I)V
6: goto 8
7: StackMap locals:
StackMap stack:
aload 0
aload 1
iconst_0
aload 2
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.addOwnProperty:(Ljava/lang/Object;ILjava/lang/Object;)Ljdk/nashorn/internal/runtime/Property;
pop
8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 sobj Ljdk/nashorn/internal/runtime/ScriptObject;
0 9 1 name Ljava/lang/String;
0 9 2 value Ljava/lang/Object;
1 9 3 index I
MethodParameters:
Name Flags
sobj final
name final
value final
}
SourceFile: "JSONFunctions.java"
NestMembers:
jdk.nashorn.internal.runtime.JSONFunctions$1
InnerClasses:
jdk.nashorn.internal.runtime.JSONFunctions$1