Searched defs:promise (Results 1 - 25 of 25) sorted by relevance

/external/v8/src/runtime/
H A Druntime-promise.cc17 void PromiseRejectEvent(Isolate* isolate, Handle<JSPromise> promise, argument
20 isolate->RunPromiseHook(PromiseHookType::kResolve, promise,
28 if (!promise->has_handler()) {
29 isolate->ReportPromiseReject(Handle<JSObject>::cast(promise), value,
39 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0);
42 Handle<Object> rejected_promise = promise;
50 isolate->debug()->NextAsyncTaskId(promise), 0);
52 PromiseRejectEvent(isolate, promise, rejected_promise, value, true);
59 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0);
61 isolate->ReportPromiseReject(Handle<JSObject>::cast(promise), valu
[all...]
H A Druntime-debug.cc248 Handle<JSPromise> promise = Handle<JSPromise>::cast(object); local
249 const char* status = JSPromise::Status(promise->status());
257 Handle<Object> value_obj(promise->result(), isolate);
1841 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0);
1842 isolate->PushPromise(promise);
1857 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0);
1858 isolate->PushPromise(promise);
1859 int id = isolate->debug()->NextAsyncTaskId(promise);
1862 JSObject::SetProperty(promise, async_stack_id_symbol,
1882 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise,
[all...]
/external/clang/test/PCH/
H A Dcxx-friends.h12 template<typename> class promise { class in namespace:PR12585
/external/libcxx/src/
H A Dfuture.cpp48 return string("The associated promise has been destructed prior "
52 "the promise or packaged_task.");
54 return string("The state of the promise has already been set.");
215 promise<void>::promise() function in class:promise
220 promise<void>::~promise()
235 promise<void>::get_future()
245 promise<void>::set_value()
255 promise<voi
[all...]
/external/libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/
H A Dmultishot_func.pass.cpp39 h.promise().I = &I;
41 R result = h.promise().result;
73 func(promise_type *promise) argument
74 : h(coroutine_handle<promise_type>::from_promise(*promise)) {}
H A Doneshot_func.pass.cpp34 R result = h.promise().result;
64 func(promise_type *promise) argument
65 : h(coroutine_handle<promise_type>::from_promise(*promise)) {}
/external/v8/src/builtins/
H A Dbuiltins-async-function.cc100 // yield AsyncFunctionAwait{Caught,Uncaught}(.generator, awaited, .promise)
102 // for the asyncContext, and .promise is the larger promise under
119 // the awaited promise if it is already a promise. Reuse is non-spec compliant
167 Node* const promise = AllocateAndInitJSPromise(context); local
173 Return(promise);
182 CallRuntime(Runtime::kDebugAsyncFunctionPromiseCreated, context, promise);
183 Return(promise);
189 Node* const promise local
[all...]
H A Dbuiltins-async-iterator.cc33 typedef std::function<void(Node* const context, Node* const promise,
96 Node* const promise = AllocateAndInitJSPromise(context); local
116 if_method_undefined(native_context, promise, &reject_promise);
143 InternalPerformPromiseThen(context, wrapper, on_fulfilled, undefined, promise,
145 Return(promise);
150 InternalPromiseReject(context, promise, exception, TrueConstant());
152 Return(promise);
276 Node* const promise, Label* if_exception) {
286 PromiseFulfill(context, promise, iter_result, v8::Promise::kFulfilled);
287 Return(promise);
[all...]
H A Dbuiltins-promise.cc5 #include "src/builtins/builtins-promise.h"
30 void PromiseBuiltinsAssembler::PromiseInit(Node* promise) { argument
31 StoreObjectField(promise, JSPromise::kStatusOffset,
33 StoreObjectField(promise, JSPromise::kFlagsOffset, SmiConstant(0));
78 Node* promise, Node* debug_event, Node* native_context) {
80 promise, debug_event, native_context);
125 Node* promise = AllocateJSPromise(context); local
126 PromiseInit(promise);
128 capability, JSPromiseCapability::kPromiseOffset, promise);
134 CreatePromiseResolvingFunctions(promise, debug_even
77 CreatePromiseResolvingFunctions( Node* promise, Node* debug_event, Node* native_context) argument
156 Node* promise = ConstructJS(CodeFactory::Construct(isolate()), context, local
210 CreatePromiseResolvingFunctionsContext( Node* promise, Node* debug_event, Node* native_context) argument
261 PromiseHasHandler(Node* promise) argument
266 PromiseSetHasHandler(Node* promise) argument
273 PromiseSetHandledHint(Node* promise) argument
334 AppendPromiseCallback(int offset, Node* promise, Node* value) argument
360 InternalPromiseThen(Node* context, Node* promise, Node* on_resolve, Node* on_reject) argument
418 InternalPerformPromiseThen( Node* context, Node* promise, Node* on_resolve, Node* on_reject, Node* deferred_promise, Node* deferred_on_resolve, Node* deferred_on_reject) argument
615 BranchIfFastPath(Node* context, Node* promise, Label* if_isunmodified, Label* if_ismodified) argument
625 BranchIfFastPath(Node* native_context, Node* promise_fun, Node* promise, Label* if_isunmodified, Label* if_ismodified) argument
670 InternalResolvePromise(Node* context, Node* promise, Node* result) argument
839 PromiseFulfill( Node* context, Node* promise, Node* result, v8::Promise::PromiseState status) argument
937 InternalPromiseReject(Node* context, Node* promise, Node* value, Node* debug_event) argument
952 InternalPromiseReject(Node* context, Node* promise, Node* value, bool debug_event) argument
1005 Node* const promise = local
1163 Node* const promise = Parameter(0); local
1195 Node* const promise = local
1206 Node* const promise = Parameter(1); local
1217 Node* const promise = Parameter(Descriptor::kPromise); local
1355 Node* const promise = Parameter(0); local
1530 Node* const promise = AllocateAndSetJSPromise( local
1549 Node* const promise = local
1556 Node* const promise = Parameter(1); local
1632 Node* const promise = AllocateAndInitJSPromise(context); local
1693 Node* const promise = AllocateAndInitJSPromise(context); local
1715 Node* const promise = Parameter(0); local
[all...]
/external/clang/test/SemaCXX/
H A Dcoroutines.cpp57 struct promise; // expected-note 2{{forward declaration}}
58 template<typename ...T> struct std::coroutine_traits<void, T...> { using promise_type = promise; };
63 // expected-error@-2 {{incomplete definition of type 'promise'}}
71 struct promise { struct
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
H A DMockResponse.java236 public MockResponse withPush(PushPromise promise) { argument
237 this.promises.add(promise);
/external/v8/src/debug/
H A Ddebug-interface.h177 v8::Local<v8::Value> promise, bool is_uncaught) {
174 ExceptionThrown(v8::Local<v8::Context> paused_context, v8::Local<v8::Object> exec_state, v8::Local<v8::Value> exception, v8::Local<v8::Value> promise, bool is_uncaught) argument
H A Ddebug.cc1640 Handle<Object> promise) {
1645 promise };
1685 void Debug::OnPromiseReject(Handle<Object> promise, Handle<Object> value) { argument
1688 // Check whether the promise has been marked as having triggered a message.
1690 if (!promise->IsJSObject() ||
1691 JSReceiver::GetDataProperty(Handle<JSObject>::cast(promise), key)
1693 OnException(value, promise);
1736 void Debug::OnException(Handle<Object> exception, Handle<Object> promise) { argument
1748 if (promise->IsJSObject()) {
1749 Handle<JSObject> jspromise = Handle<JSObject>::cast(promise);
1638 MakeExceptionEvent(Handle<Object> exception, bool uncaught, Handle<Object> promise) argument
1870 GetReferenceAsyncTaskId(Isolate* isolate, Handle<JSPromise> promise) argument
1891 RunPromiseHook(PromiseHookType type, Handle<JSPromise> promise, Handle<Object> parent) argument
1916 NextAsyncTaskId(Handle<JSObject> promise) argument
2296 ExceptionThrown(v8::Local<v8::Context> paused_context, v8::Local<v8::Object> exec_state, v8::Local<v8::Value> exception, v8::Local<v8::Value> promise, bool is_uncaught) argument
[all...]
H A Ddebug.js899 function MakeExceptionEvent(break_id, exception, uncaught, promise) {
900 return new ExceptionEvent(break_id, exception, uncaught, promise);
904 function ExceptionEvent(break_id, exception, uncaught, promise) {
908 this.promise_ = promise;
927 ExceptionEvent.prototype.promise = function() {
/external/v8/src/inspector/
H A Dv8-runtime-agent-impl.cc80 v8::Local<v8::Promise> promise = local
92 if (promise->Then(context, thenCallbackFunction).IsEmpty()) {
100 if (promise->Catch(context, catchCallbackFunction).IsEmpty()) {
142 .setText("Uncaught (in promise)")
322 "Result of the evaluation is not a promise", m_session->contextGroupId(),
341 "Could not find promise with given id", m_session->contextGroupId(),
435 "Result of the function call is not a promise",
642 "Result of the script execution is not a promise",
H A Dv8-debugger.cc612 v8::Local<v8::Value> promise,
614 bool isPromiseRejection = promise->IsPromise();
633 // namespace of such ids, managed by src/js/promise.js.
847 // from V8 for promise events only.
609 ExceptionThrown(v8::Local<v8::Context> pausedContext, v8::Local<v8::Object> execState, v8::Local<v8::Value> exception, v8::Local<v8::Value> promise, bool isUncaught) argument
/external/v8/src/
H A Daccessors.cc953 FrameFunctionIterator(Isolate* isolate, const DisallowHeapAllocation& promise) argument
H A Disolate.cc1350 // cause a promise rejection.
1805 void Isolate::PushPromise(Handle<JSObject> promise) { argument
1809 Handle<JSObject>::cast(global_handles()->Create(*promise));
1818 Handle<Object> global_promise = tltop->promise_on_stack_->promise();
1826 Handle<JSPromise> 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;
1863 Handle<Object> outer_promise_obj = JSObject::GetDataProperty(promise, key);
1870 Handle<Object> queue(promise
1851 InternalPromiseHasUserDefinedRejectHandler(Isolate* isolate, Handle<JSPromise> promise) argument
1904 PromiseHasUserDefinedRejectHandler(Handle<Object> promise) argument
3306 RunPromiseHook(PromiseHookType type, Handle<JSPromise> promise, Handle<Object> parent) argument
3319 ReportPromiseReject(Handle<JSObject> promise, Handle<Object> value, v8::PromiseRejectEvent event) argument
[all...]
H A Dapi.cc3798 "Could not convert to promise");
3804 "Could not convert to promise resolver");
7356 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this); local
7357 return Local<Promise>::Cast(Utils::ToLocal(promise));
7447 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this); local
7448 i::Isolate* isolate = promise->GetIsolate();
7451 if (promise->IsJSPromise()) {
7452 i::Handle<i::JSPromise> js_promise = i::Handle<i::JSPromise>::cast(promise);
7459 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this); local
7460 i::Isolate* isolate = promise
7470 i::Handle<i::JSReceiver> promise = Utils::OpenHandle(this); local
[all...]
/external/v8/src/ast/
H A Dscopes.h909 Variable* promise = nullptr; member in struct:v8::internal::DeclarationScope::RareData
915 kPromise = offsetof(RareData, promise)
/external/v8/src/wasm/
H A Dwasm-js.cc194 i::Handle<i::JSPromise> promise = Utils::OpenHandle(*resolver->GetPromise()); local
195 i::wasm::AsyncCompile(i_isolate, promise, bytes);
360 i::Handle<i::JSPromise> promise = Utils::OpenHandle(*resolver->GetPromise()); local
364 i::wasm::AsyncInstantiate(i_isolate, promise,
373 i::wasm::AsyncCompileAndInstantiate(i_isolate, promise, bytes,
H A Dwasm-module.cc2639 Handle<JSPromise> promise) {
2641 v8::Utils::PromiseToLocal(promise).As<v8::Promise::Resolver>();
2647 void ResolvePromise(Isolate* isolate, Handle<JSPromise> promise, argument
2650 v8::Utils::PromiseToLocal(promise).As<v8::Promise::Resolver>();
2655 void wasm::AsyncCompile(Isolate* isolate, Handle<JSPromise> promise, argument
2661 RejectPromise(isolate, &thrower, promise);
2664 ResolvePromise(isolate, promise, module_object.ToHandleChecked());
2667 void wasm::AsyncInstantiate(Isolate* isolate, Handle<JSPromise> promise, argument
2674 RejectPromise(isolate, &thrower, promise);
2677 ResolvePromise(isolate, promise, instance_objec
2638 RejectPromise(Isolate* isolate, ErrorThrower* thrower, Handle<JSPromise> promise) argument
2680 AsyncCompileAndInstantiate(Isolate* isolate, Handle<JSPromise> promise, const ModuleWireBytes& bytes, MaybeHandle<JSReceiver> imports) argument
[all...]
/external/v8/src/interpreter/
H A Dbytecode-generator.cc2038 Register promise = args[1]; local
2047 ->StoreAccumulatorInRegister(promise)
2051 .LoadAccumulatorWithRegister(promise);
/external/v8/src/parsing/
H A Dparser.cc2995 // .promise = %AsyncFunctionPromiseCreate();
2999 // %RejectPromise(.promise, .catch);
3000 // return .promise;
3002 // %AsyncFunctionPromiseRelease(.promise);
3006 // .promise = %AsyncFunctionPromiseCreate();
3020 // catch (.catch) { return %RejectPromise(.promise, .catch), .promise }
3043 // finally { %AsyncFunctionPromiseRelease(.promise) }
3080 // %ResolvePromise(.promise, value), .promise
3110 Variable* promise = function_state_->promise_variable(); local
3860 Variable* promise = PromiseVariable(); local
[all...]
/external/v8/include/
H A Dv8.h3751 * State of the promise. Each value corresponds to one of the possible values
3759 * Create a new resolver, along with an associated promise in pending state.
3767 * Extract the associated promise.
3772 * Resolve/reject the associated promise with a given value.
3773 * Ignored if the promise is no longer pending.
3791 * Register a resolution/rejection handler with a promise.
3793 * an argument. If the promise is already resolved/rejected, the handler is
3807 * Returns true if the promise has at least one derived promise, and
5828 * PromiseHook with type kInit is called when a new promise i
5856 PromiseRejectMessage(Local<Promise> promise, PromiseRejectEvent event, Local<Value> value, Local<StackTrace> stack_trace) argument
[all...]

Completed in 707 milliseconds