Lines Matching refs:promise
5 #include 'src/builtins/builtins-promise.h'
6 #include 'src/builtins/builtins-promise-gen.h'
20 namespace promise {
24 macro PromiseHasHandler(promise: JSPromise): bool {
25 return promise.HasHandler();
29 macro PromiseInit(promise: JSPromise): void {
30 promise.reactions_or_result = kZero;
31 promise.flags = SmiTag(JSPromiseFlags{
37 promise_internal::ZeroOutEmbedderOffsets(promise);
46 const promise = UnsafeCast<JSPromise>(promiseHeapObject);
47 promise.properties_or_hash = kEmptyFixedArray;
48 promise.elements = kEmptyFixedArray;
49 promise.reactions_or_result = kZero;
50 promise.flags = SmiTag(JSPromiseFlags{
56 return promise;
93 // These allocate and initialize a promise with pending state and
96 // This uses the given parent as the parent promise for the promise
109 // This uses undefined as the parent promise for the promise init
116 // This allocates and initializes a promise with the given state and