Home | History | Annotate | Download | only in src

Lines Matching refs:PROMISE

1346             return HandlerTable::PROMISE;
1350 // cause a promise rejection.
1399 if (prediction == HandlerTable::PROMISE) return CAUGHT_BY_PROMISE;
1805 void Isolate::PushPromise(Handle<JSObject> promise) {
1809 Handle<JSObject>::cast(global_handles()->Create(*promise));
1818 Handle<Object> global_promise = tltop->promise_on_stack_->promise();
1826 Handle<JSPromise> promise);
1830 // Recurse to the forwarding Promise, if any. This may be due to
1831 // - await reaction forwarding to the throwaway Promise, which has
1832 // a dependency edge to the outer Promise.
1834 // - Promise.all/Promise.race forwarding to a throwaway Promise, which
1835 // has a dependency edge to the generated outer Promise.
1836 // Otherwise, this is a real reject handler for the Promise.
1852 Handle<JSPromise> promise) {
1853 // If this promise was marked as being handled by a catch block
1855 if (promise->handled_hint()) return true;
1857 // If this Promise is subsumed by another Promise (a Promise resolved
1858 // with another Promise, or an intermediate, hidden, throwaway Promise
1859 // within async/await), then recurse on the outer Promise.
1860 // In this case, the dependency is one possible way that the Promise
1863 Handle<Object> outer_promise_obj = JSObject::GetDataProperty(promise, key);
1870 Handle<Object> queue(promise->reject_reactions(), isolate);
1871 Handle<Object> deferred_promise(promise->deferred_promise(), isolate);
1904 bool Isolate::PromiseHasUserDefinedRejectHandler(Handle<Object> promise) {
1905 if (!promise->IsJSPromise()) return false;
1907 this, Handle<JSPromise>::cast(promise));
1929 // Mark the inner promise as caught in the "synchronous case" so
1933 // returned, so the generated Promise has not yet been marked
1938 case HandlerTable::PROMISE:
1940 ? Handle<Object>::cast(promise_on_stack->promise())
1949 retval = promise_on_stack->promise();
3306 void Isolate::RunPromiseHook(PromiseHookType type, Handle<JSPromise> promise,
3308 if (debug()->is_active()) debug()->RunPromiseHook(type, promise, parent);
3310 promise_hook_(type, v8::Utils::PromiseToLocal(promise),
3319 void Isolate::ReportPromiseReject(Handle<JSObject> promise,
3328 v8::Utils::PromiseToLocal(promise), event, v8::Utils::ToLocal(value),