Lines Matching refs:promise
20 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION()
23 Handle<Object> rejected_promise = promise; in RUNTIME_FUNCTION()
29 isolate->RunPromiseHook(PromiseHookType::kResolve, promise, in RUNTIME_FUNCTION()
34 if (!promise->has_handler()) { in RUNTIME_FUNCTION()
35 isolate->ReportPromiseReject(promise, value, in RUNTIME_FUNCTION()
44 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION()
46 isolate->ReportPromiseReject(promise, reason, in RUNTIME_FUNCTION()
54 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION()
56 isolate->ReportPromiseReject(promise, resolution, in RUNTIME_FUNCTION()
64 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION()
66 CHECK(!promise->has_handler()); in RUNTIME_FUNCTION()
67 isolate->ReportPromiseReject(promise, Handle<Object>(), in RUNTIME_FUNCTION()
104 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION()
106 return Smi::FromInt(promise->status()); in RUNTIME_FUNCTION()
112 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION()
113 return promise->result(); in RUNTIME_FUNCTION()
119 CONVERT_ARG_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION()
121 promise->set_has_handler(true); in RUNTIME_FUNCTION()
128 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION()
130 isolate->RunPromiseHook(PromiseHookType::kInit, promise, parent); in RUNTIME_FUNCTION()
157 Handle<JSPromise> promise = Handle<JSPromise>::cast(maybe_promise); in RUNTIME_FUNCTION() local
158 if (isolate->debug()->is_active()) isolate->PushPromise(promise); in RUNTIME_FUNCTION()
159 if (promise->IsJSPromise()) { in RUNTIME_FUNCTION()
160 isolate->RunPromiseHook(PromiseHookType::kBefore, promise, in RUNTIME_FUNCTION()
172 Handle<JSPromise> promise = Handle<JSPromise>::cast(maybe_promise); in RUNTIME_FUNCTION() local
174 if (promise->IsJSPromise()) { in RUNTIME_FUNCTION()
175 isolate->RunPromiseHook(PromiseHookType::kAfter, promise, in RUNTIME_FUNCTION()
184 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION()
187 return *JSPromise::Reject(promise, reason, in RUNTIME_FUNCTION()
194 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION()
198 JSPromise::Resolve(promise, resolution)); in RUNTIME_FUNCTION()