public class com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode extends com.oracle.truffle.js.nodes.promise.PerformPromiseCombinatorNode
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode
super_class: com.oracle.truffle.js.nodes.promise.PerformPromiseCombinatorNode
{
private com.oracle.truffle.js.nodes.function.JSFunctionCallNode callResolve;
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.access.PropertyGetNode getThen;
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 callThen;
descriptor: Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
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/promise/PerformPromiseRaceNode;
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.promise.PerformPromiseRaceNode.$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=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial com.oracle.truffle.js.nodes.promise.PerformPromiseCombinatorNode.<init>:(Lcom/oracle/truffle/js/runtime/JSContext;)V
1: aload 0
invokestatic com.oracle.truffle.js.nodes.function.JSFunctionCallNode.createCall:()Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
putfield com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode.callResolve:Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
2: aload 0
ldc "then"
iconst_0
aload 1
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;
putfield com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode.getThen:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
3: aload 0
invokestatic com.oracle.truffle.js.nodes.function.JSFunctionCallNode.createCall:()Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
putfield com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode.callThen:Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/truffle/js/nodes/promise/PerformPromiseRaceNode;
0 5 1 context Lcom/oracle/truffle/js/runtime/JSContext;
MethodParameters:
Name Flags
context
public static com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode create(com.oracle.truffle.js.runtime.JSContext);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/promise/PerformPromiseRaceNode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode
dup
aload 0
invokespecial com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode.<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 com.oracle.truffle.api.object.DynamicObject execute(com.oracle.truffle.js.runtime.objects.IteratorRecord, com.oracle.truffle.api.object.DynamicObject, com.oracle.truffle.js.runtime.objects.PromiseCapabilityRecord, java.lang.Object);
descriptor: (Lcom/oracle/truffle/js/runtime/objects/IteratorRecord;Lcom/oracle/truffle/api/object/DynamicObject;Lcom/oracle/truffle/js/runtime/objects/PromiseCapabilityRecord;Ljava/lang/Object;)Lcom/oracle/truffle/api/object/DynamicObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: getstatic com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode.$assertionsDisabled:Z
ifne 1
aload 2
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isConstructor:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode.$assertionsDisabled:Z
ifne 2
aload 4
invokestatic com.oracle.truffle.js.runtime.JSRuntime.isCallable:(Ljava/lang/Object;)Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode.iteratorStepOrSetDone:(Lcom/oracle/truffle/js/runtime/objects/IteratorRecord;)Ljava/lang/Object;
astore 5
start local 5 3: aload 5
getstatic java.lang.Boolean.FALSE:Ljava/lang/Boolean;
if_acmpne 6
4: aload 1
iconst_1
invokevirtual com.oracle.truffle.js.runtime.objects.IteratorRecord.setDone:(Z)V
5: aload 3
invokevirtual com.oracle.truffle.js.runtime.objects.PromiseCapabilityRecord.getPromise:()Lcom/oracle/truffle/api/object/DynamicObject;
areturn
6: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 1
aload 5
invokevirtual com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode.iteratorValueOrSetDone:(Lcom/oracle/truffle/js/runtime/objects/IteratorRecord;Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 7: aload 0
getfield com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode.callResolve:Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
aload 2
aload 4
aload 6
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;
astore 7
start local 7 8: aload 0
getfield com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode.callThen:Lcom/oracle/truffle/js/nodes/function/JSFunctionCallNode;
aload 7
aload 0
getfield com.oracle.truffle.js.nodes.promise.PerformPromiseRaceNode.getThen:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
aload 7
invokevirtual com.oracle.truffle.js.nodes.access.PropertyGetNode.getValue:(Ljava/lang/Object;)Ljava/lang/Object;
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 3
invokevirtual com.oracle.truffle.js.runtime.objects.PromiseCapabilityRecord.getResolve:()Ljava/lang/Object;
aastore
dup
iconst_1
aload 3
invokevirtual com.oracle.truffle.js.runtime.objects.PromiseCapabilityRecord.getReject:()Ljava/lang/Object;
aastore
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;
pop
end local 7 end local 6 end local 5 9: goto 2
end local 4 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/nodes/promise/PerformPromiseRaceNode;
0 10 1 iteratorRecord Lcom/oracle/truffle/js/runtime/objects/IteratorRecord;
0 10 2 constructor Lcom/oracle/truffle/api/object/DynamicObject;
0 10 3 resultCapability Lcom/oracle/truffle/js/runtime/objects/PromiseCapabilityRecord;
0 10 4 promiseResolve Ljava/lang/Object;
3 9 5 next Ljava/lang/Object;
7 9 6 nextValue Ljava/lang/Object;
8 9 7 nextPromise Ljava/lang/Object;
MethodParameters:
Name Flags
iteratorRecord
constructor
resultCapability
promiseResolve
}
SourceFile: "PerformPromiseRaceNode.java"
InnerClasses:
public abstract Child = com.oracle.truffle.api.nodes.Node$Child of com.oracle.truffle.api.nodes.Node