class com.oracle.truffle.js.runtime.java.JavaPackage$1 extends com.oracle.truffle.js.runtime.JavaScriptRootNode
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.oracle.truffle.js.runtime.java.JavaPackage$1
super_class: com.oracle.truffle.js.runtime.JavaScriptRootNode
{
void <init>(com.oracle.truffle.js.lang.JavaScriptLanguage, com.oracle.truffle.api.source.SourceSection, com.oracle.truffle.api.frame.FrameDescriptor);
descriptor: (Lcom/oracle/truffle/js/lang/JavaScriptLanguage;Lcom/oracle/truffle/api/source/SourceSection;Lcom/oracle/truffle/api/frame/FrameDescriptor;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 // com.oracle.truffle.js.runtime.java.JavaPackage$1 this
start local 1 // com.oracle.truffle.js.lang.JavaScriptLanguage $anonymous0
start local 2 // com.oracle.truffle.api.source.SourceSection $anonymous1
start local 3 // com.oracle.truffle.api.frame.FrameDescriptor $anonymous2
0: .line 190
aload 0 /* this */
aload 1 /* $anonymous0 */
aload 2 /* $anonymous1 */
aload 3 /* $anonymous2 */
invokespecial com.oracle.truffle.js.runtime.JavaScriptRootNode.<init>:(Lcom/oracle/truffle/js/lang/JavaScriptLanguage;Lcom/oracle/truffle/api/source/SourceSection;Lcom/oracle/truffle/api/frame/FrameDescriptor;)V
return
end local 3 // com.oracle.truffle.api.frame.FrameDescriptor $anonymous2
end local 2 // com.oracle.truffle.api.source.SourceSection $anonymous1
end local 1 // com.oracle.truffle.js.lang.JavaScriptLanguage $anonymous0
end local 0 // com.oracle.truffle.js.runtime.java.JavaPackage$1 this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/runtime/java/JavaPackage$1;
0 1 1 $anonymous0 Lcom/oracle/truffle/js/lang/JavaScriptLanguage;
0 1 2 $anonymous1 Lcom/oracle/truffle/api/source/SourceSection;
0 1 3 $anonymous2 Lcom/oracle/truffle/api/frame/FrameDescriptor;
MethodParameters:
Name Flags
$anonymous0
$anonymous1
$anonymous2
public java.lang.Object execute(com.oracle.truffle.api.frame.VirtualFrame);
descriptor: (Lcom/oracle/truffle/api/frame/VirtualFrame;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 // com.oracle.truffle.js.runtime.java.JavaPackage$1 this
start local 1 // com.oracle.truffle.api.frame.VirtualFrame frame
0: .line 194
aload 1 /* frame */
invokeinterface com.oracle.truffle.api.frame.VirtualFrame.getArguments:()[Ljava/lang/Object;
astore 2 /* arguments */
start local 2 // java.lang.Object[] arguments
1: .line 195
aload 2 /* arguments */
invokestatic com.oracle.truffle.js.runtime.JSArguments.getThisObject:([Ljava/lang/Object;)Ljava/lang/Object;
astore 3 /* obj */
start local 3 // java.lang.Object obj
2: .line 196
aload 2 /* arguments */
invokestatic com.oracle.truffle.js.runtime.JSArguments.getUserArgumentCount:([Ljava/lang/Object;)I
ifle 3
aload 2 /* arguments */
iconst_0
invokestatic com.oracle.truffle.js.runtime.JSArguments.getUserArgument:([Ljava/lang/Object;I)Ljava/lang/Object;
goto 4
StackMap locals: java.lang.Object[] java.lang.Object
StackMap stack:
3: aconst_null
StackMap locals:
StackMap stack: java.lang.Object
4: astore 4 /* hint */
start local 4 // java.lang.Object hint
5: .line 198
aload 3 /* obj */
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isObject:(Ljava/lang/Object;)Z
ifne 7
6: .line 199
ldc "cannot call JavaPackage[@@toPrimitive] with non-object argument"
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeError:(Ljava/lang/String;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
7: .line 201
StackMap locals: java.lang.Object
StackMap stack:
ldc "string"
aload 4 /* hint */
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
8: .line 202
aload 3 /* obj */
checkcast com.oracle.truffle.api.object.DynamicObject
invokestatic com.oracle.truffle.js.runtime.java.JavaPackage.toPrimitiveString:(Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/String;
areturn
9: .line 203
StackMap locals:
StackMap stack:
ldc "default"
aload 4 /* hint */
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
ldc "number"
aload 4 /* hint */
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
10: .line 204
StackMap locals:
StackMap stack:
aload 3 /* obj */
checkcast com.oracle.truffle.api.object.DynamicObject
ldc "number"
invokestatic com.oracle.truffle.js.runtime.objects.JSObject.ordinaryToPrimitive:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/String;)Ljava/lang/Object;
areturn
11: .line 206
StackMap locals:
StackMap stack:
ldc "invalid hint"
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeError:(Ljava/lang/String;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 4 // java.lang.Object hint
end local 3 // java.lang.Object obj
end local 2 // java.lang.Object[] arguments
end local 1 // com.oracle.truffle.api.frame.VirtualFrame frame
end local 0 // com.oracle.truffle.js.runtime.java.JavaPackage$1 this
LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/oracle/truffle/js/runtime/java/JavaPackage$1;
0 12 1 frame Lcom/oracle/truffle/api/frame/VirtualFrame;
1 12 2 arguments [Ljava/lang/Object;
2 12 3 obj Ljava/lang/Object;
5 12 4 hint Ljava/lang/Object;
MethodParameters:
Name Flags
frame
}
SourceFile: "JavaPackage.java"
EnclosingMethod: com.oracle.truffle.js.runtime.java.JavaPackage.createToPrimitiveFunctionImpl:(Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/runtime/builtins/JSFunctionData;
NestHost: com.oracle.truffle.js.runtime.java.JavaPackage
InnerClasses:
com.oracle.truffle.js.runtime.java.JavaPackage$1