Lines Matching refs:promise
10 #include "src/objects/js-promise.h"
39 // Push the promise for the {async_function_object} back onto the catch
47 TNode<JSPromise> promise = LoadObjectField<JSPromise>(
49 CallRuntime(Runtime::kDebugPushPromise, context, promise);
105 // Allocate and initialize the promise.
106 TNode<JSPromise> promise = NewJSPromise(context);
142 async_function_object, JSAsyncFunctionObject::kPromiseOffset, promise);
145 // promise on the stack to get the catch prediction right, even before we
152 CallRuntime(Runtime::kDebugPushPromise, context, promise);
161 TNode<JSPromise> promise = LoadObjectField<JSPromise>(
164 // Reject the {promise} for the given {reason}, disabling the
167 CallBuiltin(Builtin::kRejectPromise, context, promise, reason,
172 Return(promise);
176 Return(promise);
184 TNode<JSPromise> promise = LoadObjectField<JSPromise>(
187 CallBuiltin(Builtin::kResolvePromise, context, promise, value);
191 Return(promise);
195 Return(promise);
199 // the promise instead of the result of RejectPromise or ResolvePromise
202 auto promise = Parameter<JSPromise>(Descriptor::kPromise);
203 Return(promise);
250 // Return outer promise to avoid adding an load of the outer promise before