#include <microtask-queue.h>
Definition at line 27 of file microtask-queue.h.
◆ CallbackWithData
Initial value:
std::pair<MicrotasksCompletedCallbackWithData, void*>
Definition at line 152 of file microtask-queue.h.
◆ ~MicrotaskQueue()
v8::internal::MicrotaskQueue::~MicrotaskQueue |
( |
| ) |
|
|
overridevirtual |
◆ MicrotaskQueue()
v8::internal::MicrotaskQueue::MicrotaskQueue |
( |
| ) |
|
|
privatedefault |
◆ AddMicrotasksCompletedCallback()
Adds a callback to notify the embedder after microtasks were run. The callback is triggered by explicit RunMicrotasks call or automatic microtasks execution (see Isolate::SetMicrotasksPolicy).
Callback will trigger even if microtasks were attempted to run, but the microtasks queue was empty and no single microtask was actually executed.
Executing scripts inside the callback will not re-trigger microtasks and the callback.
Implements v8::MicrotaskQueue.
Definition at line 244 of file microtask-queue.cc.
◆ CallEnqueueMicrotask()
Address v8::internal::MicrotaskQueue::CallEnqueueMicrotask |
( |
Isolate * | isolate, |
|
|
intptr_t | microtask_queue_pointer, |
|
|
Address | raw_microtask ) |
|
static |
◆ capacity()
intptr_t v8::internal::MicrotaskQueue::capacity |
( |
| ) |
const |
|
inline |
◆ DecrementMicrotasksScopeDepth()
void v8::internal::MicrotaskQueue::DecrementMicrotasksScopeDepth |
( |
| ) |
|
|
inline |
◆ DecrementMicrotasksSuppressions()
void v8::internal::MicrotaskQueue::DecrementMicrotasksSuppressions |
( |
| ) |
|
|
inline |
◆ EnqueueMicrotask() [1/3]
void v8::internal::MicrotaskQueue::EnqueueMicrotask |
( |
Tagged< Microtask > | microtask | ) |
|
◆ EnqueueMicrotask() [2/3]
◆ EnqueueMicrotask() [3/3]
◆ get()
Tagged< Microtask > v8::internal::MicrotaskQueue::get |
( |
intptr_t | index | ) |
const |
◆ GetMicrotasksScopeDepth()
int v8::internal::MicrotaskQueue::GetMicrotasksScopeDepth |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ HasMicrotasksSuppressions()
bool v8::internal::MicrotaskQueue::HasMicrotasksSuppressions |
( |
| ) |
const |
|
inline |
◆ IncrementMicrotasksScopeDepth()
void v8::internal::MicrotaskQueue::IncrementMicrotasksScopeDepth |
( |
| ) |
|
|
inline |
◆ IncrementMicrotasksSuppressions()
void v8::internal::MicrotaskQueue::IncrementMicrotasksSuppressions |
( |
| ) |
|
|
inline |
◆ IsRunningMicrotasks()
bool v8::internal::MicrotaskQueue::IsRunningMicrotasks |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ IterateMicrotasks()
void v8::internal::MicrotaskQueue::IterateMicrotasks |
( |
RootVisitor * | visitor | ) |
|
◆ microtasks_policy()
◆ New()
◆ next()
◆ OnCompleted()
void v8::internal::MicrotaskQueue::OnCompleted |
( |
Isolate * | isolate | ) |
|
|
private |
◆ PerformCheckpoint()
void v8::internal::MicrotaskQueue::PerformCheckpoint |
( |
v8::Isolate * | isolate | ) |
|
|
inlineoverridevirtual |
◆ PerformCheckpointInternal()
void v8::internal::MicrotaskQueue::PerformCheckpointInternal |
( |
v8::Isolate * | v8_isolate | ) |
|
|
private |
◆ prev()
◆ RemoveMicrotasksCompletedCallback()
◆ ResizeBuffer()
void v8::internal::MicrotaskQueue::ResizeBuffer |
( |
intptr_t | new_capacity | ) |
|
|
private |
◆ RunMicrotasks()
int v8::internal::MicrotaskQueue::RunMicrotasks |
( |
Isolate * | isolate | ) |
|
◆ set_microtasks_policy()
◆ SetUpDefaultMicrotaskQueue()
void v8::internal::MicrotaskQueue::SetUpDefaultMicrotaskQueue |
( |
Isolate * | isolate | ) |
|
|
static |
◆ ShouldPerfomCheckpoint()
bool v8::internal::MicrotaskQueue::ShouldPerfomCheckpoint |
( |
| ) |
const |
|
inline |
◆ size()
intptr_t v8::internal::MicrotaskQueue::size |
( |
| ) |
const |
|
inline |
◆ start()
intptr_t v8::internal::MicrotaskQueue::start |
( |
| ) |
const |
|
inline |
◆ capacity_
intptr_t v8::internal::MicrotaskQueue::capacity_ = 0 |
|
private |
◆ finished_microtask_count_
intptr_t v8::internal::MicrotaskQueue::finished_microtask_count_ = 0 |
|
private |
◆ is_running_completed_callbacks_
bool v8::internal::MicrotaskQueue::is_running_completed_callbacks_ = false |
|
private |
◆ is_running_microtasks_
bool v8::internal::MicrotaskQueue::is_running_microtasks_ = false |
|
private |
◆ kCapacityOffset
const size_t v8::internal::MicrotaskQueue::kCapacityOffset |
|
static |
◆ kFinishedMicrotaskCountOffset
const size_t v8::internal::MicrotaskQueue::kFinishedMicrotaskCountOffset |
|
static |
Initial value:=
intptr_t finished_microtask_count_
Definition at line 114 of file microtask-queue.h.
◆ kMinimumCapacity
const intptr_t v8::internal::MicrotaskQueue::kMinimumCapacity = 8 |
|
static |
◆ kRingBufferOffset
const size_t v8::internal::MicrotaskQueue::kRingBufferOffset |
|
static |
◆ kSizeOffset
◆ kStartOffset
◆ microtasks_completed_callbacks_
std::vector<CallbackWithData> v8::internal::MicrotaskQueue::microtasks_completed_callbacks_ |
|
private |
◆ microtasks_completed_callbacks_cow_
std::optional<std::vector<CallbackWithData> > v8::internal::MicrotaskQueue::microtasks_completed_callbacks_cow_ |
|
private |
◆ microtasks_depth_
int v8::internal::MicrotaskQueue::microtasks_depth_ = 0 |
|
private |
◆ microtasks_policy_
◆ microtasks_suppressions_
int v8::internal::MicrotaskQueue::microtasks_suppressions_ = 0 |
|
private |
◆ next_
◆ prev_
◆ ring_buffer_
Address* v8::internal::MicrotaskQueue::ring_buffer_ = nullptr |
|
private |
◆ size_
intptr_t v8::internal::MicrotaskQueue::size_ = 0 |
|
private |
◆ start_
intptr_t v8::internal::MicrotaskQueue::start_ = 0 |
|
private |
The documentation for this class was generated from the following files: