public abstract class com.oracle.truffle.js.nodes.promise.UnwrapPromiseNode 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.nodes.promise.UnwrapPromiseNode
super_class: com.oracle.truffle.js.nodes.JavaScriptBaseNode
{
private com.oracle.truffle.js.nodes.access.PropertyGetNode getPromiseResult;
descriptor: Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.oracle.truffle.api.nodes.Node$Child()
private static final com.oracle.truffle.js.nodes.promise.UnwrapPromiseNode UNCACHED;
descriptor: Lcom/oracle/truffle/js/nodes/promise/UnwrapPromiseNode;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: aconst_null
invokestatic com.oracle.truffle.js.nodes.promise.UnwrapPromiseNode.create:(Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/promise/UnwrapPromiseNode;
putstatic com.oracle.truffle.js.nodes.promise.UnwrapPromiseNode.UNCACHED:Lcom/oracle/truffle/js/nodes/promise/UnwrapPromiseNode;
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=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 1
ifnull 3
2: aload 0
getstatic com.oracle.truffle.js.runtime.builtins.JSPromise.PROMISE_RESULT: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.promise.UnwrapPromiseNode.getPromiseResult:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
3: StackMap locals: com.oracle.truffle.js.nodes.promise.UnwrapPromiseNode com.oracle.truffle.js.runtime.JSContext
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/truffle/js/nodes/promise/UnwrapPromiseNode;
0 4 1 context Lcom/oracle/truffle/js/runtime/JSContext;
MethodParameters:
Name Flags
context
public static com.oracle.truffle.js.nodes.promise.UnwrapPromiseNode create(com.oracle.truffle.js.runtime.JSContext);
descriptor: (Lcom/oracle/truffle/js/runtime/JSContext;)Lcom/oracle/truffle/js/nodes/promise/UnwrapPromiseNode;
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\tUnwrapPromiseNodeGen 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 final java.lang.Object execute(com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.truffle.js.nodes.promise.UnwrapPromiseNode.getPromiseResult:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
ifnonnull 2
1: aload 0
aload 1
invokevirtual com.oracle.truffle.js.nodes.promise.UnwrapPromiseNode.doUncached:(Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/Object;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic com.oracle.truffle.js.runtime.builtins.JSPromise.getPromiseState:(Lcom/oracle/truffle/api/object/DynamicObject;)I
istore 2
start local 2 3: aload 0
getfield com.oracle.truffle.js.nodes.promise.UnwrapPromiseNode.getPromiseResult:Lcom/oracle/truffle/js/nodes/access/PropertyGetNode;
aload 1
invokevirtual com.oracle.truffle.js.nodes.access.PropertyGetNode.getValue:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 4: aload 0
aload 1
iload 2
aload 3
invokevirtual com.oracle.truffle.js.nodes.promise.UnwrapPromiseNode.execute:(Lcom/oracle/truffle/api/object/DynamicObject;ILjava/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 5 0 this Lcom/oracle/truffle/js/nodes/promise/UnwrapPromiseNode;
0 5 1 promise Lcom/oracle/truffle/api/object/DynamicObject;
3 5 2 promiseState I
4 5 3 promiseResult Ljava/lang/Object;
MethodParameters:
Name Flags
promise
private java.lang.Object doUncached(com.oracle.truffle.api.object.DynamicObject);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
invokestatic com.oracle.truffle.js.runtime.builtins.JSPromise.getPromiseState:(Lcom/oracle/truffle/api/object/DynamicObject;)I
aload 1
getstatic com.oracle.truffle.js.runtime.builtins.JSPromise.PROMISE_RESULT:Lcom/oracle/truffle/api/object/HiddenKey;
invokestatic com.oracle.truffle.js.runtime.objects.JSDynamicObject.getOrNull:(Lcom/oracle/truffle/api/object/DynamicObject;Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual com.oracle.truffle.js.nodes.promise.UnwrapPromiseNode.execute:(Lcom/oracle/truffle/api/object/DynamicObject;ILjava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/truffle/js/nodes/promise/UnwrapPromiseNode;
0 1 1 promise Lcom/oracle/truffle/api/object/DynamicObject;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.CompilerDirectives$TruffleBoundary()
MethodParameters:
Name Flags
promise
protected abstract java.lang.Object execute(com.oracle.truffle.api.object.DynamicObject, int, java.lang.Object);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;ILjava/lang/Object;)Ljava/lang/Object;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
promise
promiseState
promiseResult
protected static java.lang.Object fulfilled(com.oracle.truffle.api.object.DynamicObject, int, java.lang.Object);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;ILjava/lang/Object;)Ljava/lang/Object;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 promise Lcom/oracle/truffle/api/object/DynamicObject;
0 1 1 promiseState I
0 1 2 promiseResult Ljava/lang/Object;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization(guards = {"promiseState == FULFILLED"})
MethodParameters:
Name Flags
promise
promiseState
promiseResult
protected static java.lang.Object rejected(com.oracle.truffle.api.object.DynamicObject, int, java.lang.Object);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;ILjava/lang/Object;)Ljava/lang/Object;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic com.oracle.truffle.js.runtime.UserScriptException.create:(Ljava/lang/Object;)Lcom/oracle/truffle/js/runtime/UserScriptException;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 promise Lcom/oracle/truffle/api/object/DynamicObject;
0 1 1 promiseState I
0 1 2 promiseResult Ljava/lang/Object;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization(guards = {"promiseState == REJECTED"})
MethodParameters:
Name Flags
promise
promiseState
promiseResult
protected static java.lang.Object pending(com.oracle.truffle.api.object.DynamicObject, int, java.lang.Object);
descriptor: (Lcom/oracle/truffle/api/object/DynamicObject;ILjava/lang/Object;)Ljava/lang/Object;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: ldc "Attempt to unwrap pending promise"
invokestatic com.oracle.truffle.js.runtime.Errors.createTypeError:(Ljava/lang/String;)Lcom/oracle/truffle/js/runtime/JSException;
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 promise Lcom/oracle/truffle/api/object/DynamicObject;
0 1 1 promiseState I
0 1 2 promiseResult Ljava/lang/Object;
RuntimeVisibleAnnotations:
com.oracle.truffle.api.dsl.Specialization(guards = {"promiseState == PENDING"})
MethodParameters:
Name Flags
promise
promiseState
promiseResult
public static com.oracle.truffle.js.nodes.promise.UnwrapPromiseNode getUncached();
descriptor: ()Lcom/oracle/truffle/js/nodes/promise/UnwrapPromiseNode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.oracle.truffle.js.nodes.promise.UnwrapPromiseNode.UNCACHED:Lcom/oracle/truffle/js/nodes/promise/UnwrapPromiseNode;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "UnwrapPromiseNode.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
RuntimeInvisibleAnnotations:
com.oracle.truffle.api.dsl.ImportStatic(value = {Lcom/oracle/truffle/js/runtime/builtins/JSPromise;})