v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::JSPromise Class Reference

#include <js-promise.h>

Inheritance diagram for v8::internal::JSPromise:
Collaboration diagram for v8::internal::JSPromise:

Public Member Functions

Tagged< Objectresult () const
 
Tagged< Objectreactions () const
 
bool has_async_task_id () const
 
uint32_t async_task_id () const
 
void set_async_task_id (uint32_t id)
 
V8_EXPORT_PRIVATE Promise::PromiseState status () const
 
void set_status (Promise::PromiseState status)
 

Static Public Member Functions

static uint32_t GetNextAsyncTaskId (uint32_t current_async_task_id)
 
static const char * Status (Promise::PromiseState status)
 
static V8_EXPORT_PRIVATE Handle< ObjectFulfill (DirectHandle< JSPromise > promise, DirectHandle< Object > value)
 
static Handle< ObjectReject (DirectHandle< JSPromise > promise, DirectHandle< Object > reason, bool debug_event=true)
 
static V8_WARN_UNUSED_RESULT MaybeHandle< ObjectResolve (DirectHandle< JSPromise > promise, DirectHandle< Object > resolution)
 

Static Public Attributes

static constexpr uint32_t kInvalidAsyncTaskId = 0
 
static const int kSizeWithEmbedderFields
 

Static Private Member Functions

static Handle< ObjectTriggerPromiseReactions (Isolate *isolate, DirectHandle< Object > reactions, DirectHandle< Object > argument, PromiseReaction::Type type)
 

Detailed Description

Definition at line 31 of file js-promise.h.

Member Function Documentation

◆ async_task_id()

uint32_t v8::internal::JSPromise::async_task_id ( ) const
inline

Definition at line 40 of file js-promise-inl.h.

Here is the caller graph for this function:

◆ Fulfill()

Handle< Object > v8::internal::JSPromise::Fulfill ( DirectHandle< JSPromise > promise,
DirectHandle< Object > value )
static

Definition at line 5018 of file objects.cc.

Here is the call graph for this function:

◆ GetNextAsyncTaskId()

uint32_t v8::internal::JSPromise::GetNextAsyncTaskId ( uint32_t current_async_task_id)
inlinestatic

Definition at line 28 of file js-promise-inl.h.

Here is the caller graph for this function:

◆ has_async_task_id()

bool v8::internal::JSPromise::has_async_task_id ( ) const
inline

Definition at line 36 of file js-promise-inl.h.

Here is the call graph for this function:

◆ reactions()

Tagged< Object > v8::internal::JSPromise::reactions ( ) const
inline

Definition at line 53 of file js-promise-inl.h.

Here is the call graph for this function:

◆ Reject()

Handle< Object > v8::internal::JSPromise::Reject ( DirectHandle< JSPromise > promise,
DirectHandle< Object > reason,
bool debug_event = true )
static

Definition at line 5069 of file objects.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Resolve()

MaybeHandle< Object > v8::internal::JSPromise::Resolve ( DirectHandle< JSPromise > promise,
DirectHandle< Object > resolution )
static

Definition at line 5109 of file objects.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ result()

Tagged< Object > v8::internal::JSPromise::result ( ) const
inline

Definition at line 48 of file js-promise-inl.h.

Here is the call graph for this function:

◆ set_async_task_id()

void v8::internal::JSPromise::set_async_task_id ( uint32_t id)
inline

Definition at line 44 of file js-promise-inl.h.

◆ set_status()

void v8::internal::JSPromise::set_status ( Promise::PromiseState status)

Definition at line 4999 of file objects.cc.

Here is the call graph for this function:

◆ Status()

const char * v8::internal::JSPromise::Status ( Promise::PromiseState status)
static

Definition at line 5005 of file objects.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ status()

v8::Promise::PromiseState v8::internal::JSPromise::status ( ) const

Definition at line 4993 of file objects.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TriggerPromiseReactions()

Handle< Object > v8::internal::JSPromise::TriggerPromiseReactions ( Isolate * isolate,
DirectHandle< Object > reactions,
DirectHandle< Object > argument,
PromiseReaction::Type type )
staticprivate

Definition at line 5205 of file objects.cc.

Here is the call graph for this function:

Member Data Documentation

◆ kInvalidAsyncTaskId

uint32_t v8::internal::JSPromise::kInvalidAsyncTaskId = 0
staticconstexpr

Definition at line 34 of file js-promise.h.

◆ kSizeWithEmbedderFields

const int v8::internal::JSPromise::kSizeWithEmbedderFields
static
Initial value:
=
static constexpr int kEmbedderFieldCount
Definition v8-promise.h:118
constexpr int kEmbedderDataSlotSize
Definition globals.h:664

Definition at line 75 of file js-promise.h.


The documentation for this class was generated from the following files: