public class com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode extends com.oracle.truffle.js.nodes.JavaScriptBaseNode
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode
super_class: com.oracle.truffle.js.nodes.JavaScriptBaseNode
{
private com.oracle.truffle.js.nodes.access.PropertyGetNode getGeneratorStateNode;
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.access.PropertyGetNode getAsyncGeneratorQueueNode;
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.access.HasHiddenKeyCacheNode hasAsyncGeneratorInternalSlotsNode;
descriptor: Lcom/oracle/truffle/js/nodes/access/HasHiddenKeyCacheNode;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
private com.oracle.truffle.js.nodes.function.JSFunctionCallNode callPromiseRejectNode;
descriptor: Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
private com.oracle.truffle.js.nodes.promise.NewPromiseCapabilityNode newPromiseCapabilityNode;
descriptor: Lcom/oracle/truffle/js/nodes/promise/NewPromiseCapabilityNode;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
private com.oracle.truffle.js.nodes.control.AsyncGeneratorResumeNextNode asyncGeneratorResumeNextNode;
descriptor: Lcom/oracle/truffle/js/nodes/control/AsyncGeneratorResumeNextNode;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
private final com.oracle.truffle.api.profiles.ConditionProfile notExecutingProf;
descriptor: Lcom/oracle/truffle/api/profiles/ConditionProfile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.truffle.js.runtime.JSContext context;
descriptor: Lcom/oracle/truffle/js/runtime/JSContext;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected void <init>(com.oracle.truffle.js.runtime.JSContext);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, 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
invokestatic com.oracle.truffle.api.profiles.ConditionProfile.createBinaryProfile:()Lcom/oracle/truffle/api/profiles/ConditionProfile;
putfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.notExecutingProf:Lcom/oracle/truffle/api/profiles/ConditionProfile;
2: aload 0
aload 1
putfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.context:Lcom/oracle/truffle/js/runtime/JSContext;
3: aload 0
getstatic com.oracle.truffle.js.runtime.builtins.JSFunction.ASYNC_GENERATOR_STATE_ID:Lcom/oracle/truffle/api/object/HiddenKey;
aload 1
invokestatic com.oracle.truffle.js.nodes.access.PropertyGetNode.createGetHidden:(Lcom/oracle/truffle/api/object/HiddenKey;Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
putfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.getGeneratorStateNode:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
4: aload 0
getstatic com.oracle.truffle.js.runtime.builtins.JSFunction.ASYNC_GENERATOR_QUEUE_ID:Lcom/oracle/truffle/api/object/HiddenKey;
aload 1
invokestatic com.oracle.truffle.js.nodes.access.PropertyGetNode.createGetHidden:(Lcom/oracle/truffle/api/object/HiddenKey;Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
putfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.getAsyncGeneratorQueueNode:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
5: aload 0
getstatic com.oracle.truffle.js.runtime.builtins.JSFunction.ASYNC_GENERATOR_QUEUE_ID:Lcom/oracle/truffle/api/object/HiddenKey;
invokestatic com.oracle.truffle.js.nodes.access.HasHiddenKeyCacheNode.create:(Lcom/oracle/truffle/api/object/HiddenKey;)Lcom/oracle/truffle/js/nodes/access/HasHiddenKeyCacheNode;
putfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.hasAsyncGeneratorInternalSlotsNode:Lcom/oracle/truffle/js/nodes/access/HasHiddenKeyCacheNode;
6: aload 0
aload 1
invokestatic com.oracle.truffle.js.nodes.promise.NewPromiseCapabilityNode.create:(Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/promise/NewPromiseCapabilityNode;
putfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.newPromiseCapabilityNode:Lcom/oracle/truffle/js/nodes/promise/NewPromiseCapabilityNode;
7: aload 0
aload 1
invokestatic com.oracle.truffle.js.nodes.control.AsyncGeneratorResumeNextNode.create:(Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/control/AsyncGeneratorResumeNextNode;
putfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.asyncGeneratorResumeNextNode:Lcom/oracle/truffle/js/nodes/control/AsyncGeneratorResumeNextNode;
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/truffle/js/nodes/control/AsyncGeneratorEnqueueNode;
0 9 1 context Lcom/oracle/truffle/js/runtime/JSContext;
MethodParameters:
Name Flags
context
public static com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode create(com.oracle.truffle.js.runtime.JSContext);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/control/AsyncGeneratorEnqueueNode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode
dup
aload 0
invokespecial com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.<init>:(Lcom/oracle/truffle/js/runtime/JSContext;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lcom/oracle/truffle/js/runtime/JSContext;
MethodParameters:
Name Flags
context
public java.lang.Object execute(com.oracle.truffle.api.frame.VirtualFrame, java.lang.Object, com.oracle.truffle.js.runtime.objects.Completion);
descriptor: (Lcom/oracle/truffle/api/frame/VirtualFrame;Ljava/lang/Object;Lcom/oracle/truffle/js/runtime/objects/Completion;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.newPromiseCapability:()Lcom/oracle/truffle/js/runtime/objects/PromiseCapabilityRecord;
astore 4
start local 4 1: aload 2
invokestatic com.oracle.truffle.js.nodes.JSGuards.isJSObject:(Ljava/lang/Object;)Z
ifeq 2
aload 0
getfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.hasAsyncGeneratorInternalSlotsNode:Lcom/oracle/truffle/js/nodes/access/HasHiddenKeyCacheNode;
aload 2
invokevirtual com.oracle.truffle.js.nodes.access.HasHiddenKeyCacheNode.executeHasHiddenKey:(Ljava/lang/Object;)Z
ifne 4
2: StackMap locals: com.oracle.truffle.js.runtime.objects.PromiseCapabilityRecord
StackMap stack:
aload 0
invokevirtual com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.enterErrorBranch:()V
3: aload 0
aload 4
invokevirtual com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.badGeneratorError:(Lcom/oracle/truffle/js/runtime/objects/PromiseCapabilityRecord;)Ljava/lang/Object;
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.getAsyncGeneratorQueueNode:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
aload 2
invokevirtual com.oracle.truffle.js.nodes.access.PropertyGetNode.getValue:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.ArrayDeque
astore 5
start local 5 5: aload 3
aload 4
invokestatic com.oracle.truffle.js.runtime.objects.AsyncGeneratorRequest.create:(Lcom/oracle/truffle/js/runtime/objects/Completion;Lcom/oracle/truffle/js/runtime/objects/PromiseCapabilityRecord;)Lcom/oracle/truffle/js/runtime/objects/AsyncGeneratorRequest;
astore 6
start local 6 6: aload 5
aload 6
invokestatic com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.queueAdd:(Ljava/util/ArrayDeque;Lcom/oracle/truffle/js/runtime/objects/AsyncGeneratorRequest;)V
7: aload 0
getfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.getGeneratorStateNode:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
aload 2
invokevirtual com.oracle.truffle.js.nodes.access.PropertyGetNode.getValue:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.oracle.truffle.js.runtime.builtins.JSFunction$AsyncGeneratorState
astore 7
start local 7 8: aload 0
getfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.notExecutingProf:Lcom/oracle/truffle/api/profiles/ConditionProfile;
aload 7
getstatic com.oracle.truffle.js.runtime.builtins.JSFunction$AsyncGeneratorState.Executing:Lcom/oracle/truffle/js/runtime/builtins/JSFunction$AsyncGeneratorState;
if_acmpeq 9
iconst_1
goto 10
StackMap locals: com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode com.oracle.truffle.api.frame.VirtualFrame java.lang.Object com.oracle.truffle.js.runtime.objects.Completion com.oracle.truffle.js.runtime.objects.PromiseCapabilityRecord java.util.ArrayDeque com.oracle.truffle.js.runtime.objects.AsyncGeneratorRequest com.oracle.truffle.js.runtime.builtins.JSFunction$AsyncGeneratorState
StackMap stack: com.oracle.truffle.api.profiles.ConditionProfile
9: iconst_0
StackMap locals: com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode com.oracle.truffle.api.frame.VirtualFrame java.lang.Object com.oracle.truffle.js.runtime.objects.Completion com.oracle.truffle.js.runtime.objects.PromiseCapabilityRecord java.util.ArrayDeque com.oracle.truffle.js.runtime.objects.AsyncGeneratorRequest com.oracle.truffle.js.runtime.builtins.JSFunction$AsyncGeneratorState
StackMap stack: com.oracle.truffle.api.profiles.ConditionProfile int
10: invokevirtual com.oracle.truffle.api.profiles.ConditionProfile.profile:(Z)Z
ifeq 12
11: aload 0
getfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.asyncGeneratorResumeNextNode:Lcom/oracle/truffle/js/nodes/control/AsyncGeneratorResumeNextNode;
aload 1
aload 2
checkcast com.oracle.truffle.api.object.DynamicObject
invokevirtual com.oracle.truffle.js.nodes.control.AsyncGeneratorResumeNextNode.execute:(Lcom/oracle/truffle/api/frame/VirtualFrame;Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/Object;
pop
12: StackMap locals:
StackMap stack:
aload 4
invokevirtual com.oracle.truffle.js.runtime.objects.PromiseCapabilityRecord.getPromise:()Lcom/oracle/truffle/api/object/DynamicObject;
areturn
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 13 0 this Lcom/oracle/truffle/js/nodes/control/AsyncGeneratorEnqueueNode;
0 13 1 frame Lcom/oracle/truffle/api/frame/VirtualFrame;
0 13 2 generator Ljava/lang/Object;
0 13 3 completion Lcom/oracle/truffle/js/runtime/objects/Completion;
1 13 4 promiseCapability Lcom/oracle/truffle/js/runtime/objects/PromiseCapabilityRecord;
5 13 5 queue Ljava/util/ArrayDeque<Lcom/oracle/truffle/js/runtime/objects/AsyncGeneratorRequest;>;
6 13 6 request Lcom/oracle/truffle/js/runtime/objects/AsyncGeneratorRequest;
8 13 7 state Lcom/oracle/truffle/js/runtime/builtins/JSFunction$AsyncGeneratorState;
MethodParameters:
Name Flags
frame
generator
completion
private com.oracle.truffle.js.runtime.objects.PromiseCapabilityRecord newPromiseCapability();
descriptor: ()Lcom/oracle/truffle/js/runtime/objects/PromiseCapabilityRecord;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.newPromiseCapabilityNode:Lcom/oracle/truffle/js/nodes/promise/NewPromiseCapabilityNode;
invokevirtual com.oracle.truffle.js.nodes.promise.NewPromiseCapabilityNode.executeDefault:()Lcom/oracle/truffle/js/runtime/objects/PromiseCapabilityRecord;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/nodes/control/AsyncGeneratorEnqueueNode;
private static void queueAdd(java.util.ArrayDeque<com.oracle.truffle.js.runtime.objects.AsyncGeneratorRequest>, com.oracle.truffle.js.runtime.objects.AsyncGeneratorRequest);
descriptor: (Ljava/util/ArrayDeque;Lcom/oracle/truffle/js/runtime/objects/AsyncGeneratorRequest;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.util.ArrayDeque.addLast:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 queue Ljava/util/ArrayDeque<Lcom/oracle/truffle/js/runtime/objects/AsyncGeneratorRequest;>;
0 2 1 request Lcom/oracle/truffle/js/runtime/objects/AsyncGeneratorRequest;
Signature: (Ljava/util/ArrayDeque<Lcom/oracle/truffle/js/runtime/objects/AsyncGeneratorRequest;>;Lcom/oracle/truffle/js/runtime/objects/AsyncGeneratorRequest;)V
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
queue
request
private void enterErrorBranch();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.callPromiseRejectNode: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.control.AsyncGeneratorEnqueueNode.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.control.AsyncGeneratorEnqueueNode.callPromiseRejectNode:Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/js/nodes/control/AsyncGeneratorEnqueueNode;
private java.lang.Object badGeneratorError(com.oracle.truffle.js.runtime.objects.PromiseCapabilityRecord);
descriptor: (Lcom/oracle/truffle/js/runtime/objects/PromiseCapabilityRecord;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: invokestatic com.oracle.truffle.js.runtime.Errors.createTypeErrorAsyncGeneratorObjectExpected:()Lcom/oracle/truffle/js/runtime/JSException;
aload 0
getfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.context:Lcom/oracle/truffle/js/runtime/JSContext;
invokevirtual com.oracle.truffle.js.runtime.JSException.getErrorObjectEager:(Lcom/oracle/truffle/js/runtime/JSContext;)Ljava/lang/Object;
astore 2
start local 2 1: aload 1
invokevirtual com.oracle.truffle.js.runtime.objects.PromiseCapabilityRecord.getReject:()Ljava/lang/Object;
astore 3
start local 3 2: aload 0
getfield com.oracle.truffle.js.nodes.control.AsyncGeneratorEnqueueNode.callPromiseRejectNode:Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
getstatic com.oracle.truffle.js.runtime.objects.Undefined.instance:Lcom/oracle/truffle/js/runtime/objects/JSDynamicObject;
aload 3
aload 2
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;
pop
3: aload 1
invokevirtual com.oracle.truffle.js.runtime.objects.PromiseCapabilityRecord.getPromise:()Lcom/oracle/truffle/api/object/DynamicObject;
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/control/AsyncGeneratorEnqueueNode;
0 4 1 promiseCapability Lcom/oracle/truffle/js/runtime/objects/PromiseCapabilityRecord;
1 4 2 badGeneratorError Ljava/lang/Object;
2 4 3 reject Ljava/lang/Object;
MethodParameters:
Name Flags
promiseCapability
}
SourceFile: "AsyncGeneratorEnqueueNode.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
public final AsyncGeneratorState = com.oracle.truffle.js.runtime.builtins.JSFunction$AsyncGeneratorState of com.oracle.truffle.js.runtime.builtins.JSFunction