Home
last modified time | relevance | path

Searched refs:promise (Results 1 – 25 of 111) sorted by relevance

12345

/external/v8/src/
Dpromise.js43 var promise = PromiseInit(this);
45 %DebugPushPromise(promise);
46 resolver(function(x) { PromiseResolve(promise, x) },
47 function(r) { PromiseReject(promise, r) });
49 PromiseReject(promise, e);
57 function PromiseSet(promise, status, value, onResolve, onReject) { argument
58 SET_PRIVATE(promise, promiseStatus, status);
59 SET_PRIVATE(promise, promiseValue, value);
60 SET_PRIVATE(promise, promiseOnResolve, onResolve);
61 SET_PRIVATE(promise, promiseOnReject, onReject);
[all …]
/external/v8/test/mjsunit/es6/debug-promises/
Devents.js13 function updatePromise(promise, parentPromise, status, value) { argument
16 if (result[i].promise === promise) {
30 assertTrue(event_data.promise().isPromise());
33 assertEquals("pending", event_data.promise().status());
34 result.push({ promise: event_data.promise().value(), status: 0 }); property
38 updatePromise(event_data.promise().value(),
45 updatePromise(event_data.promise().value(),
80 assertAsync(result[0].promise === p1, "result[0].promise");
90 assertAsync(result[2].promise === p2, "result[2].promise");
92 assertAsync(result[3].promise === p3, "result[3].promise");
[all …]
/external/v8/test/mjsunit/es6/
Dpromises.js385 var p1 = deferred.promise
398 var p1 = deferred.promise
411 var p1 = deferred.promise
424 var p1 = deferred.promise
437 var p1 = deferred.promise
449 var p1 = deferred.promise
461 var p1 = deferred.promise
474 var p1 = deferred.promise
487 var p1 = deferred.promise
500 var p1 = deferred.promise
[all …]
/external/libcxx/test/std/thread/futures/futures.shared_future/
Dget.pass.cpp23 void func1(std::promise<int> p) in func1()
29 void func2(std::promise<int> p) in func2()
37 void func3(std::promise<int&> p) in func3()
44 void func4(std::promise<int&> p) in func4()
50 void func5(std::promise<void> p) in func5()
56 void func6(std::promise<void> p) in func6()
67 std::promise<T> p; in main()
75 std::promise<T> p; in main()
94 std::promise<T> p; in main()
102 std::promise<T> p; in main()
[all …]
Dwait.pass.cpp21 void func1(std::promise<int> p) in func1()
29 void func3(std::promise<int&> p) in func3()
36 void func5(std::promise<void> p) in func5()
48 std::promise<T> p; in main()
62 std::promise<T> p; in main()
76 std::promise<T> p; in main()
Dwait_for.pass.cpp25 void func1(std::promise<int> p) in func1()
33 void func3(std::promise<int&> p) in func3()
40 void func5(std::promise<void> p) in func5()
51 std::promise<T> p; in main()
67 std::promise<T> p; in main()
83 std::promise<T> p; in main()
Dwait_until.pass.cpp39 void func1(std::promise<int> p) in func1()
48 void func3(std::promise<int&> p) in func3()
56 void func5(std::promise<void> p) in func5()
68 std::promise<T> p; in main()
89 std::promise<T> p; in main()
110 std::promise<T> p; in main()
/external/libcxx/test/std/thread/futures/futures.unique_future/
Dget.pass.cpp23 void func1(std::promise<int> p) in func1()
29 void func2(std::promise<int> p) in func2()
37 void func3(std::promise<int&> p) in func3()
44 void func4(std::promise<int&> p) in func4()
50 void func5(std::promise<void> p) in func5()
56 void func6(std::promise<void> p) in func6()
67 std::promise<T> p; in main()
75 std::promise<T> p; in main()
94 std::promise<T> p; in main()
102 std::promise<T> p; in main()
[all …]
Dwait.pass.cpp21 void func1(std::promise<int> p) in func1()
29 void func3(std::promise<int&> p) in func3()
36 void func5(std::promise<void> p) in func5()
48 std::promise<T> p; in main()
62 std::promise<T> p; in main()
76 std::promise<T> p; in main()
Dwait_for.pass.cpp25 void func1(std::promise<int> p) in func1()
33 void func3(std::promise<int&> p) in func3()
40 void func5(std::promise<void> p) in func5()
51 std::promise<T> p; in main()
67 std::promise<T> p; in main()
83 std::promise<T> p; in main()
Dwait_until.pass.cpp39 void func1(std::promise<int> p) in func1()
48 void func3(std::promise<int&> p) in func3()
56 void func5(std::promise<void> p) in func5()
68 std::promise<T> p; in main()
89 std::promise<T> p; in main()
110 std::promise<T> p; in main()
/external/libcxx/test/std/thread/futures/futures.promise/
Dalloc_ctor.pass.cpp29 std::promise<int> p(std::allocator_arg, test_allocator<int>()); in main()
37 std::promise<int&> p(std::allocator_arg, test_allocator<int>()); in main()
45 std::promise<void> p(std::allocator_arg, test_allocator<void>()); in main()
54 std::promise<int> p(std::allocator_arg, bare_allocator<void>()); in main()
59 std::promise<int&> p(std::allocator_arg, bare_allocator<void>()); in main()
64 std::promise<void> p(std::allocator_arg, bare_allocator<void>()); in main()
70 std::promise<int> p(std::allocator_arg, min_allocator<void>()); in main()
75 std::promise<int&> p(std::allocator_arg, min_allocator<void>()); in main()
80 std::promise<void> p(std::allocator_arg, min_allocator<void>()); in main()
Dswap.pass.cpp29 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()
43 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); in main()
44 std::promise<int> p(std::allocator_arg, test_allocator<int>()); in main()
57 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); in main()
58 std::promise<int> p; in main()
71 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); in main()
72 std::promise<int> p; in main()
Dmove_ctor.pass.cpp28 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); in main()
29 std::promise<int> p(std::move(p0)); in main()
47 std::promise<int&> p0(std::allocator_arg, test_allocator<int>()); in main()
48 std::promise<int&> p(std::move(p0)); in main()
66 std::promise<void> p0(std::allocator_arg, test_allocator<void>()); in main()
67 std::promise<void> p(std::move(p0)); in main()
Ddtor.pass.cpp27 std::promise<T> p; in main()
37 std::promise<T> p; in main()
56 std::promise<T> p; in main()
66 std::promise<T> p; in main()
84 std::promise<T> p; in main()
95 std::promise<T> p; in main()
Dcopy_ctor.fail.cpp25 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); in main()
26 std::promise<int> p(p0); in main()
44 std::promise<int&> p0(std::allocator_arg, test_allocator<int>()); in main()
45 std::promise<int&> p(p0); in main()
63 std::promise<void> p0(std::allocator_arg, test_allocator<void>()); in main()
64 std::promise<void> p(p0); in main()
Dmove_assign.pass.cpp28 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); in main()
29 std::promise<int> p(std::allocator_arg, test_allocator<int>()); in main()
49 std::promise<int&> p0(std::allocator_arg, test_allocator<int>()); in main()
50 std::promise<int&> p(std::allocator_arg, test_allocator<int>()); in main()
70 std::promise<void> p0(std::allocator_arg, test_allocator<void>()); in main()
71 std::promise<void> p(std::allocator_arg, test_allocator<void>()); in main()
Dcopy_assign.fail.cpp25 std::promise<int> p0(std::allocator_arg, test_allocator<int>()); in main()
26 std::promise<int> p(std::allocator_arg, test_allocator<int>()); in main()
46 std::promise<int&> p0(std::allocator_arg, test_allocator<int>()); in main()
47 std::promise<int&> p(std::allocator_arg, test_allocator<int>()); in main()
67 std::promise<void> p0(std::allocator_arg, test_allocator<void>()); in main()
68 std::promise<void> p(std::allocator_arg, test_allocator<void>()); in main()
Dget_future.pass.cpp24 std::promise<double> p; in main()
30 std::promise<double> p; in main()
43 std::promise<double> p; in main()
44 std::promise<double> p0 = std::move(p); in main()
Duses_allocator.pass.cpp25 static_assert((std::uses_allocator<std::promise<int>, test_allocator<int> >::value), ""); in main()
26 static_assert((std::uses_allocator<std::promise<int&>, test_allocator<int> >::value), ""); in main()
27 static_assert((std::uses_allocator<std::promise<void>, test_allocator<void> >::value), ""); in main()
/external/libcxx/include/
Dfuture59 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/src/
Dfuture.cpp220 promise<void>::promise() in promise() function in promise
225 promise<void>::~promise() in ~promise()
238 promise<void>::get_future() in get_future()
248 promise<void>::set_value() in set_value()
258 promise<void>::set_exception(exception_ptr __p) in set_exception()
268 promise<void>::set_value_at_thread_exit() in set_value_at_thread_exit()
278 promise<void>::set_exception_at_thread_exit(exception_ptr __p) in set_exception_at_thread_exit()
/external/v8/test/webkit/fast/js/
DPromise-onFulfilled-deep.js30 var promise = new Promise(function (r) { resolve = r; }); variable
33promise = promise.then(function (value) { return value + 1; }, function () { testFailed('rejected'…
36 promise.then(function (value) {
DPromise-onRejected-deep.js30 var promise = new Promise(function (_, r) { reject = r; }); variable
33promise = promise.then(function (value) { testFailed('fulfilled'); throw value + 1; }, function (v…
36 promise.catch(function (value) {
DPromise-resolve-with-itself.js31 var promise = new Promise(function(r) { resolve = r; }); variable
32 promise.then(function () {
40 resolve(promise);

12345