![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <v8-microtask-queue.h>
Public Types | |
enum | Type { kRunMicrotasks , kDoNotRunMicrotasks } |
Public Member Functions | |
MicrotasksScope (Local< Context > context, Type type) | |
MicrotasksScope (Isolate *isolate, MicrotaskQueue *microtask_queue, Type type) | |
~MicrotasksScope () | |
MicrotasksScope (const MicrotasksScope &)=delete | |
MicrotasksScope & | operator= (const MicrotasksScope &)=delete |
Static Public Member Functions | |
static void | PerformCheckpoint (Isolate *isolate) |
static int | GetCurrentDepth (Isolate *isolate) |
static bool | IsRunningMicrotasks (Isolate *isolate) |
Private Attributes | |
internal::Isolate *const | i_isolate_ |
internal::MicrotaskQueue *const | microtask_queue_ |
bool | run_ |
This scope is used to control microtasks when MicrotasksPolicy::kScoped is used on Isolate. In this mode every non-primitive call to V8 should be done inside some MicrotasksScope. Microtasks are executed when topmost MicrotasksScope marked as kRunMicrotasks exits. kDoNotRunMicrotasks should be used to annotate calls not intended to trigger microtasks.
Definition at line 117 of file v8-microtask-queue.h.
Enumerator | |
---|---|
kRunMicrotasks | |
kDoNotRunMicrotasks |
Definition at line 119 of file v8-microtask-queue.h.
v8::MicrotasksScope::MicrotasksScope | ( | Local< Context > | context, |
MicrotasksScope::Type | type ) |
v8::MicrotasksScope::MicrotasksScope | ( | Isolate * | isolate, |
MicrotaskQueue * | microtask_queue, | ||
MicrotasksScope::Type | type ) |
v8::MicrotasksScope::~MicrotasksScope | ( | ) |
|
delete |
|
static |
|
static |
|
delete |
|
static |
|
private |
Definition at line 145 of file v8-microtask-queue.h.
|
private |
Definition at line 146 of file v8-microtask-queue.h.
|
private |
Definition at line 147 of file v8-microtask-queue.h.