5#ifndef V8_OBJECTS_JS_PROMISE_INL_H_
6#define V8_OBJECTS_JS_PROMISE_INL_H_
20#include "torque-generated/src/objects/js-promise-tq-inl.inc"
24BOOL_ACCESSORS(JSPromise, flags, has_handler, HasHandlerBit::kShift)
28uint32_t
JSPromise::GetNextAsyncTaskId(uint32_t async_task_id) {
31 async_task_id &= AsyncTaskIdBits::kMax;
32 }
while (async_task_id == kInvalidAsyncTaskId);
41 return AsyncTaskIdBits::decode(
flags());
45 set_flags(AsyncTaskIdBits::update(
flags(),
id));
50 return reactions_or_result();
55 return reactions_or_result();
Tagged< Object > reactions() const
uint32_t async_task_id() const
Tagged< Object > result() const
bool has_async_task_id() const
static constexpr uint32_t kInvalidAsyncTaskId
void set_async_task_id(uint32_t id)
V8_EXPORT_PRIVATE Promise::PromiseState status() const
#define BOOL_ACCESSORS(holder, field, name, offset)
#define TQ_OBJECT_CONSTRUCTORS_IMPL(Type)
#define DCHECK_NE(v1, v2)
#define DCHECK_EQ(v1, v2)