![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <async-hooks-wrapper.h>
Public Member Functions | |
AsyncHooks (Isolate *isolate) | |
~AsyncHooks () | |
async_id_t | GetExecutionAsyncId () const |
async_id_t | GetTriggerAsyncId () const |
Local< Object > | CreateHook (const v8::FunctionCallbackInfo< v8::Value > &info) |
Public Attributes | |
Persistent< FunctionTemplate > | async_hook_ctor |
Static Private Member Functions | |
static void | ShellPromiseHook (PromiseHookType type, Local< Promise > promise, Local< Value > parent) |
static void | PromiseHookDispatch (PromiseHookType type, Local< Promise > promise, Local< Value > parent, const AsyncHooksWrap &wrap, AsyncHooks *hooks) |
Private Attributes | |
std::vector< std::shared_ptr< AsyncHooksWrap > > | async_wraps_ |
v8::Isolate * | v8_isolate_ |
Persistent< ObjectTemplate > | async_hooks_templ |
Persistent< Private > | async_id_symbol |
Persistent< Private > | trigger_id_symbol |
std::stack< AsyncContext > | asyncContexts |
async_id_t | current_async_id |
bool | skip_after_termination_ = false |
Definition at line 60 of file async-hooks-wrapper.h.
|
explicit |
v8::AsyncHooks::~AsyncHooks | ( | ) |
Local< Object > v8::AsyncHooks::CreateHook | ( | const v8::FunctionCallbackInfo< v8::Value > & | info | ) |
Definition at line 126 of file async-hooks-wrapper.cc.
async_id_t v8::AsyncHooks::GetExecutionAsyncId | ( | ) | const |
Definition at line 118 of file async-hooks-wrapper.cc.
async_id_t v8::AsyncHooks::GetTriggerAsyncId | ( | ) | const |
Definition at line 122 of file async-hooks-wrapper.cc.
|
staticprivate |
Definition at line 261 of file async-hooks-wrapper.cc.
|
staticprivate |
Definition at line 177 of file async-hooks-wrapper.cc.
Persistent<FunctionTemplate> v8::AsyncHooks::async_hook_ctor |
Definition at line 70 of file async-hooks-wrapper.h.
|
private |
Definition at line 75 of file async-hooks-wrapper.h.
|
private |
Definition at line 76 of file async-hooks-wrapper.h.
|
private |
Definition at line 73 of file async-hooks-wrapper.h.
|
private |
Definition at line 86 of file async-hooks-wrapper.h.
|
private |
Definition at line 87 of file async-hooks-wrapper.h.
|
private |
Definition at line 90 of file async-hooks-wrapper.h.
|
private |
Definition at line 77 of file async-hooks-wrapper.h.
|
private |
Definition at line 74 of file async-hooks-wrapper.h.