public class com.oracle.truffle.js.builtins.helper.NashornJSONParser
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.js.builtins.helper.NashornJSONParser
super_class: java.lang.Object
{
private final java.lang.String source;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.js.runtime.JSContext context;
descriptor: Lcom/oracle/truffle/js/runtime/JSContext;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int length;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int pos;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private static final int EOF;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private static final java.lang.String TRUE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "true"
private static final java.lang.String FALSE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "false"
private static final java.lang.String NULL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "null"
private static final int STATE_EMPTY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int STATE_ELEMENT_PARSED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int STATE_COMMA_PARSED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
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=1, locals=0, args_size=0
0: ldc Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
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 com.oracle.truffle.js.builtins.helper.NashornJSONParser.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String, com.oracle.truffle.js.runtime.JSContext);
descriptor: (Ljava/lang/String;Lcom/oracle/truffle/js/runtime/JSContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
2: aload 0
aload 1
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.source:Ljava/lang/String;
3: aload 0
aload 2
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.context:Lcom/oracle/truffle/js/runtime/JSContext;
4: aload 0
aload 1
invokevirtual java.lang.String.length:()I
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.length:I
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
0 6 1 source Ljava/lang/String;
0 6 2 context Lcom/oracle/truffle/js/runtime/JSContext;
MethodParameters:
Name Flags
source final
context final
public java.lang.Object parse();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseLiteral:()Ljava/lang/Object;
astore 1
start local 1 1: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.skipWhiteSpace:()V
2: aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.length:I
if_icmpge 4
3: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
ldc "eof"
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.peek:()I
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.toString:(I)Ljava/lang/String;
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.expectedError:(ILjava/lang/String;Ljava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
4: StackMap locals: java.lang.Object
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
1 5 1 value Ljava/lang/Object;
private java.lang.Object parseLiteral();
descriptor: ()Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.skipWhiteSpace:()V
1: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.peek:()I
istore 1
start local 1 2: iload 1
iconst_m1
if_icmpne 4
3: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
ldc "json literal"
ldc "eof"
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.expectedError:(ILjava/lang/String;Ljava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
4: StackMap locals: int
StackMap stack:
iload 1
lookupswitch { // 6
34: 7
91: 6
102: 8
110: 10
116: 9
123: 5
default: 11
}
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseObject:()Ljava/lang/Object;
areturn
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseArray:()Ljava/lang/Object;
areturn
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseString:()Ljava/lang/String;
areturn
8: StackMap locals:
StackMap stack:
aload 0
ldc "false"
getstatic java.lang.Boolean.FALSE:Ljava/lang/Boolean;
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseKeyword:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
areturn
9: StackMap locals:
StackMap stack:
aload 0
ldc "true"
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseKeyword:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
areturn
10: StackMap locals:
StackMap stack:
aload 0
ldc "null"
getstatic com.oracle.truffle.js.runtime.objects.Null.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseKeyword:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
areturn
11: StackMap locals:
StackMap stack:
iload 1
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.isDigit:(I)Z
ifne 12
iload 1
bipush 45
if_icmpne 13
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseNumber:()Ljava/lang/Number;
areturn
13: StackMap locals:
StackMap stack:
iload 1
bipush 46
if_icmpne 15
14: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.numberError:(I)Lcom/oracle/js/parser/ParserException;
athrow
15: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
ldc "json literal"
iload 1
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.toString:(I)Ljava/lang/String;
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.expectedError:(ILjava/lang/String;Ljava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
2 16 1 c I
private java.lang.Object parseObject();
descriptor: ()Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.context:Lcom/oracle/truffle/js/runtime/JSContext;
invokestatic com.oracle.truffle.js.runtime.builtins.JSOrdinary.create:(Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/api/object/DynamicObject;
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: getstatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.$assertionsDisabled:Z
ifne 3
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.peek:()I
bipush 123
if_icmpeq 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: com.oracle.truffle.api.object.DynamicObject int
StackMap stack:
aload 0
dup
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
iadd
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
4: goto 26
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.skipWhiteSpace:()V
6: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.peek:()I
istore 3
start local 3 7: iload 3
lookupswitch { // 3
34: 8
44: 16
125: 21
default: 25
}
8: StackMap locals: int
StackMap stack:
iload 2
iconst_1
if_icmpne 10
9: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
ldc ", or }"
iload 3
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.toString:(I)Ljava/lang/String;
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.expectedError:(ILjava/lang/String;Ljava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseString:()Ljava/lang/String;
astore 4
start local 4 11: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.expectColon:()V
12: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseLiteral:()Ljava/lang/Object;
astore 5
start local 5 13: aload 0
aload 1
aload 4
aload 5
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.addObjectProperty:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;Ljava/lang/Object;)V
14: iconst_1
istore 2
15: goto 26
end local 5 end local 4 16: StackMap locals:
StackMap stack:
iload 2
iconst_1
if_icmpeq 18
17: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iload 3
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.toString:(I)Ljava/lang/String;
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.trailingCommaError:(ILjava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
18: StackMap locals:
StackMap stack:
iconst_2
istore 2
19: aload 0
dup
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
iadd
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
20: goto 26
21: StackMap locals:
StackMap stack:
iload 2
iconst_2
if_icmpne 23
22: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iload 3
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.toString:(I)Ljava/lang/String;
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.trailingCommaError:(ILjava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
23: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
iadd
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
24: aload 1
areturn
25: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
ldc ", or }"
iload 3
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.toString:(I)Ljava/lang/String;
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.expectedError:(ILjava/lang/String;Ljava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
end local 3 26: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.length:I
if_icmplt 5
27: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
ldc ", or }"
ldc "eof"
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.expectedError:(ILjava/lang/String;Ljava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
1 28 1 jsobject Lcom/oracle/truffle/api/object/DynamicObject;
2 28 2 state I
7 26 3 c I
11 16 4 id Ljava/lang/String;
13 16 5 value Ljava/lang/Object;
private void addObjectProperty(com.oracle.truffle.api.object.DynamicObject, java.lang.String, java.lang.Object);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.context:Lcom/oracle/truffle/js/runtime/JSContext;
aload 1
aload 2
aload 3
invokestatic com.oracle.truffle.js.runtime.objects.JSAttributes.getDefault:()I
invokestatic com.oracle.truffle.js.runtime.objects.JSObjectUtil.defineDataProperty:(Lcom/oracle/truffle/js/runtime/JSContext;Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;Ljava/lang/Object;I)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
0 2 1 object Lcom/oracle/truffle/api/object/DynamicObject;
0 2 2 id Ljava/lang/String;
0 2 3 value Ljava/lang/Object;
MethodParameters:
Name Flags
object final
id final
value final
private void expectColon();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.skipWhiteSpace:()V
1: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.next:()I
istore 1
start local 1 2: iload 1
bipush 58
if_icmpeq 4
3: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
isub
ldc ":"
iload 1
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.toString:(I)Ljava/lang/String;
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.expectedError:(ILjava/lang/String;Ljava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
4: StackMap locals: int
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
2 5 1 n I
private java.lang.Object parseArray();
descriptor: ()Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=7, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.context:Lcom/oracle/truffle/js/runtime/JSContext;
invokestatic com.oracle.truffle.js.runtime.builtins.JSArray.createEmptyZeroLength:(Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/api/object/DynamicObject;
astore 1
start local 1 1: aload 1
invokestatic com.oracle.truffle.js.runtime.builtins.JSAbstractArray.arrayGetArrayType:(Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/js/runtime/array/ScriptArray;
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: getstatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.$assertionsDisabled:Z
ifne 4
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.peek:()I
bipush 91
if_icmpeq 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: com.oracle.truffle.api.object.DynamicObject com.oracle.truffle.js.runtime.array.ScriptArray int
StackMap stack:
aload 0
dup
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
iadd
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
5: goto 24
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.skipWhiteSpace:()V
7: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.peek:()I
istore 4
start local 4 8: iload 4
lookupswitch { // 2
44: 9
93: 14
default: 18
}
9: StackMap locals: int
StackMap stack:
iload 3
iconst_1
if_icmpeq 11
10: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iload 4
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.toString:(I)Ljava/lang/String;
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.trailingCommaError:(ILjava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
11: StackMap locals:
StackMap stack:
iconst_2
istore 3
12: aload 0
dup
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
iadd
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
13: goto 24
14: StackMap locals:
StackMap stack:
iload 3
iconst_2
if_icmpne 16
15: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iload 4
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.toString:(I)Ljava/lang/String;
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.trailingCommaError:(ILjava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
16: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
iadd
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
17: aload 1
areturn
18: StackMap locals:
StackMap stack:
iload 3
iconst_1
if_icmpne 20
19: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
ldc ", or ]"
iload 4
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.toString:(I)Ljava/lang/String;
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.expectedError:(ILjava/lang/String;Ljava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
20: StackMap locals:
StackMap stack:
aload 2
aload 1
invokevirtual com.oracle.truffle.js.runtime.array.ScriptArray.length:(Lcom/oracle/truffle/api/object/DynamicObject;)J
lstore 5
start local 5 21: aload 2
aload 1
lload 5
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseLiteral:()Ljava/lang/Object;
iconst_1
invokevirtual com.oracle.truffle.js.runtime.array.ScriptArray.setElement:(Lcom/oracle/truffle/api/object/DynamicObject;JLjava/lang/Object;Z)Lcom/oracle/truffle/js/runtime/array/ScriptArray;
astore 2
22: aload 1
aload 2
invokestatic com.oracle.truffle.js.runtime.builtins.JSAbstractArray.arraySetArrayType:(Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/js/runtime/array/ScriptArray;)V
23: iconst_1
istore 3
end local 5 end local 4 24: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.length:I
if_icmplt 6
25: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
ldc ", or ]"
ldc "eof"
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.expectedError:(ILjava/lang/String;Ljava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
1 26 1 jsarray Lcom/oracle/truffle/api/object/DynamicObject;
2 26 2 arrayData Lcom/oracle/truffle/js/runtime/array/ScriptArray;
3 26 3 state I
8 24 4 c I
21 24 5 index J
private java.lang.String parseString();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
dup
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
iadd
dup_x1
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
istore 1
start local 1 1: aconst_null
astore 2
start local 2 2: goto 18
3: StackMap locals: int java.lang.StringBuilder
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.next:()I
istore 3
start local 3 4: iload 3
bipush 31
if_icmpgt 6
5: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
ldc "String contains control character"
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.syntaxError:(ILjava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
6: StackMap locals: int
StackMap stack:
iload 3
bipush 92
if_icmpne 13
7: aload 2
ifnonnull 9
8: new java.lang.StringBuilder
dup
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iload 1
isub
bipush 16
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 2
9: StackMap locals:
StackMap stack:
aload 2
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.source:Ljava/lang/String;
iload 1
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
isub
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;
pop
10: aload 2
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseEscapeSequence:()C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
11: aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
istore 1
12: goto 18
StackMap locals:
StackMap stack:
13: iload 3
bipush 34
if_icmpne 18
14: aload 2
ifnull 17
15: aload 2
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.source:Ljava/lang/String;
iload 1
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
isub
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;II)Ljava/lang/StringBuilder;
pop
16: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
17: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.source:Ljava/lang/String;
iload 1
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 3 18: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.length:I
if_icmplt 3
19: aload 0
ldc "missing.close.quote"
iconst_0
anewarray java.lang.String
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.lexerMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.length:I
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.error:(Ljava/lang/String;II)Lcom/oracle/js/parser/ParserException;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
1 20 1 start I
2 20 2 sb Ljava/lang/StringBuilder;
4 18 3 c I
private char parseEscapeSequence();
descriptor: ()C
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.next:()I
istore 1
start local 1 1: iload 1
lookupswitch { // 9
34: 2
47: 4
92: 3
98: 5
102: 6
110: 7
114: 8
116: 9
117: 10
default: 11
}
2: StackMap locals: int
StackMap stack:
bipush 34
ireturn
3: StackMap locals:
StackMap stack:
bipush 92
ireturn
4: StackMap locals:
StackMap stack:
bipush 47
ireturn
5: StackMap locals:
StackMap stack:
bipush 8
ireturn
6: StackMap locals:
StackMap stack:
bipush 12
ireturn
7: StackMap locals:
StackMap stack:
bipush 10
ireturn
8: StackMap locals:
StackMap stack:
bipush 13
ireturn
9: StackMap locals:
StackMap stack:
bipush 9
ireturn
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseUnicodeEscape:()C
ireturn
11: StackMap locals:
StackMap stack:
aload 0
ldc "invalid.escape.char"
iconst_0
anewarray java.lang.String
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.lexerMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
isub
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.length:I
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.error:(Ljava/lang/String;II)Lcom/oracle/js/parser/ParserException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
1 12 1 c I
private char parseUnicodeEscape();
descriptor: ()C
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseHexDigit:()I
bipush 12
ishl
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseHexDigit:()I
bipush 8
ishl
ior
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseHexDigit:()I
iconst_4
ishl
ior
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.parseHexDigit:()I
ior
i2c
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
private int parseHexDigit();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.next:()I
istore 1
start local 1 1: iload 1
bipush 48
if_icmplt 3
iload 1
bipush 57
if_icmpgt 3
2: iload 1
bipush 48
isub
ireturn
3: StackMap locals: int
StackMap stack:
iload 1
bipush 65
if_icmplt 5
iload 1
bipush 70
if_icmpgt 5
4: iload 1
bipush 10
iadd
bipush 65
isub
ireturn
5: StackMap locals:
StackMap stack:
iload 1
bipush 97
if_icmplt 7
iload 1
bipush 102
if_icmpgt 7
6: iload 1
bipush 10
iadd
bipush 97
isub
ireturn
7: StackMap locals:
StackMap stack:
aload 0
ldc "invalid.hex"
iconst_0
anewarray java.lang.String
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.lexerMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
isub
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.length:I
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.error:(Ljava/lang/String;II)Lcom/oracle/js/parser/ParserException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
1 8 1 c I
private static boolean isDigit(int);
descriptor: (I)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 48
if_icmplt 1
iload 0
bipush 57
if_icmpgt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c I
MethodParameters:
Name Flags
c final
private void skipDigits();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: goto 5
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.peek:()I
istore 1
start local 1 2: iload 1
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.isDigit:(I)Z
ifne 4
3: goto 6
4: StackMap locals: int
StackMap stack:
aload 0
dup
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
iadd
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
end local 1 5: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.length:I
if_icmplt 1
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
2 5 1 c I
private java.lang.Number parseNumber();
descriptor: ()Ljava/lang/Number;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
istore 1
start local 1 1: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.next:()I
istore 2
start local 2 2: iload 2
bipush 45
if_icmpne 4
3: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.next:()I
istore 2
4: StackMap locals: int int
StackMap stack:
iload 2
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.isDigit:(I)Z
ifne 6
5: aload 0
iload 1
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.numberError:(I)Lcom/oracle/js/parser/ParserException;
athrow
6: StackMap locals:
StackMap stack:
iload 2
bipush 48
if_icmpeq 8
7: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.skipDigits:()V
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.peek:()I
bipush 46
if_icmpne 13
9: aload 0
dup
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
iadd
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
10: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.next:()I
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.isDigit:(I)Z
ifne 12
11: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
isub
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.numberError:(I)Lcom/oracle/js/parser/ParserException;
athrow
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.skipDigits:()V
13: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.peek:()I
istore 2
14: iload 2
bipush 101
if_icmpeq 15
iload 2
bipush 69
if_icmpne 22
15: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
iadd
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
16: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.next:()I
istore 2
17: iload 2
bipush 45
if_icmpeq 18
iload 2
bipush 43
if_icmpne 19
18: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.next:()I
istore 2
19: StackMap locals:
StackMap stack:
iload 2
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.isDigit:(I)Z
ifne 21
20: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
isub
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.numberError:(I)Lcom/oracle/js/parser/ParserException;
athrow
21: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.skipDigits:()V
22: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.source:Ljava/lang/String;
iload 1
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.Double.parseDouble:(Ljava/lang/String;)D
dstore 3
start local 3 23: dload 3
invokestatic com.oracle.js.parser.JSType.isRepresentableAsInt:(D)Z
ifeq 25
24: dload 3
d2i
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
25: StackMap locals: double
StackMap stack:
dload 3
invokestatic com.oracle.js.parser.JSType.isRepresentableAsLong:(D)Z
ifeq 27
26: dload 3
d2l
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
27: StackMap locals:
StackMap stack:
dload 3
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
1 28 1 start I
2 28 2 c I
23 28 3 d D
private java.lang.Object parseKeyword(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.source:Ljava/lang/String;
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
aload 1
iconst_0
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.regionMatches:(ILjava/lang/String;II)Z
ifne 2
1: aload 0
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
ldc "json literal"
ldc "ident"
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.expectedError:(ILjava/lang/String;Ljava/lang/String;)Lcom/oracle/js/parser/ParserException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
aload 1
invokevirtual java.lang.String.length:()I
iadd
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
0 4 1 keyword Ljava/lang/String;
0 4 2 value Ljava/lang/Object;
MethodParameters:
Name Flags
keyword final
value final
private int peek();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.length:I
if_icmplt 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.source:Ljava/lang/String;
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
invokevirtual java.lang.String.charAt:(I)C
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
private int next();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.peek:()I
istore 1
start local 1 1: aload 0
dup
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
iadd
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
2: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
1 3 1 next I
private void skipWhiteSpace();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: goto 5
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.peek:()I
lookupswitch { // 4
9: 2
10: 2
13: 2
32: 2
default: 4
}
2: StackMap locals:
StackMap stack:
aload 0
dup
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
iconst_1
iadd
putfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
3: goto 5
4: StackMap locals:
StackMap stack:
return
5: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.pos:I
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.length:I
if_icmplt 1
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
private static java.lang.String toString(int);
descriptor: (I)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
iconst_m1
if_icmpne 1
ldc "eof"
goto 2
StackMap locals:
StackMap stack:
1: iload 0
i2c
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 c I
MethodParameters:
Name Flags
c final
com.oracle.js.parser.ParserException error(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)Lcom/oracle/js/parser/ParserException;
flags: (0x0000)
Code:
stack=9, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic com.oracle.js.parser.TokenType.STRING:Lcom/oracle/js/parser/TokenType;
iload 2
iload 3
invokestatic com.oracle.js.parser.Token.toDesc:(Lcom/oracle/js/parser/TokenType;II)J
lstore 4
start local 4 1: lload 4
invokestatic com.oracle.js.parser.Token.descPosition:(J)I
istore 6
start local 6 2: ldc "<json>"
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.source:Ljava/lang/String;
invokestatic com.oracle.js.parser.Source.sourceFor:(Ljava/lang/String;Ljava/lang/String;)Lcom/oracle/js/parser/Source;
astore 7
start local 7 3: aload 7
iload 6
invokevirtual com.oracle.js.parser.Source.getLine:(I)I
istore 8
start local 8 4: aload 7
iload 6
invokevirtual com.oracle.js.parser.Source.getColumn:(I)I
istore 9
start local 9 5: new com.oracle.js.parser.ParserException
dup
getstatic com.oracle.js.parser.JSErrorType.SyntaxError:Lcom/oracle/js/parser/JSErrorType;
aload 1
aload 7
iload 8
iload 9
lload 4
invokespecial com.oracle.js.parser.ParserException.<init>:(Lcom/oracle/js/parser/JSErrorType;Ljava/lang/String;Lcom/oracle/js/parser/Source;IIJ)V
areturn
end local 9 end local 8 end local 7 end local 6 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 Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
0 6 1 message Ljava/lang/String;
0 6 2 start I
0 6 3 length I
1 6 4 token J
2 6 6 pos I
3 6 7 src Lcom/oracle/js/parser/Source;
4 6 8 lineNum I
5 6 9 columnNum I
Exceptions:
throws com.oracle.js.parser.ParserException
MethodParameters:
Name Flags
message final
start final
length final
private com.oracle.js.parser.ParserException error(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Lcom/oracle/js/parser/ParserException;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.length:I
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.error:(Ljava/lang/String;II)Lcom/oracle/js/parser/ParserException;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
0 1 1 message Ljava/lang/String;
0 1 2 start I
MethodParameters:
Name Flags
message final
start final
private com.oracle.js.parser.ParserException numberError(int);
descriptor: (I)Lcom/oracle/js/parser/ParserException;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "json.invalid.number"
iconst_0
anewarray java.lang.String
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.lexerMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
iload 1
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.error:(Ljava/lang/String;I)Lcom/oracle/js/parser/ParserException;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
0 1 1 start I
MethodParameters:
Name Flags
start final
private com.oracle.js.parser.ParserException expectedError(int, java.lang.String, java.lang.String);
descriptor: (ILjava/lang/String;Ljava/lang/String;)Lcom/oracle/js/parser/ParserException;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.context:Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.isOptionNashornCompatibilityMode:()Z
ifeq 2
1: aload 0
ldc "expected"
iconst_2
anewarray java.lang.String
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 3
aastore
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.parserMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
iload 1
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.error:(Ljava/lang/String;I)Lcom/oracle/js/parser/ParserException;
goto 3
2: StackMap locals:
StackMap stack:
iload 1
aload 3
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.expectedErrorV8:(ILjava/lang/String;)Lcom/oracle/js/parser/ParserException;
3: StackMap locals:
StackMap stack: com.oracle.js.parser.ParserException
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
0 4 1 start I
0 4 2 expected Ljava/lang/String;
0 4 3 found Ljava/lang/String;
MethodParameters:
Name Flags
start final
expected final
found final
private static com.oracle.js.parser.ParserException expectedErrorV8(int, java.lang.String);
descriptor: (ILjava/lang/String;)Lcom/oracle/js/parser/ParserException;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
istore 2
start local 2 1: iload 2
bipush 34
if_icmpne 4
2: ldc "string"
astore 3
start local 3 3: goto 8
end local 3 StackMap locals: int
StackMap stack:
4: iload 2
invokestatic java.lang.Character.isDigit:(C)Z
ifeq 7
5: ldc "number"
astore 3
start local 3 6: goto 8
end local 3 7: StackMap locals:
StackMap stack:
ldc "token %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 3
start local 3 8: StackMap locals: java.lang.String
StackMap stack:
ldc "Unexpected %s in JSON at position %d"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
dup
iconst_1
iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 4
start local 4 9: new com.oracle.js.parser.ParserException
dup
aload 4
invokespecial com.oracle.js.parser.ParserException.<init>:(Ljava/lang/String;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 start I
0 10 1 found Ljava/lang/String;
1 10 2 c C
3 4 3 entity Ljava/lang/String;
6 7 3 entity Ljava/lang/String;
8 10 3 entity Ljava/lang/String;
9 10 4 message Ljava/lang/String;
MethodParameters:
Name Flags
start final
found final
private com.oracle.js.parser.ParserException syntaxError(int, java.lang.String);
descriptor: (ILjava/lang/String;)Lcom/oracle/js/parser/ParserException;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: ldc "syntax.error.invalid.json"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 2
aastore
invokestatic com.oracle.js.parser.ECMAErrors.getMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 0
aload 3
iload 1
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.error:(Ljava/lang/String;I)Lcom/oracle/js/parser/ParserException;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
0 2 1 start I
0 2 2 reason Ljava/lang/String;
1 2 3 message Ljava/lang/String;
MethodParameters:
Name Flags
start final
reason final
private static java.lang.String lexerMessage(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
ldc "lexer.error."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokestatic com.oracle.js.parser.ECMAErrors.getMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 msgId Ljava/lang/String;
0 1 1 args [Ljava/lang/String;
MethodParameters:
Name Flags
msgId final
args
private static java.lang.String parserMessage(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
ldc "parser.error."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokestatic com.oracle.js.parser.ECMAErrors.getMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 msgId Ljava/lang/String;
0 1 1 args [Ljava/lang/String;
MethodParameters:
Name Flags
msgId final
args
private com.oracle.js.parser.ParserException trailingCommaError(int, java.lang.String);
descriptor: (ILjava/lang/String;)Lcom/oracle/js/parser/ParserException;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.oracle.truffle.js.builtins.helper.NashornJSONParser.context:Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.isOptionNashornCompatibilityMode:()Z
ifeq 2
1: aload 0
ldc "trailing.comma.in.json"
iconst_0
anewarray java.lang.String
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.parserMessage:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
iload 1
invokevirtual com.oracle.truffle.js.builtins.helper.NashornJSONParser.error:(Ljava/lang/String;I)Lcom/oracle/js/parser/ParserException;
goto 3
2: StackMap locals:
StackMap stack:
iload 1
aload 2
invokestatic com.oracle.truffle.js.builtins.helper.NashornJSONParser.expectedErrorV8:(ILjava/lang/String;)Lcom/oracle/js/parser/ParserException;
3: StackMap locals:
StackMap stack: com.oracle.js.parser.ParserException
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/js/builtins/helper/NashornJSONParser;
0 4 1 start I
0 4 2 found Ljava/lang/String;
MethodParameters:
Name Flags
start
found
}
SourceFile: "NashornJSONParser.java"