final class com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode extends com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignExecuteNode
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode
super_class: com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignExecuteNode
{
private final java.lang.String functionName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.api.profiles.ValueProfile thisClassProfile;
descriptor: Lcom/oracle/truffle/api/profiles/ValueProfile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected com.oracle.truffle.api.nodes.Node invokeNode;
descriptor: Lcom/oracle/truffle/api/nodes/Node;
flags: (0x0004) ACC_PROTECTED
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
private com.oracle.truffle.js.nodes.cast.JSToObjectNode toObjectNode;
descriptor: Lcom/oracle/truffle/js/nodes/cast/JSToObjectNode;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
private com.oracle.truffle.js.nodes.interop.ForeignObjectPrototypeNode foreignObjectPrototypeNode;
descriptor: Lcom/oracle/truffle/js/nodes/interop/ForeignObjectPrototypeNode;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
protected com.oracle.truffle.js.nodes.function.JSFunctionCallNode callJSFunctionNode;
descriptor: Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
flags: (0x0004) ACC_PROTECTED
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
protected com.oracle.truffle.js.nodes.access.PropertyGetNode getFunctionNode;
descriptor: Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
flags: (0x0004) ACC_PROTECTED
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
private com.oracle.truffle.api.TruffleLanguage$LanguageReference<com.oracle.truffle.js.lang.JavaScriptLanguage> languageRef;
descriptor: Lcom/oracle/truffle/api/TruffleLanguage$LanguageReference;
flags: (0x0002) ACC_PRIVATE
Signature: Lcom/oracle/truffle/api/TruffleLanguage$LanguageReference<Lcom/oracle/truffle/js/lang/JavaScriptLanguage;>;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$CompilationFinal()
private final com.oracle.truffle.api.profiles.BranchProfile errorBranch;
descriptor: Lcom/oracle/truffle/api/profiles/BranchProfile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean optimistic;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$CompilationFinal()
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/nodes/function/JSFunctionCallNode;
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.nodes.function.JSFunctionCallNode$ForeignInvokeNode.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 2
invokespecial com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignExecuteNode.<init>:(I)V
1: aload 0
invokestatic com.oracle.truffle.api.profiles.ValueProfile.createClassProfile:()Lcom/oracle/truffle/api/profiles/ValueProfile;
putfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.thisClassProfile:Lcom/oracle/truffle/api/profiles/ValueProfile;
2: aload 0
invokestatic com.oracle.truffle.api.profiles.BranchProfile.create:()Lcom/oracle/truffle/api/profiles/BranchProfile;
putfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
3: aload 0
iconst_1
putfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.optimistic:Z
4: aload 0
aload 1
putfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.functionName:Ljava/lang/String;
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/nodes/function/JSFunctionCallNode$ForeignInvokeNode;
0 6 1 functionName Ljava/lang/String;
0 6 2 expectedArgumentCount I
MethodParameters:
Name Flags
functionName
expectedArgumentCount
public java.lang.Object executeCall(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.thisClassProfile:Lcom/oracle/truffle/api/profiles/ValueProfile;
aload 1
invokestatic com.oracle.truffle.js.runtime.JSArguments.getThisObject:([Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual com.oracle.truffle.api.profiles.ValueProfile.profile:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 1: aload 0
aload 1
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.exportArguments:([Ljava/lang/Object;)[Ljava/lang/Object;
astore 3
start local 3 2: aload 2
invokestatic com.oracle.truffle.js.nodes.JSGuards.isForeignObject:(Ljava/lang/Object;)Z
ifeq 33
3: getstatic com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.$assertionsDisabled:Z
ifne 4
aload 1
invokestatic com.oracle.truffle.js.runtime.JSArguments.getFunctionObject:([Ljava/lang/Object;)Ljava/lang/Object;
aload 2
if_acmpeq 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: java.lang.Object java.lang.Object[]
StackMap stack:
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.interop:Lcom/oracle/truffle/api/interop/InteropLibrary;
aload 2
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isNull:(Ljava/lang/Object;)Z
ifeq 7
5: aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
6: aload 0
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.functionName:Ljava/lang/String;
aload 2
iconst_0
aload 0
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorCannotGetProperty:(Lcom/oracle/truffle/js/runtime/JSContext;Ljava/lang/Object;Ljava/lang/Object;ZLcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.toObject:(Ljava/lang/Object;)Ljava/lang/Object;
astore 5
start local 5 8: aload 5
aload 2
if_acmpeq 11
9: getstatic com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.$assertionsDisabled:Z
ifne 10
aload 5
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.isJSDynamicObject:(Ljava/lang/Object;)Z
ifne 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals: com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode java.lang.Object[] java.lang.Object java.lang.Object[] top java.lang.Object
StackMap stack:
aload 0
aload 2
aload 0
aload 5
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.getFunction:(Ljava/lang/Object;)Ljava/lang/Object;
aload 1
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.callJSFunction:(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
areturn
11: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.optimistic:Z
ifeq 25
12: aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.interop:Lcom/oracle/truffle/api/interop/InteropLibrary;
aload 2
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.functionName:Ljava/lang/String;
aload 3
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.invokeMember:(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 13: goto 39
end local 4 StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.InteropException
14: astore 6
start local 6 15: aload 0
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSContext.getContextOptions:()Lcom/oracle/truffle/js/runtime/JSContextOptions;
invokevirtual com.oracle.truffle.js.runtime.JSContextOptions.hasForeignObjectPrototype:()Z
ifeq 20
16: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate:()V
17: aload 0
iconst_0
putfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.optimistic:Z
18: aload 0
aload 1
aload 2
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.maybeInvokeFromPrototype:([Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 19: goto 39
end local 4 20: StackMap locals: com.oracle.truffle.api.interop.InteropException
StackMap stack:
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
21: aload 2
aload 6
ldc "invokeMember"
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.functionName:Ljava/lang/String;
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 6 22: StackMap locals: com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode java.lang.Object[] java.lang.Object java.lang.Object[] top java.lang.Object
StackMap stack: com.oracle.truffle.api.interop.InteropException
astore 6
start local 6 23: aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
24: aload 2
aload 6
ldc "invokeMember"
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.functionName:Ljava/lang/String;
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 6 25: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.interop:Lcom/oracle/truffle/api/interop/InteropLibrary;
aload 2
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.functionName:Ljava/lang/String;
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.isMemberInvocable:(Ljava/lang/Object;Ljava/lang/String;)Z
ifeq 31
26: aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.interop:Lcom/oracle/truffle/api/interop/InteropLibrary;
aload 2
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.functionName:Ljava/lang/String;
aload 3
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.invokeMember:(Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 27: goto 39
end local 4 StackMap locals:
StackMap stack: com.oracle.truffle.api.interop.InteropException
28: astore 6
start local 6 29: aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
30: aload 2
aload 6
ldc "invokeMember"
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.functionName:Ljava/lang/String;
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 6 31: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.maybeInvokeFromPrototype:([Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
astore 4
end local 5 start local 4 32: goto 39
end local 4 33: StackMap locals: com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode java.lang.Object[] java.lang.Object java.lang.Object[]
StackMap stack:
aload 0
aload 1
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.getForeignFunction:([Ljava/lang/Object;)Ljava/lang/Object;
astore 5
start local 5 34: aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.interop:Lcom/oracle/truffle/api/interop/InteropLibrary;
aload 5
aload 3
invokevirtual com.oracle.truffle.api.interop.InteropLibrary.execute:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 35: goto 39
end local 4 StackMap locals: com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode java.lang.Object[] java.lang.Object java.lang.Object[] top java.lang.Object
StackMap stack: com.oracle.truffle.api.interop.InteropException
36: astore 6
start local 6 37: aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
38: aload 5
aload 6
ldc "execute"
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 6 end local 5 start local 4 39: StackMap locals: com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode java.lang.Object[] java.lang.Object java.lang.Object[] java.lang.Object
StackMap stack:
aload 0
aload 4
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.convertForeignReturn:(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 40 0 this Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode$ForeignInvokeNode;
0 40 1 arguments [Ljava/lang/Object;
1 40 2 receiver Ljava/lang/Object;
2 40 3 callArguments [Ljava/lang/Object;
13 14 4 callReturn Ljava/lang/Object;
19 20 4 callReturn Ljava/lang/Object;
27 28 4 callReturn Ljava/lang/Object;
32 33 4 callReturn Ljava/lang/Object;
35 36 4 callReturn Ljava/lang/Object;
39 40 4 callReturn Ljava/lang/Object;
8 32 5 object Ljava/lang/Object;
15 22 6 e Lcom/oracle/truffle/api/interop/InteropException;
23 25 6 e Lcom/oracle/truffle/api/interop/InteropException;
29 31 6 e Lcom/oracle/truffle/api/interop/InteropException;
34 39 5 function Ljava/lang/Object;
37 39 6 e Lcom/oracle/truffle/api/interop/InteropException;
Exception table:
from to target type
12 13 14 Class com.oracle.truffle.api.interop.UnknownIdentifierException
12 13 14 Class com.oracle.truffle.api.interop.UnsupportedMessageException
12 13 22 Class com.oracle.truffle.api.interop.UnsupportedTypeException
12 13 22 Class com.oracle.truffle.api.interop.ArityException
26 27 28 Class com.oracle.truffle.api.interop.UnknownIdentifierException
26 27 28 Class com.oracle.truffle.api.interop.UnsupportedMessageException
26 27 28 Class com.oracle.truffle.api.interop.UnsupportedTypeException
26 27 28 Class com.oracle.truffle.api.interop.ArityException
34 35 36 Class com.oracle.truffle.api.interop.UnsupportedTypeException
34 35 36 Class com.oracle.truffle.api.interop.ArityException
34 35 36 Class com.oracle.truffle.api.interop.UnsupportedMessageException
MethodParameters:
Name Flags
arguments
private java.lang.Object maybeInvokeFromPrototype(java.lang.Object[], java.lang.Object);
descriptor: ([Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.foreignObjectPrototypeNode:Lcom/oracle/truffle/js/nodes/interop/ForeignObjectPrototypeNode;
ifnonnull 3
1: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate:()V
2: aload 0
aload 0
invokestatic com.oracle.truffle.js.nodes.interop.ForeignObjectPrototypeNode.create:()Lcom/oracle/truffle/js/nodes/interop/ForeignObjectPrototypeNode;
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.insert:(Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/api/nodes/Node;
checkcast com.oracle.truffle.js.nodes.interop.ForeignObjectPrototypeNode
putfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.foreignObjectPrototypeNode:Lcom/oracle/truffle/js/nodes/interop/ForeignObjectPrototypeNode;
3: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.foreignObjectPrototypeNode:Lcom/oracle/truffle/js/nodes/interop/ForeignObjectPrototypeNode;
aload 2
invokevirtual com.oracle.truffle.js.nodes.interop.ForeignObjectPrototypeNode.executeDynamicObject:(Ljava/lang/Object;)Lcom/oracle/truffle/api/object/DynamicObject;
astore 3
start local 3 4: aload 0
aload 3
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.getFunction:(Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 5: aload 4
getstatic com.oracle.truffle.js.runtime.objects.Undefined.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
if_acmpne 8
6: aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.errorBranch:Lcom/oracle/truffle/api/profiles/BranchProfile;
invokevirtual com.oracle.truffle.api.profiles.BranchProfile.enter:()V
7: aload 2
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.functionName:Ljava/lang/String;
invokestatic com.oracle.truffle.api.interop.UnknownIdentifierException.create:(Ljava/lang/String;)Lcom/oracle/truffle/api/interop/UnknownIdentifierException;
ldc "invokeMember"
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.functionName:Ljava/lang/String;
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
8: StackMap locals: com.oracle.truffle.api.object.DynamicObject java.lang.Object
StackMap stack:
aload 0
aload 2
aload 4
aload 1
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.callJSFunction:(Ljava/lang/Object;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 9 0 this Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode$ForeignInvokeNode;
0 9 1 arguments [Ljava/lang/Object;
0 9 2 receiver Ljava/lang/Object;
4 9 3 prototype Lcom/oracle/truffle/api/object/DynamicObject;
5 9 4 function Ljava/lang/Object;
MethodParameters:
Name Flags
arguments
receiver
private java.lang.Object getFunction(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.getFunctionNode:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
ifnonnull 3
1: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate:()V
2: aload 0
aload 0
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.functionName:Ljava/lang/String;
aload 0
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
invokestatic com.oracle.truffle.js.nodes.access.PropertyGetNode.create:(Ljava/lang/Object;Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.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.nodes.function.JSFunctionCallNode$ForeignInvokeNode.getFunctionNode:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
3: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.getFunctionNode:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
aload 1
invokevirtual com.oracle.truffle.js.nodes.access.PropertyGetNode.getValue:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode$ForeignInvokeNode;
0 4 1 object Ljava/lang/Object;
MethodParameters:
Name Flags
object
private java.lang.Object callJSFunction(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.nodes.function.JSFunctionCallNode$ForeignInvokeNode.callJSFunctionNode: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.nodes.function.JSFunctionCallNode$ForeignInvokeNode.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.nodes.function.JSFunctionCallNode$ForeignInvokeNode.callJSFunctionNode:Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
3: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.callJSFunctionNode:Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
aload 1
aload 2
aload 3
invokestatic com.oracle.truffle.js.runtime.JSArguments.extractUserArguments:([Ljava/lang/Object;)[Ljava/lang/Object;
invokestatic com.oracle.truffle.js.runtime.JSArguments.create:(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/nodes/function/JSFunctionCallNode$ForeignInvokeNode;
0 4 1 receiver Ljava/lang/Object;
0 4 2 function Ljava/lang/Object;
0 4 3 arguments [Ljava/lang/Object;
MethodParameters:
Name Flags
receiver
function
arguments
private java.lang.Object toObject(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 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.toObjectNode:Lcom/oracle/truffle/js/nodes/cast/JSToObjectNode;
ifnonnull 3
1: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate:()V
2: aload 0
aload 0
aload 0
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.getContext:()Lcom/oracle/truffle/js/runtime/JSContext;
invokestatic com.oracle.truffle.js.nodes.cast.JSToObjectNode.createToObject:(Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/cast/JSToObjectNode;
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.insert:(Lcom/oracle/truffle/api/nodes/Node;)Lcom/oracle/truffle/api/nodes/Node;
checkcast com.oracle.truffle.js.nodes.cast.JSToObjectNode
putfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.toObjectNode:Lcom/oracle/truffle/js/nodes/cast/JSToObjectNode;
3: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.toObjectNode:Lcom/oracle/truffle/js/nodes/cast/JSToObjectNode;
aload 1
invokevirtual com.oracle.truffle.js.nodes.cast.JSToObjectNode.execute:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode$ForeignInvokeNode;
0 4 1 object Ljava/lang/Object;
MethodParameters:
Name Flags
object
private com.oracle.truffle.js.runtime.JSContext getContext();
descriptor: ()Lcom/oracle/truffle/js/runtime/JSContext;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.languageRef:Lcom/oracle/truffle/api/TruffleLanguage$LanguageReference;
ifnonnull 3
1: invokestatic com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate:()V
2: aload 0
aload 0
ldc Lcom/oracle/truffle/js/lang/JavaScriptLanguage;
invokevirtual com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.lookupLanguageReference:(Ljava/lang/Class;)Lcom/oracle/truffle/api/TruffleLanguage$LanguageReference;
putfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.languageRef:Lcom/oracle/truffle/api/TruffleLanguage$LanguageReference;
3: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode.languageRef:Lcom/oracle/truffle/api/TruffleLanguage$LanguageReference;
invokevirtual com.oracle.truffle.api.TruffleLanguage$LanguageReference.get:()Lcom/oracle/truffle/api/TruffleLanguage;
checkcast com.oracle.truffle.js.lang.JavaScriptLanguage
invokevirtual com.oracle.truffle.js.lang.JavaScriptLanguage.getJSContext:()Lcom/oracle/truffle/js/runtime/JSContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode$ForeignInvokeNode;
}
SourceFile: "JSFunctionCallNode.java"
NestHost: com.oracle.truffle.js.nodes.function.JSFunctionCallNode
InnerClasses:
public abstract CompilationFinal = com.oracle.truffle.api.CompilerDirectives$CompilationFinal of com.oracle.truffle.api.CompilerDirectives
public abstract LanguageReference = com.oracle.truffle.api.TruffleLanguage$LanguageReference of com.oracle.truffle.api.TruffleLanguage
public abstract Child = com.oracle.truffle.api.nodes.Node$Child of com.oracle.truffle.api.nodes.Node
private ForeignExecuteNode = com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignExecuteNode of com.oracle.truffle.js.nodes.function.JSFunctionCallNode
private final ForeignInvokeNode = com.oracle.truffle.js.nodes.function.JSFunctionCallNode$ForeignInvokeNode of com.oracle.truffle.js.nodes.function.JSFunctionCallNode