/external/v8/src/runtime/ |
D | runtime-promise.cc | 17 void PromiseRejectEvent(Isolate* isolate, Handle<JSPromise> promise, in PromiseRejectEvent() argument 20 isolate->RunPromiseHook(PromiseHookType::kResolve, promise, in PromiseRejectEvent() 28 if (!promise->has_handler()) { in PromiseRejectEvent() 29 isolate->ReportPromiseReject(Handle<JSObject>::cast(promise), value, in PromiseRejectEvent() 39 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION() 42 Handle<Object> rejected_promise = promise; in RUNTIME_FUNCTION() 50 isolate->debug()->NextAsyncTaskId(promise), 0); in RUNTIME_FUNCTION() 52 PromiseRejectEvent(isolate, promise, rejected_promise, value, true); in RUNTIME_FUNCTION() 59 CONVERT_ARG_HANDLE_CHECKED(JSPromise, promise, 0); in RUNTIME_FUNCTION() 61 isolate->ReportPromiseReject(Handle<JSObject>::cast(promise), value, in RUNTIME_FUNCTION() [all …]
|
/external/libcxx/test/std/thread/futures/futures.promise/ |
D | copy_ctor.fail.cpp | 26 std::promise<int> p0; in main() 27 … std::promise<int> p(p0); // expected-error {{call to deleted constructor of 'std::promise<int>'}} in main() 30 std::promise<int &> p0; in main() 31 …std::promise<int &> p(p0); // expected-error {{call to deleted constructor of 'std::promise<int &>… in main() 34 std::promise<void> p0; in main() 35 …std::promise<void> p(p0); // expected-error {{call to deleted constructor of 'std::promise<void>'}} in main() 39 std::promise<int> p0; in main() 40 …std::promise<int> p(p0); // expected-error {{calling a private constructor of class 'std::__1::pro… in main() 43 std::promise<int &> p0; in main() 44 …std::promise<int &> p(p0); // expected-error {{calling a private constructor of class 'std::__1::p… in main() [all …]
|
D | alloc_ctor.pass.cpp | 30 std::promise<int> p(std::allocator_arg, test_allocator<int>(42)); in main() 38 std::promise<int&> p(std::allocator_arg, test_allocator<int>(42)); in main() 46 std::promise<void> p(std::allocator_arg, test_allocator<void>(42)); in main() 55 std::promise<int> p(std::allocator_arg, bare_allocator<void>()); in main() 60 std::promise<int&> p(std::allocator_arg, bare_allocator<void>()); in main() 65 std::promise<void> p(std::allocator_arg, bare_allocator<void>()); in main() 71 std::promise<int> p(std::allocator_arg, min_allocator<void>()); in main() 76 std::promise<int&> p(std::allocator_arg, min_allocator<void>()); in main() 81 std::promise<void> p(std::allocator_arg, min_allocator<void>()); in main()
|
D | copy_assign.fail.cpp | 26 std::promise<int> p0, p; in main() 30 std::promise<int&> p0, p; in main() 34 std::promise<void> p0, p; in main() 39 std::promise<int> p0, p; in main() 43 std::promise<int&> p0, p; in main() 47 std::promise<void> p0, p; in main()
|
D | swap.pass.cpp | 30 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); in main() 31 std::promise<int> p(std::allocator_arg, test_allocator<int>()); in main() 44 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); in main() 45 std::promise<int> p(std::allocator_arg, test_allocator<int>()); in main() 58 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); in main() 59 std::promise<int> p; in main() 72 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); in main() 73 std::promise<int> p; in main()
|
D | dtor.pass.cpp | 30 std::promise<T> p; in main() 41 std::promise<T> p; in main() 62 std::promise<T> p; in main() 73 std::promise<T> p; in main() 93 std::promise<T> p; in main() 105 std::promise<T> p; in main()
|
D | move_ctor.pass.cpp | 29 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); in main() 30 std::promise<int> p(std::move(p0)); in main() 50 std::promise<int&> p0(std::allocator_arg, test_allocator<int>()); in main() 51 std::promise<int&> p(std::move(p0)); in main() 71 std::promise<void> p0(std::allocator_arg, test_allocator<void>()); in main() 72 std::promise<void> p(std::move(p0)); in main()
|
D | move_assign.pass.cpp | 29 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); in main() 30 std::promise<int> p(std::allocator_arg, test_allocator<int>()); in main() 52 std::promise<int&> p0(std::allocator_arg, test_allocator<int>()); in main() 53 std::promise<int&> p(std::allocator_arg, test_allocator<int>()); in main() 75 std::promise<void> p0(std::allocator_arg, test_allocator<void>()); in main() 76 std::promise<void> p(std::allocator_arg, test_allocator<void>()); in main()
|
D | get_future.pass.cpp | 27 std::promise<double> p; in main() 34 std::promise<double> p; in main() 47 std::promise<double> p; in main() 48 std::promise<double> p0 = std::move(p); in main()
|
/external/v8/src/builtins/ |
D | builtins-promise.cc | 30 void PromiseBuiltinsAssembler::PromiseInit(Node* promise) { in PromiseInit() argument 31 StoreObjectField(promise, JSPromise::kStatusOffset, in PromiseInit() 33 StoreObjectField(promise, JSPromise::kFlagsOffset, SmiConstant(0)); in PromiseInit() 78 Node* promise, Node* debug_event, Node* native_context) { in CreatePromiseResolvingFunctions() argument 80 promise, debug_event, native_context); in CreatePromiseResolvingFunctions() 129 Node* promise = AllocateJSPromise(context); in NewPromiseCapability() local 130 PromiseInit(promise); in NewPromiseCapability() 132 capability, JSPromiseCapability::kPromiseOffset, promise); in NewPromiseCapability() 138 CreatePromiseResolvingFunctions(promise, debug_event, native_context); in NewPromiseCapability() 143 CallRuntime(Runtime::kPromiseHookInit, context, promise, in NewPromiseCapability() [all …]
|
D | builtins-promise.h | 72 Node* promise, Node* native_context, Node* promise_context); 74 Node* PromiseHasHandler(Node* promise); 76 Node* CreatePromiseResolvingFunctionsContext(Node* promise, Node* debug_event, 86 void PromiseInit(Node* promise); 95 void PromiseSetHasHandler(Node* promise); 96 void PromiseSetHandledHint(Node* promise); 98 void AppendPromiseCallback(int offset, compiler::Node* promise, 101 Node* InternalPromiseThen(Node* context, Node* promise, Node* on_resolve, 104 Node* InternalPerformPromiseThen(Node* context, Node* promise, 110 void InternalResolvePromise(Node* context, Node* promise, Node* result); [all …]
|
D | builtins-async-iterator.cc | 33 typedef std::function<void(Node* const context, Node* const promise, 96 Node* const promise = AllocateAndInitJSPromise(context); in Generate_AsyncFromSyncIteratorMethod() local 116 if_method_undefined(native_context, promise, &reject_promise); in Generate_AsyncFromSyncIteratorMethod() 143 InternalPerformPromiseThen(context, wrapper, on_fulfilled, undefined, promise, in Generate_AsyncFromSyncIteratorMethod() 145 Return(promise); in Generate_AsyncFromSyncIteratorMethod() 150 InternalPromiseReject(context, promise, exception, TrueConstant()); in Generate_AsyncFromSyncIteratorMethod() 152 Return(promise); in Generate_AsyncFromSyncIteratorMethod() 276 Node* const promise, Label* if_exception) { in TF_BUILTIN() argument 286 PromiseFulfill(context, promise, iter_result, v8::Promise::kFulfilled); in TF_BUILTIN() 287 Return(promise); in TF_BUILTIN() [all …]
|
D | builtins-async-function.cc | 167 Node* const promise = AllocateAndInitJSPromise(context); in TF_BUILTIN() local 173 Return(promise); in TF_BUILTIN() 182 CallRuntime(Runtime::kDebugAsyncFunctionPromiseCreated, context, promise); in TF_BUILTIN() 183 Return(promise); in TF_BUILTIN() 189 Node* const promise = Parameter(1); in TF_BUILTIN() local 203 Return(promise); in TF_BUILTIN()
|
/external/libcxx/test/std/thread/futures/futures.unique_future/ |
D | get.pass.cpp | 26 void func1(std::promise<int> p) in func1() 32 void func2(std::promise<int> p) in func2() 40 void func3(std::promise<int&> p) in func3() 47 void func4(std::promise<int&> p) in func4() 53 void func5(std::promise<void> p) in func5() 59 void func6(std::promise<void> p) in func6() 70 std::promise<T> p; in main() 79 std::promise<T> p; in main() 99 std::promise<T> p; in main() 108 std::promise<T> p; in main() [all …]
|
D | wait.pass.cpp | 22 void func1(std::promise<int> p) in func1() 30 void func3(std::promise<int&> p) in func3() 37 void func5(std::promise<void> p) in func5() 49 std::promise<T> p; in main() 63 std::promise<T> p; in main() 77 std::promise<T> p; in main()
|
D | wait_for.pass.cpp | 26 void func1(std::promise<int> p) in func1() 34 void func3(std::promise<int&> p) in func3() 41 void func5(std::promise<void> p) in func5() 52 std::promise<T> p; in main() 68 std::promise<T> p; in main() 84 std::promise<T> p; in main()
|
D | wait_until.pass.cpp | 40 void func1(std::promise<int> p) in func1() 49 void func3(std::promise<int&> p) in func3() 57 void func5(std::promise<void> p) in func5() 69 std::promise<T> p; in main() 90 std::promise<T> p; in main() 111 std::promise<T> p; in main()
|
/external/libcxx/test/std/thread/futures/futures.shared_future/ |
D | get.pass.cpp | 26 void func1(std::promise<int> p) in func1() 32 void func2(std::promise<int> p) in func2() 40 void func3(std::promise<int&> p) in func3() 47 void func4(std::promise<int&> p) in func4() 53 void func5(std::promise<void> p) in func5() 59 void func6(std::promise<void> p) in func6() 70 std::promise<T> p; in main() 79 std::promise<T> p; in main() 99 std::promise<T> p; in main() 108 std::promise<T> p; in main() [all …]
|
D | wait.pass.cpp | 22 void func1(std::promise<int> p) in func1() 30 void func3(std::promise<int&> p) in func3() 37 void func5(std::promise<void> p) in func5() 49 std::promise<T> p; in main() 63 std::promise<T> p; in main() 77 std::promise<T> p; in main()
|
D | wait_for.pass.cpp | 26 void func1(std::promise<int> p) in func1() 34 void func3(std::promise<int&> p) in func3() 41 void func5(std::promise<void> p) in func5() 52 std::promise<T> p; in main() 68 std::promise<T> p; in main() 84 std::promise<T> p; in main()
|
D | wait_until.pass.cpp | 40 void func1(std::promise<int> p) in func1() 49 void func3(std::promise<int&> p) in func3() 57 void func5(std::promise<void> p) in func5() 69 std::promise<T> p; in main() 90 std::promise<T> p; in main() 111 std::promise<T> p; in main()
|
/external/libcxx/include/ |
D | future | 59 class promise 62 promise(); 64 promise(allocator_arg_t, const Allocator& a); 65 promise(promise&& rhs) noexcept; 66 promise(const promise& rhs) = delete; 67 ~promise(); 70 promise& operator=(promise&& rhs) noexcept; 71 promise& operator=(const promise& rhs) = delete; 72 void swap(promise& other) noexcept; 89 class promise<R&> [all …]
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/ |
D | promise.pass.cpp | 51 assert(&h.promise() == this); in do_runtime_test() 52 assert(&h2.promise() == this); in do_runtime_test() 53 assert(&h3.promise() == this); in do_runtime_test() 69 ASSERT_SAME_TYPE(decltype(H.promise()), Promise&); in do_test() 70 LIBCPP_ASSERT_NOT_NOEXCEPT(H.promise()); in do_test() 74 ASSERT_SAME_TYPE(decltype(CH.promise()), Promise&); in do_test() 75 LIBCPP_ASSERT_NOT_NOEXCEPT(CH.promise()); in do_test()
|
/external/libcxx/src/ |
D | future.cpp | 215 promise<void>::promise() in promise() function in promise 220 promise<void>::~promise() in ~promise() 235 promise<void>::get_future() in get_future() 245 promise<void>::set_value() in set_value() 255 promise<void>::set_exception(exception_ptr __p) in set_exception() 265 promise<void>::set_value_at_thread_exit() in set_value_at_thread_exit() 275 promise<void>::set_exception_at_thread_exit(exception_ptr __p) in set_exception_at_thread_exit()
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/ |
D | multishot_func.pass.cpp | 39 h.promise().I = &I; in operator ()() 41 R result = h.promise().result; in operator ()() 73 func(promise_type *promise) in func() 74 : h(coroutine_handle<promise_type>::from_promise(*promise)) {} in func()
|