/external/v8/src/runtime/ |
H A D | runtime-promise.cc | 17 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 D | runtime-debug.cc | 248 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 D | cxx-friends.h | 12 template<typename> class promise { class in namespace:PR12585
|
/external/libcxx/src/ |
H A D | future.cpp | 48 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 D | multishot_func.pass.cpp | 39 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 D | oneshot_func.pass.cpp | 34 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 D | builtins-async-function.cc | 100 // 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 D | builtins-async-iterator.cc | 33 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 D | builtins-promise.cc | 5 #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 D | coroutines.cpp | 57 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 D | MockResponse.java | 236 public MockResponse withPush(PushPromise promise) { argument 237 this.promises.add(promise);
|
/external/v8/src/debug/ |
H A D | debug-interface.h | 177 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 D | debug.cc | 1640 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 D | debug.js | 899 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 D | v8-runtime-agent-impl.cc | 80 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 D | v8-debugger.cc | 612 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 D | accessors.cc | 953 FrameFunctionIterator(Isolate* isolate, const DisallowHeapAllocation& promise) argument
|
H A D | isolate.cc | 1350 // 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 D | api.cc | 3798 "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 D | scopes.h | 909 Variable* promise = nullptr; member in struct:v8::internal::DeclarationScope::RareData 915 kPromise = offsetof(RareData, promise)
|
/external/v8/src/wasm/ |
H A D | wasm-js.cc | 194 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 D | wasm-module.cc | 2639 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 D | bytecode-generator.cc | 2038 Register promise = args[1]; local 2047 ->StoreAccumulatorInRegister(promise) 2051 .LoadAccumulatorWithRegister(promise);
|
/external/v8/src/parsing/ |
H A D | parser.cc | 2995 // .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 D | v8.h | 3751 * 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...] |