public abstract class com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode extends com.oracle.truffle.js.nodes.JavaScriptBaseNode
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode
super_class: com.oracle.truffle.js.nodes.JavaScriptBaseNode
{
private final com.oracle.truffle.js.runtime.JSContext context;
descriptor: Lcom/oracle/truffle/js/runtime/JSContext;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private com.oracle.truffle.js.nodes.access.PropertyGetNode getToJSONProperty;
descriptor: Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
private com.oracle.truffle.js.nodes.function.JSFunctionCallNode callToJSONFunction;
descriptor: Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
private final com.oracle.truffle.js.runtime.util.StringBuilderProfile stringBuilderProfile;
descriptor: Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
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.JSONStringifyStringNode.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(com.oracle.truffle.js.runtime.JSContext);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.oracle.truffle.js.nodes.JavaScriptBaseNode.<init>:()V
1: aload 0
aload 1
putfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.context:Lcom/oracle/truffle/js/runtime/JSContext;
2: aload 0
aload 1
invokevirtual com.oracle.truffle.js.runtime.JSContext.getStringLengthLimit:()I
invokestatic com.oracle.truffle.js.runtime.util.StringBuilderProfile.create:(I)Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
putfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 4 1 context Lcom/oracle/truffle/js/runtime/JSContext;
MethodParameters:
Name Flags
context
public abstract java.lang.Object execute(java.lang.Object, java.lang.String, com.oracle.truffle.api.object.DynamicObject);
descriptor: (Ljava/lang/Object;Ljava/lang/String;Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/Object;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
data
key
holder
public static com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode create(com.oracle.truffle.js.runtime.JSContext);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tJSONStringifyStringNodeGen cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
context
public java.lang.Object jsonStrMain(java.lang.Object, java.lang.String, com.oracle.truffle.api.object.DynamicObject);
descriptor: (Ljava/lang/Object;Ljava/lang/String;Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.$assertionsDisabled:Z
ifne 1
aload 1
instanceof com.oracle.truffle.js.builtins.helper.JSONData
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
checkcast com.oracle.truffle.js.builtins.helper.JSONData
astore 4
start local 4 2: aload 0
aload 4
aload 2
aload 3
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrPrepare:(Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
astore 5
start local 5 3: aload 5
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.isStringifyable:(Ljava/lang/Object;)Z
ifne 6
4: getstatic com.oracle.truffle.js.runtime.objects.Undefined.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
5: areturn
6: StackMap locals: com.oracle.truffle.js.builtins.helper.JSONData java.lang.Object
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 6
start local 6 7: aload 0
aload 6
aload 4
aload 5
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrExecute:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
8: aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 6
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.toString:(Ljava/lang/StringBuilder;)Ljava/lang/String;
9: areturn
end local 6 end local 5 end local 4 10: StackMap locals: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.Object java.lang.String com.oracle.truffle.api.object.DynamicObject
StackMap stack: java.lang.StackOverflowError
pop
11: invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.throwStackError:()V
12: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 13 1 jsonData Ljava/lang/Object;
0 13 2 key Ljava/lang/String;
0 13 3 holder Lcom/oracle/truffle/api/object/DynamicObject;
2 10 4 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
3 10 5 value Ljava/lang/Object;
7 10 6 builder Ljava/lang/StringBuilder;
Exception table:
from to target type
0 5 10 Class java.lang.StackOverflowError
6 9 10 Class java.lang.StackOverflowError
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization()
MethodParameters:
Name Flags
jsonData
key
holder
private static boolean isStringifyable(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic com.oracle.truffle.js.runtime.objects.Undefined.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
if_acmpeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 value Ljava/lang/Object;
MethodParameters:
Name Flags
value
private void jsonStrExecute(java.lang.StringBuilder, com.oracle.truffle.js.builtins.helper.JSONData, java.lang.Object);
descriptor: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.$assertionsDisabled:Z
ifne 1
aload 3
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.isStringifyable:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 3
getstatic com.oracle.truffle.js.runtime.objects.Null.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
if_acmpne 4
2: aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
ldc "null"
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
3: goto 32
StackMap locals:
StackMap stack:
4: aload 3
instanceof java.lang.Boolean
ifeq 9
5: aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
aload 3
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 6
ldc "true"
goto 7
StackMap locals: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData java.lang.Object
StackMap stack: com.oracle.truffle.js.runtime.util.StringBuilderProfile java.lang.StringBuilder
6: ldc "false"
StackMap locals: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData java.lang.Object
StackMap stack: com.oracle.truffle.js.runtime.util.StringBuilderProfile java.lang.StringBuilder java.lang.String
7: invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
8: goto 32
StackMap locals:
StackMap stack:
9: aload 3
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isString:(Ljava/lang/Object;)Z
ifeq 12
10: aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
aload 3
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonQuote:(Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;Ljava/lang/StringBuilder;Ljava/lang/String;)V
11: goto 32
StackMap locals:
StackMap stack:
12: aload 3
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isNumber:(Ljava/lang/Object;)Z
ifeq 15
13: aload 0
aload 1
aload 3
checkcast java.lang.Number
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.appendNumber:(Ljava/lang/StringBuilder;Ljava/lang/Number;)V
14: goto 32
StackMap locals:
StackMap stack:
15: aload 3
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isBigInt:(Ljava/lang/Object;)Z
ifeq 17
16: ldc "Do not know how to serialize a BigInt"
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeError:(Ljava/lang/String;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
17: StackMap locals:
StackMap stack:
aload 3
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.isJSDynamicObject:(Ljava/lang/Object;)Z
ifeq 24
aload 3
checkcast com.oracle.truffle.api.object.DynamicObject
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isCallableIsJSObject:(Lcom/oracle/truffle/api/object/DynamicObject;)Z
ifne 24
18: aload 3
checkcast com.oracle.truffle.api.object.DynamicObject
astore 4
start local 4 19: aload 4
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isArray:(Ljava/lang/Object;)Z
ifeq 22
20: aload 0
aload 1
aload 2
aload 4
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonJA:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
21: goto 32
22: StackMap locals: com.oracle.truffle.api.object.DynamicObject
StackMap stack:
aload 0
aload 1
aload 2
aload 4
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonJO:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
end local 4 23: goto 32
StackMap locals:
StackMap stack:
24: aload 3
instanceof com.oracle.truffle.api.interop.TruffleObject
ifeq 28
25: getstatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.$assertionsDisabled:Z
ifne 26
aload 3
invokestatic com.oracle.truffle.js.nodes.JSGuards.isForeignObject:(Ljava/lang/Object;)Z
ifne 26
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
26: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonForeignObject:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
27: goto 32
StackMap locals:
StackMap stack:
28: aload 3
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isJavaPrimitive:(Ljava/lang/Object;)Z
ifeq 31
29: aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
aload 3
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonQuote:(Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;Ljava/lang/StringBuilder;Ljava/lang/String;)V
30: goto 32
31: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "JSON.stringify: should never reach here, unknown type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
32: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 33 1 builder Ljava/lang/StringBuilder;
0 33 2 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
0 33 3 value Ljava/lang/Object;
19 23 4 valueObj Lcom/oracle/truffle/api/object/DynamicObject;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
builder
data
value
private void jsonForeignObject(java.lang.StringBuilder, com.oracle.truffle.js.builtins.helper.JSONData, java.lang.Object);
descriptor: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
aload 3
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:(Ljava/lang/Object;)Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
astore 4
start local 4 1: aload 4
aload 3
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isNull:(Ljava/lang/Object;)Z
ifeq 4
2: aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
ldc "null"
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
3: goto 13
StackMap locals: com.oracle.truffle.api.interop.InteropLibrary
StackMap stack:
4: aload 4
aload 3
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isBoolean:(Ljava/lang/Object;)Z
ifne 5
aload 4
aload 3
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isString:(Ljava/lang/Object;)Z
ifne 5
aload 4
aload 3
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isNumber:(Ljava/lang/Object;)Z
ifeq 9
5: StackMap locals:
StackMap stack:
aload 3
getstatic com.oracle.truffle.js.runtime.objects.Null.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
aload 4
aload 0
invokestatic com.oracle.truffle.js.runtime.interop.JSInteropUtil.toPrimitiveOrDefault:(Ljava/lang/Object;Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropLibrary;Lcom/oracle/truffle/api/nodes/Node;)Ljava/lang/Object;
astore 5
start local 5 6: getstatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.$assertionsDisabled:Z
ifne 7
aload 5
invokestatic com.oracle.truffle.js.nodes.JSGuards.isForeignObject:(Ljava/lang/Object;)Z
ifeq 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 1
aload 2
aload 5
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrExecute:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
end local 5 8: goto 13
StackMap locals:
StackMap stack:
9: aload 4
aload 3
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.hasArrayElements:(Ljava/lang/Object;)Z
ifeq 12
10: aload 0
aload 1
aload 2
aload 3
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonJA:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
11: goto 13
12: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonJO:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
13: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 14 1 builder Ljava/lang/StringBuilder;
0 14 2 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
0 14 3 obj Ljava/lang/Object;
1 14 4 interop Lcom/oracle/truffle/api/interop/InteropLibrary;
6 8 5 unboxed Ljava/lang/Object;
MethodParameters:
Name Flags
builder
data
obj
private void appendNumber(java.lang.StringBuilder, java.lang.Number);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/Number;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic com.oracle.truffle.js.runtime.JSRuntime.doubleValue:(Ljava/lang/Number;)D
dstore 3
start local 3 1: dload 3
invokestatic java.lang.Double.isNaN:(D)Z
ifne 2
dload 3
invokestatic java.lang.Double.isInfinite:(D)Z
ifeq 4
2: StackMap locals: double
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
ldc "null"
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
3: goto 11
StackMap locals:
StackMap stack:
4: aload 2
instanceof java.lang.Integer
ifeq 7
5: aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
aload 2
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;I)V
6: goto 11
StackMap locals:
StackMap stack:
7: aload 2
instanceof java.lang.Long
ifeq 10
8: aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
aload 2
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;J)V
9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
dload 3
invokestatic com.oracle.truffle.js.runtime.JSRuntime.doubleToString:(D)Ljava/lang/String;
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 12 1 builder Ljava/lang/StringBuilder;
0 12 2 n Ljava/lang/Number;
1 12 3 d D
MethodParameters:
Name Flags
builder
n
private java.lang.Object jsonStrPrepare(com.oracle.truffle.js.builtins.helper.JSONData, java.lang.String, java.lang.Object);
descriptor: (Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.isJSDynamicObject:(Ljava/lang/Object;)Z
ifeq 3
1: aload 3
checkcast com.oracle.truffle.api.object.DynamicObject
aload 2
invokestatic com.oracle.truffle.js.runtime.objects.JSObject.get:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 2: goto 4
end local 4 3: StackMap locals:
StackMap stack:
aload 0
aload 3
aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.truffleRead:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
astore 4
start local 4 4: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 1
aload 2
aload 3
aload 4
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrPreparePart2:(Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 5 1 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
0 5 2 key Ljava/lang/String;
0 5 3 holder Ljava/lang/Object;
2 3 4 value Ljava/lang/Object;
4 5 4 value Ljava/lang/Object;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
data
key
holder
private java.lang.Object jsonStrPrepareArray(com.oracle.truffle.js.builtins.helper.JSONData, int, com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/js/builtins/helper/JSONData;ILcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
iload 2
i2l
invokestatic com.oracle.truffle.js.runtime.objects.JSObject.get:(Lcom/oracle/truffle/api/object/DynamicObject;J)Ljava/lang/Object;
astore 4
start local 4 1: aload 0
aload 1
iload 2
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
aload 3
aload 4
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrPreparePart2:(Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 4 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/JSONStringifyStringNode;
0 2 1 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
0 2 2 key I
0 2 3 holder Lcom/oracle/truffle/api/object/DynamicObject;
1 2 4 value Ljava/lang/Object;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
data
key
holder
private java.lang.Object jsonStrPrepareForeign(com.oracle.truffle.js.builtins.helper.JSONData, int, java.lang.Object);
descriptor: (Lcom/oracle/truffle/js/builtins/helper/JSONData;ILjava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.$assertionsDisabled:Z
ifne 1
aload 3
invokestatic com.oracle.truffle.js.nodes.JSGuards.isForeignObject:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
aload 3
iload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.truffleRead:(Ljava/lang/Object;I)Ljava/lang/Object;
astore 4
start local 4 2: aload 0
aload 1
iload 2
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
aload 3
aload 4
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrPreparePart2:(Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 3 1 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
0 3 2 key I
0 3 3 holder Ljava/lang/Object;
2 3 4 value Ljava/lang/Object;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
data
key
holder
private java.lang.Object jsonStrPreparePart2(com.oracle.truffle.js.builtins.helper.JSONData, java.lang.String, java.lang.Object, java.lang.Object);
descriptor: (Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 4
astore 5
start local 5 1: iconst_0
istore 6
start local 6 2: aload 5
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isObject:(Ljava/lang/Object;)Z
ifne 3
aload 5
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isBigInt:(Ljava/lang/Object;)Z
ifeq 5
3: StackMap locals: java.lang.Object int
StackMap stack:
iconst_1
istore 6
4: goto 10
StackMap locals:
StackMap stack:
5: aload 5
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isForeignObject:(Ljava/lang/Object;)Z
ifeq 10
6: aload 5
invokestatic com.oracle.truffle.api.interop.InteropLibrary.getUncached:(Ljava/lang/Object;)Lcom/oracle/truffle/api/interop/InteropLibrary;
astore 7
start local 7 7: aload 7
aload 5
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.hasMembers:(Ljava/lang/Object;)Z
ifeq 8
aload 7
aload 5
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isNull:(Ljava/lang/Object;)Z
ifne 8
aload 7
aload 5
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isBoolean:(Ljava/lang/Object;)Z
ifne 8
aload 7
aload 5
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isString:(Ljava/lang/Object;)Z
ifne 8
aload 7
aload 5
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isNumber:(Ljava/lang/Object;)Z
ifne 8
iconst_1
goto 9
StackMap locals: com.oracle.truffle.api.interop.InteropLibrary
StackMap stack:
8: iconst_0
StackMap locals:
StackMap stack: int
9: istore 6
end local 7 10: StackMap locals:
StackMap stack:
iload 6
ifeq 12
11: aload 0
aload 2
aload 5
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrPrepareObject:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
astore 5
12: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getReplacerFnObj:()Lcom/oracle/truffle/api/object/DynamicObject;
ifnull 14
13: aload 1
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getReplacerFnObj:()Lcom/oracle/truffle/api/object/DynamicObject;
aload 3
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 5
aastore
invokestatic com.oracle.truffle.js.runtime.JSRuntime.call:(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 5
14: StackMap locals:
StackMap stack:
aload 5
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.isJSDynamicObject:(Ljava/lang/Object;)Z
ifeq 16
15: aload 5
checkcast com.oracle.truffle.api.object.DynamicObject
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrPrepareJSObject:(Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/Object;
areturn
16: StackMap locals:
StackMap stack:
aload 5
instanceof com.oracle.truffle.js.runtime.Symbol
ifeq 18
17: getstatic com.oracle.truffle.js.runtime.objects.Undefined.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
areturn
18: StackMap locals:
StackMap stack:
aload 5
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isCallableForeign:(Ljava/lang/Object;)Z
ifeq 20
19: getstatic com.oracle.truffle.js.runtime.objects.Undefined.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
areturn
20: StackMap locals:
StackMap stack:
aload 5
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 21 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 21 1 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
0 21 2 key Ljava/lang/String;
0 21 3 holder Ljava/lang/Object;
0 21 4 valueArg Ljava/lang/Object;
1 21 5 value Ljava/lang/Object;
2 21 6 tryToJSON Z
7 10 7 interop Lcom/oracle/truffle/api/interop/InteropLibrary;
MethodParameters:
Name Flags
data
key
holder
valueArg
private static java.lang.Object jsonStrPrepareJSObject(com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.$assertionsDisabled:Z
ifne 1
aload 0
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.isJSDynamicObject:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
ldc "JavaScript object expected, but foreign DynamicObject found"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokestatic com.oracle.truffle.js.runtime.objects.JSObject.getJSClass:(Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/js/runtime/builtins/JSClass;
astore 1
start local 1 2: aload 1
getstatic com.oracle.truffle.js.runtime.builtins.JSNumber.INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSNumber;
if_acmpne 4
3: aload 0
invokestatic com.oracle.truffle.js.runtime.JSRuntime.toNumber:(Ljava/lang/Object;)Ljava/lang/Number;
areturn
4: StackMap locals: com.oracle.truffle.js.runtime.builtins.JSClass
StackMap stack:
aload 1
getstatic com.oracle.truffle.js.runtime.builtins.JSBigInt.INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSBigInt;
if_acmpne 6
5: aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSBigInt.valueOf:(Lcom/oracle/truffle/api/object/DynamicObject;)Lcom/oracle/truffle/js/runtime/BigInt;
areturn
6: StackMap locals:
StackMap stack:
aload 1
getstatic com.oracle.truffle.js.runtime.builtins.JSString.INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSString;
if_acmpne 8
7: aload 0
invokestatic com.oracle.truffle.js.runtime.JSRuntime.toString:(Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/String;
areturn
8: StackMap locals:
StackMap stack:
aload 1
getstatic com.oracle.truffle.js.runtime.builtins.JSBoolean.INSTANCE:Lcom/oracle/truffle/js/runtime/builtins/JSBoolean;
if_acmpne 10
9: aload 0
invokestatic com.oracle.truffle.js.runtime.builtins.JSBoolean.valueOf:(Lcom/oracle/truffle/api/object/DynamicObject;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
10: StackMap locals:
StackMap stack:
aload 0
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isCallableIsJSObject:(Lcom/oracle/truffle/api/object/DynamicObject;)Z
ifeq 12
11: getstatic com.oracle.truffle.js.runtime.objects.Undefined.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
areturn
12: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 valueObj Lcom/oracle/truffle/api/object/DynamicObject;
2 13 1 builtinClass Lcom/oracle/truffle/js/runtime/builtins/JSClass;
MethodParameters:
Name Flags
valueObj
private java.lang.Object jsonStrPrepareObject(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.$assertionsDisabled:Z
ifne 1
aload 1
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isPropertyKey:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.getToJSONProperty:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
ifnonnull 4
2: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate:()V
3: aload 0
aload 0
ldc "toJSON"
iconst_0
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.context:Lcom/oracle/truffle/js/runtime/JSContext;
invokestatic com.oracle.truffle.js.nodes.access.PropertyGetNode.create:(Ljava/lang/Object;ZLcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.insert:(Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/api/nodes/Node;
checkcast com.oracle.truffle.js.nodes.access.PropertyGetNode
putfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.getToJSONProperty:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
4: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.getToJSONProperty:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
aload 2
invokevirtual com.oracle.truffle.js.nodes.access.PropertyGetNode.getValue:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 5: aload 3
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isCallable:(Ljava/lang/Object;)Z
ifeq 7
6: aload 0
aload 1
aload 2
aload 3
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrPrepareObjectFunction:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
areturn
7: StackMap locals: java.lang.Object
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 8 1 key Ljava/lang/Object;
0 8 2 value Ljava/lang/Object;
5 8 3 toJSON Ljava/lang/Object;
MethodParameters:
Name Flags
key
value
private java.lang.Object jsonStrPrepareObjectFunction(java.lang.Object, java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, 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.JSONStringifyStringNode.callToJSONFunction:Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
ifnonnull 3
1: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate:()V
2: aload 0
aload 0
invokestatic com.oracle.truffle.js.nodes.function.JSFunctionCallNode.createCall:()Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.insert:(Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/api/nodes/Node;
checkcast com.oracle.truffle.js.nodes.function.JSFunctionCallNode
putfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.callToJSONFunction:Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
3: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.callToJSONFunction:Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
aload 2
aload 3
aload 1
invokestatic com.oracle.truffle.js.runtime.JSArguments.createOneArg:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)[Ljava/lang/Object;
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode.executeCall:([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 4 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 4 1 key Ljava/lang/Object;
0 4 2 value Ljava/lang/Object;
0 4 3 toJSON Ljava/lang/Object;
MethodParameters:
Name Flags
key
value
toJSON
private void jsonJO(java.lang.StringBuilder, com.oracle.truffle.js.builtins.helper.JSONData, java.lang.Object);
descriptor: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
aload 3
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.checkCycle:(Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
1: aload 2
aload 3
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.pushStack:(Ljava/lang/Object;)V
2: aload 2
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.checkStackDepth:(Lcom/oracle/truffle/js/builtins/helper/JSONData;)V
3: aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getIndent:()I
istore 4
start local 4 4: aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getIndent:()I
iconst_1
iadd
istore 5
start local 5 5: aload 2
iload 5
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.setIndent:(I)V
6: aload 0
aload 1
bipush 123
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.concatStart:(Ljava/lang/StringBuilder;C)V
7: aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getPropertyList:()Ljava/util/List;
ifnonnull 13
8: aload 3
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.isJSDynamicObject:(Ljava/lang/Object;)Z
ifeq 11
9: aload 0
aload 1
aload 2
aload 3
iload 5
aload 3
checkcast com.oracle.truffle.api.object.DynamicObject
invokestatic com.oracle.truffle.js.runtime.objects.JSObject.enumerableOwnNames:(Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/util/List;
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.serializeJSONObjectProperties:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;ILjava/util/List;)Z
istore 6
start local 6 10: goto 14
end local 6 11: StackMap locals: int int
StackMap stack:
aload 0
aload 1
aload 2
aload 3
iload 5
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.serializeForeignObjectProperties:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;I)Z
istore 6
start local 6 12: goto 14
end local 6 13: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
iload 5
aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getPropertyList:()Ljava/util/List;
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.serializeJSONObjectProperties:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;ILjava/util/List;)Z
istore 6
start local 6 14: StackMap locals: int
StackMap stack:
aload 0
aload 1
aload 2
iload 4
bipush 125
iload 6
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.concatEnd:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;ICZ)V
15: aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.popStack:()V
16: aload 2
iload 4
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.setIndent:(I)V
17: return
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 18 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 18 1 builder Ljava/lang/StringBuilder;
0 18 2 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
0 18 3 value Ljava/lang/Object;
4 18 4 stepback I
5 18 5 indent I
10 11 6 hasContent Z
12 13 6 hasContent Z
14 18 6 hasContent Z
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
builder
data
value
private boolean serializeJSONObjectProperties(java.lang.StringBuilder, com.oracle.truffle.js.builtins.helper.JSONData, , int, java.util.List<? extends java.lang.Object>);
descriptor: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;ILjava/util/List;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=12, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: iconst_1
istore 6
start local 6 1: iconst_0
istore 7
start local 7 2: aload 5
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 16
StackMap locals: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData java.lang.Object int java.util.List int int top java.util.Iterator
StackMap stack:
3: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 8
start local 8 4: aload 8
checkcast java.lang.String
astore 10
start local 10 5: aload 0
aload 2
aload 10
aload 3
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrPrepare:(Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
astore 11
start local 11 6: aload 11
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.isStringifyable:(Ljava/lang/Object;)Z
ifeq 16
7: iload 6
ifeq 11
8: aload 0
aload 1
aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.concatFirstStep:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;)V
9: iconst_0
istore 6
10: goto 12
11: StackMap locals: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData java.lang.Object int java.util.List int int java.lang.Object java.util.Iterator java.lang.String java.lang.Object
StackMap stack:
aload 0
aload 1
aload 2
iload 4
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.appendSeparator:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;I)V
12: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
aload 10
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonQuote:(Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;Ljava/lang/StringBuilder;Ljava/lang/String;)V
13: aload 0
aload 1
aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.appendColon:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;)V
14: aload 0
aload 1
aload 2
aload 11
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrExecute:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
15: iconst_1
istore 7
end local 11 end local 10 end local 8 16: StackMap locals: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData java.lang.Object int java.util.List int int top java.util.Iterator
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
17: iload 7
ireturn
end local 7 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 18 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 18 1 builder Ljava/lang/StringBuilder;
0 18 2 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
0 18 3 value Ljava/lang/Object;
0 18 4 indent I
0 18 5 keys Ljava/util/List<+Ljava/lang/Object;>;
1 18 6 isFirst Z
2 18 7 hasContent Z
4 16 8 key Ljava/lang/Object;
5 16 10 name Ljava/lang/String;
6 16 11 strPPrepared Ljava/lang/Object;
Signature: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;ILjava/util/List<+Ljava/lang/Object;>;)Z
MethodParameters:
Name Flags
builder
data
value
indent
keys
private void appendColon(java.lang.StringBuilder, com.oracle.truffle.js.builtins.helper.JSONData);
descriptor: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;)V
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.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
bipush 58
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
1: aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getGap:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
ifle 3
2: aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
bipush 32
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
3: StackMap locals:
StackMap stack:
return
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/JSONStringifyStringNode;
0 4 1 builder Ljava/lang/StringBuilder;
0 4 2 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
MethodParameters:
Name Flags
builder
data
private boolean serializeForeignObjectProperties(java.lang.StringBuilder, com.oracle.truffle.js.builtins.helper.JSONData, java.lang.Object, int);
descriptor: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;I)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=18, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
aload 3
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:(Ljava/lang/Object;)Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
astore 5
start local 5 1: aload 5
aload 3
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.hasMembers:(Ljava/lang/Object;)Z
ifne 3
2: iconst_0
ireturn
3: StackMap locals: com.oracle.truffle.api.interop.InteropLibrary
StackMap stack:
aload 5
aload 3
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.getMembers:(Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 4: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
aload 6
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:(Ljava/lang/Object;)Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
astore 7
start local 7 5: aload 7
aload 6
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.getArraySize:(Ljava/lang/Object;)J
lstore 8
start local 8 6: iconst_1
istore 10
start local 10 7: iconst_0
istore 11
start local 11 8: lconst_0
lstore 12
start local 12 9: goto 30
10: StackMap locals: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData java.lang.Object int com.oracle.truffle.api.interop.InteropLibrary java.lang.Object com.oracle.truffle.api.interop.InteropLibrary long int int long
StackMap stack:
aload 7
aload 6
lload 12
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.readArrayElement:(Ljava/lang/Object;J)Ljava/lang/Object;
astore 14
start local 14 11: getstatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.$assertionsDisabled:Z
ifne 12
invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 14
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isString:(Ljava/lang/Object;)Z
ifne 12
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
12: StackMap locals: java.lang.Object
StackMap stack:
aload 14
instanceof java.lang.String
ifeq 13
aload 14
checkcast java.lang.String
goto 14
StackMap locals:
StackMap stack:
13: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 14
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.asString:(Ljava/lang/Object;)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
14: astore 15
start local 15 15: aload 5
aload 3
aload 15
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isMemberReadable:(Ljava/lang/Object;Ljava/lang/String;)Z
ifne 17
16: goto 29
17: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 3
aload 15
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.truffleRead:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
astore 16
start local 16 18: aload 0
aload 2
aload 15
aload 3
aload 16
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrPreparePart2:(Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
astore 17
start local 17 19: aload 17
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.isStringifyable:(Ljava/lang/Object;)Z
ifeq 29
20: iload 10
ifeq 24
21: aload 0
aload 1
aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.concatFirstStep:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;)V
22: iconst_0
istore 10
23: goto 25
24: StackMap locals: java.lang.Object java.lang.Object
StackMap stack:
aload 0
aload 1
aload 2
iload 4
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.appendSeparator:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;I)V
25: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
aload 15
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonQuote:(Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;Ljava/lang/StringBuilder;Ljava/lang/String;)V
26: aload 0
aload 1
aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.appendColon:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;)V
27: aload 0
aload 1
aload 2
aload 17
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrExecute:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
28: iconst_1
istore 11
end local 17 end local 16 end local 15 end local 14 29: StackMap locals: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData java.lang.Object int com.oracle.truffle.api.interop.InteropLibrary java.lang.Object com.oracle.truffle.api.interop.InteropLibrary long int int long
StackMap stack:
lload 12
lconst_1
ladd
lstore 12
StackMap locals:
StackMap stack:
30: lload 12
lload 8
lcmp
iflt 10
end local 12 31: iload 11
32: ireturn
end local 11 end local 10 end local 8 end local 7 end local 6 end local 5 33: StackMap locals: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData java.lang.Object int
StackMap stack: com.oracle.truffle.api.interop.InteropException
astore 5
start local 5 34: aload 3
aload 5
ldc "SerializeJSONObject"
aload 0
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
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 35 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 35 1 builder Ljava/lang/StringBuilder;
0 35 2 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
0 35 3 obj Ljava/lang/Object;
0 35 4 indent I
1 33 5 objInterop Lcom/oracle/truffle/api/interop/InteropLibrary;
4 33 6 keysObj Ljava/lang/Object;
5 33 7 keysInterop Lcom/oracle/truffle/api/interop/InteropLibrary;
6 33 8 size J
7 33 10 isFirst Z
8 33 11 hasContent Z
9 31 12 i J
11 29 14 key Ljava/lang/Object;
15 29 15 stringKey Ljava/lang/String;
18 29 16 memberValue Ljava/lang/Object;
19 29 17 strPPrepared Ljava/lang/Object;
34 35 5 e Lcom/oracle/truffle/api/interop/InteropException;
Exception table:
from to target type
0 2 33 Class com.oracle.truffle.api.interop.UnsupportedMessageException
3 32 33 Class com.oracle.truffle.api.interop.UnsupportedMessageException
0 2 33 Class com.oracle.truffle.api.interop.InvalidArrayIndexException
3 32 33 Class com.oracle.truffle.api.interop.InvalidArrayIndexException
MethodParameters:
Name Flags
builder
data
obj
indent
private void jsonJA(java.lang.StringBuilder, com.oracle.truffle.js.builtins.helper.JSONData, java.lang.Object);
descriptor: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=14, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
aload 3
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.checkCycle:(Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
1: getstatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.$assertionsDisabled:Z
ifne 2
aload 3
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isArray:(Ljava/lang/Object;)Z
ifne 2
invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 3
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.hasArrayElements:(Ljava/lang/Object;)Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 2
aload 3
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.pushStack:(Ljava/lang/Object;)V
3: aload 2
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.checkStackDepth:(Lcom/oracle/truffle/js/builtins/helper/JSONData;)V
4: aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getIndent:()I
istore 4
start local 4 5: aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getIndent:()I
iconst_1
iadd
istore 5
start local 5 6: aload 2
iload 5
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.setIndent:(I)V
7: iconst_0
istore 7
start local 7 8: iconst_0
istore 8
start local 8 9: aload 3
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.isJSDynamicObject:(Ljava/lang/Object;)Z
ifeq 14
10: aload 3
checkcast com.oracle.truffle.api.object.DynamicObject
ldc "length"
invokestatic com.oracle.truffle.js.runtime.objects.JSObject.get:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 11: aload 3
invokestatic com.oracle.truffle.js.runtime.builtins.JSArray.isJSArray:(Ljava/lang/Object;)Z
ifeq 16
12: iconst_1
istore 8
13: goto 16
end local 6 14: StackMap locals: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData java.lang.Object int int top int int
StackMap stack:
aload 0
aload 3
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.truffleGetSize:(Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 15: iconst_1
istore 7
16: StackMap locals: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData java.lang.Object int int java.lang.Object int int
StackMap stack:
aload 6
invokestatic com.oracle.truffle.js.runtime.JSRuntime.toLength:(Ljava/lang/Object;)J
lstore 9
start local 9 17: lload 9
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.context:Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.getStringLengthLimit:()I
i2l
lcmp
ifle 19
18: invokestatic com.oracle.truffle.js.runtime.Errors.createRangeErrorInvalidStringLength:()Lcom/oracle/truffle/js/runtime/JSException;
athrow
19: StackMap locals: long
StackMap stack:
lload 9
l2i
istore 11
start local 11 20: aload 0
aload 1
bipush 91
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.concatStart:(Ljava/lang/StringBuilder;C)V
21: iconst_0
istore 12
start local 12 22: goto 39
23: StackMap locals: int int
StackMap stack:
iload 12
ifne 26
24: aload 0
aload 1
aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.concatFirstStep:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;)V
25: goto 27
26: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iload 5
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.appendSeparator:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;I)V
27: StackMap locals:
StackMap stack:
iload 8
ifeq 30
28: aload 0
aload 2
iload 12
aload 3
checkcast com.oracle.truffle.api.object.DynamicObject
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrPrepareArray:(Lcom/oracle/truffle/js/builtins/helper/JSONData;ILcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/Object;
astore 13
start local 13 29: goto 34
end local 13 StackMap locals:
StackMap stack:
30: iload 7
ifeq 33
31: aload 0
aload 2
iload 12
aload 3
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrPrepareForeign:(Lcom/oracle/truffle/js/builtins/helper/JSONData;ILjava/lang/Object;)Ljava/lang/Object;
astore 13
start local 13 32: goto 34
end local 13 33: StackMap locals:
StackMap stack:
aload 0
aload 2
iload 12
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
aload 3
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrPrepare:(Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
astore 13
start local 13 34: StackMap locals: java.lang.Object
StackMap stack:
aload 13
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.isStringifyable:(Ljava/lang/Object;)Z
ifeq 37
35: aload 0
aload 1
aload 2
aload 13
invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonStrExecute:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
36: goto 38
37: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
ldc "null"
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
end local 13 38: StackMap locals:
StackMap stack:
iinc 12 1
StackMap locals:
StackMap stack:
39: iload 12
iload 11
if_icmplt 23
end local 12 40: aload 0
aload 1
aload 2
iload 4
bipush 93
iload 11
ifle 41
iconst_1
goto 42
StackMap locals: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData java.lang.Object int int java.lang.Object int int long int
StackMap stack: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData int int
41: iconst_0
StackMap locals: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData java.lang.Object int int java.lang.Object int int long int
StackMap stack: com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode java.lang.StringBuilder com.oracle.truffle.js.builtins.helper.JSONData int int int
42: invokevirtual com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.concatEnd:(Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;ICZ)V
43: aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.popStack:()V
44: aload 2
iload 4
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.setIndent:(I)V
45: return
end local 11 end local 9 end local 8 end local 7 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 46 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 46 1 builder Ljava/lang/StringBuilder;
0 46 2 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
0 46 3 value Ljava/lang/Object;
5 46 4 stepback I
6 46 5 indent I
11 14 6 lenObject Ljava/lang/Object;
15 46 6 lenObject Ljava/lang/Object;
8 46 7 isForeign Z
9 46 8 isArray Z
17 46 9 length J
20 46 11 len I
22 40 12 index I
29 30 13 strPPrepared Ljava/lang/Object;
32 33 13 strPPrepared Ljava/lang/Object;
34 38 13 strPPrepared Ljava/lang/Object;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
builder
data
value
private static void checkStackDepth(com.oracle.truffle.js.builtins.helper.JSONData);
descriptor: (Lcom/oracle/truffle/js/builtins/helper/JSONData;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.stackTooDeep:()Z
ifeq 2
1: invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.throwStackError:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
MethodParameters:
Name Flags
data
private static void throwStackError();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "cannot stringify objects nested that deep"
invokestatic com.oracle.truffle.js.runtime.Errors.createRangeError:(Ljava/lang/String;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
LocalVariableTable:
Start End Slot Name Signature
private void concatStart(java.lang.StringBuilder, char);
descriptor: (Ljava/lang/StringBuilder;C)V
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.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
iload 2
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
1: return
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/JSONStringifyStringNode;
0 2 1 builder Ljava/lang/StringBuilder;
0 2 2 c C
MethodParameters:
Name Flags
builder
c
private void concatFirstStep(java.lang.StringBuilder, com.oracle.truffle.js.builtins.helper.JSONData);
descriptor: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getGap:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
ifle 7
1: aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
bipush 10
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
2: iconst_0
istore 3
start local 3 3: goto 6
4: StackMap locals: int
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getGap:()Ljava/lang/String;
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getIndent:()I
if_icmplt 4
end local 3 7: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 8 1 builder Ljava/lang/StringBuilder;
0 8 2 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
3 7 3 i I
MethodParameters:
Name Flags
builder
data
private void concatEnd(java.lang.StringBuilder, com.oracle.truffle.js.builtins.helper.JSONData, int, char, boolean);
descriptor: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;ICZ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getGap:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
ifle 7
iload 5
ifeq 7
1: aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
bipush 10
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
2: iconst_0
istore 6
start local 6 3: goto 6
4: StackMap locals: int
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getGap:()Ljava/lang/String;
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
5: iinc 6 1
StackMap locals:
StackMap stack:
6: iload 6
iload 3
if_icmplt 4
end local 6 7: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
iload 4
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
8: return
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 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 9 1 builder Ljava/lang/StringBuilder;
0 9 2 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
0 9 3 stepback I
0 9 4 close C
0 9 5 hasContent Z
3 7 6 i I
MethodParameters:
Name Flags
builder
data
stepback
close
hasContent
private void appendSeparator(java.lang.StringBuilder, com.oracle.truffle.js.builtins.helper.JSONData, int);
descriptor: (Ljava/lang/StringBuilder;Lcom/oracle/truffle/js/builtins/helper/JSONData;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getGap:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
ifgt 3
1: aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
bipush 44
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
2: goto 9
3: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
ldc ",\n"
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
4: iconst_0
istore 4
start local 4 5: goto 8
6: StackMap locals: int
StackMap stack:
aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.stringBuilderProfile:Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
aload 1
aload 2
invokevirtual com.oracle.truffle.js.builtins.helper.JSONData.getGap:()Ljava/lang/String;
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
7: iinc 4 1
StackMap locals:
StackMap stack:
8: iload 4
iload 3
if_icmplt 6
end local 4 9: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 10 1 builder Ljava/lang/StringBuilder;
0 10 2 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
0 10 3 indent I
5 9 4 i I
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
builder
data
indent
private static void checkCycle(com.oracle.truffle.js.builtins.helper.JSONData, java.lang.Object);
descriptor: (Lcom/oracle/truffle/js/builtins/helper/JSONData;Ljava/lang/Object;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.js.builtins.helper.JSONData.stack:Ljava/util/List;
aload 1
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifeq 2
1: ldc "Converting circular structure to JSON"
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeError:(Ljava/lang/String;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 data Lcom/oracle/truffle/js/builtins/helper/JSONData;
0 3 1 value Ljava/lang/Object;
MethodParameters:
Name Flags
data
value
public static void jsonQuote(com.oracle.truffle.js.runtime.util.StringBuilderProfile, java.lang.StringBuilder, java.lang.String);
descriptor: (Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;Ljava/lang/StringBuilder;Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
bipush 34
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
1: iconst_0
istore 3
start local 3 2: goto 42
3: StackMap locals: int
StackMap stack:
aload 2
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 4: iload 4
bipush 32
if_icmpge 22
5: iload 4
bipush 8
if_icmpne 8
6: aload 0
aload 1
ldc "\\b"
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
7: goto 41
StackMap locals: int
StackMap stack:
8: iload 4
bipush 12
if_icmpne 11
9: aload 0
aload 1
ldc "\\f"
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
10: goto 41
StackMap locals:
StackMap stack:
11: iload 4
bipush 10
if_icmpne 14
12: aload 0
aload 1
ldc "\\n"
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
13: goto 41
StackMap locals:
StackMap stack:
14: iload 4
bipush 13
if_icmpne 17
15: aload 0
aload 1
ldc "\\r"
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
16: goto 41
StackMap locals:
StackMap stack:
17: iload 4
bipush 9
if_icmpne 20
18: aload 0
aload 1
ldc "\\t"
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
19: goto 41
20: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 4
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonQuoteUnicode:(Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;Ljava/lang/StringBuilder;C)V
21: goto 41
22: StackMap locals:
StackMap stack:
iload 4
bipush 92
if_icmpne 25
23: aload 0
aload 1
ldc "\\\\"
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
24: goto 41
StackMap locals:
StackMap stack:
25: iload 4
bipush 34
if_icmpne 28
26: aload 0
aload 1
ldc "\\\""
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
27: goto 41
StackMap locals:
StackMap stack:
28: iload 4
invokestatic java.lang.Character.isSurrogate:(C)Z
ifeq 40
29: iload 4
invokestatic java.lang.Character.isHighSurrogate:(C)Z
ifeq 38
30: iload 3
iconst_1
iadd
aload 2
invokevirtual java.lang.String.length:()I
if_icmpge 36
aload 2
iload 3
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
dup
istore 5
start local 5 31: invokestatic java.lang.Character.isLowSurrogate:(C)Z
ifeq 36
32: aload 0
aload 1
iload 4
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
33: aload 0
aload 1
iload 5
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
34: iinc 3 1
35: goto 41
end local 5 36: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 4
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonQuoteSurrogate:(Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;Ljava/lang/StringBuilder;C)V
37: goto 41
38: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 4
invokestatic com.oracle.truffle.js.builtins.helper.JSONStringifyStringNode.jsonQuoteSurrogate:(Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;Ljava/lang/StringBuilder;C)V
39: goto 41
40: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 4
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
41: StackMap locals:
StackMap stack:
iinc 3 1
end local 4 42: StackMap locals:
StackMap stack:
iload 3
aload 2
invokevirtual java.lang.String.length:()I
if_icmplt 3
end local 3 43: aload 0
aload 1
bipush 34
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
44: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 45 0 stringBuilderProfile Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
0 45 1 builder Ljava/lang/StringBuilder;
0 45 2 value Ljava/lang/String;
2 43 3 i I
4 42 4 ch C
31 36 5 nextCh C
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
stringBuilderProfile
builder
value
private static void jsonQuoteUnicode(com.oracle.truffle.js.runtime.util.StringBuilderProfile, java.lang.StringBuilder, char);
descriptor: (Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;Ljava/lang/StringBuilder;C)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
ldc "\\u00"
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
1: aload 0
aload 1
iload 2
iconst_4
ishr
bipush 15
iand
bipush 16
invokestatic java.lang.Character.forDigit:(II)C
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
2: aload 0
aload 1
iload 2
bipush 15
iand
bipush 16
invokestatic java.lang.Character.forDigit:(II)C
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 profile Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
0 4 1 builder Ljava/lang/StringBuilder;
0 4 2 c C
MethodParameters:
Name Flags
profile
builder
c
private static void jsonQuoteSurrogate(com.oracle.truffle.js.runtime.util.StringBuilderProfile, java.lang.StringBuilder, char);
descriptor: (Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;Ljava/lang/StringBuilder;C)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
ldc "\\ud"
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
1: aload 0
aload 1
iload 2
bipush 8
ishr
bipush 15
iand
bipush 16
invokestatic java.lang.Character.forDigit:(II)C
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
2: aload 0
aload 1
iload 2
iconst_4
ishr
bipush 15
iand
bipush 16
invokestatic java.lang.Character.forDigit:(II)C
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
3: aload 0
aload 1
iload 2
bipush 15
iand
bipush 16
invokestatic java.lang.Character.forDigit:(II)C
invokevirtual com.oracle.truffle.js.runtime.util.StringBuilderProfile.append:(Ljava/lang/StringBuilder;C)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 profile Lcom/oracle/truffle/js/runtime/util/StringBuilderProfile;
0 5 1 builder Ljava/lang/StringBuilder;
0 5 2 c C
MethodParameters:
Name Flags
profile
builder
c
private java.lang.Object truffleGetSize(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 0
invokestatic com.oracle.truffle.js.runtime.interop.JSInteropUtil.getArraySize:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropLibrary;Lcom/oracle/truffle/api/nodes/Node;)J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/builtins/helper/JSONStringifyStringNode;
0 1 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
private java.lang.Object truffleRead(java.lang.Object, java.lang.String);
descriptor: (Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 1
aload 2
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.readMember:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
invokestatic com.oracle.truffle.js.runtime.JSRuntime.importValue:(Ljava/lang/Object;)Ljava/lang/Object;
1: areturn
2: StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.InteropException
astore 3
start local 3 3: aload 1
aload 3
ldc "readMember"
aload 2
aload 0
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Ljava/lang/Object;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
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/JSONStringifyStringNode;
0 4 1 obj Ljava/lang/Object;
0 4 2 key Ljava/lang/String;
3 4 3 e Lcom/oracle/truffle/api/interop/InteropException;
Exception table:
from to target type
0 1 2 Class com.oracle.truffle.api.interop.UnsupportedMessageException
0 1 2 Class com.oracle.truffle.api.interop.UnknownIdentifierException
MethodParameters:
Name Flags
obj
key
private java.lang.Object truffleRead(java.lang.Object, int);
descriptor: (Ljava/lang/Object;I)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: invokestatic com.oracle.truffle.api.interop.InteropLibrary.getFactory:()Lcom/oracle/truffle/api/library/LibraryFactory;
invokevirtual com.oracle.truffle.api.library.LibraryFactory.getUncached:()Lcom/oracle/truffle/api/library/Library;
checkcast com.oracle.truffle.api.interop.InteropLibrary
aload 1
iload 2
i2l
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.readArrayElement:(Ljava/lang/Object;J)Ljava/lang/Object;
invokestatic com.oracle.truffle.js.runtime.JSRuntime.importValue:(Ljava/lang/Object;)Ljava/lang/Object;
1: areturn
2: StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.InteropException
astore 3
start local 3 3: aload 1
aload 3
ldc "readArrayElement"
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 0
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorInteropException:(Ljava/lang/Object;Lcom/oracle/truffle/api/interop/InteropException;Ljava/lang/String;Ljava/lang/Object;Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
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/JSONStringifyStringNode;
0 4 1 obj Ljava/lang/Object;
0 4 2 index I
3 4 3 e Lcom/oracle/truffle/api/interop/InteropException;
Exception table:
from to target type
0 1 2 Class com.oracle.truffle.api.interop.UnsupportedMessageException
0 1 2 Class com.oracle.truffle.api.interop.InvalidArrayIndexException
MethodParameters:
Name Flags
obj
index
}
SourceFile: "JSONStringifyStringNode.java"
InnerClasses:
public abstract TruffleBoundary = com.oracle.truffle.api.CompilerDirectives$TruffleBoundary of com.oracle.truffle.api.CompilerDirectives
public abstract Child = com.oracle.truffle.api.nodes.Node$Child of com.oracle.truffle.api.nodes.Node