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

#include <d8.h>

Collaboration diagram for v8::PerIsolateData:

Classes

class  ExplicitRealmScope
 
class  RealmScope
 

Public Member Functions

 PerIsolateData (Isolate *isolate)
 
 ~PerIsolateData ()
 
AsyncHooksGetAsyncHooks ()
 
void RemoveUnhandledPromise (Local< Promise > promise)
 
void AddUnhandledPromise (Local< Promise > promise, Local< Message > message, Local< Value > exception)
 
int HandleUnhandledPromiseRejections ()
 
void AddDynamicImportData (DynamicImportData *)
 
void DeleteDynamicImportData (DynamicImportData *)
 
Local< FunctionTemplateGetTestApiObjectCtor () const
 
void SetTestApiObjectCtor (Local< FunctionTemplate > ctor)
 
Local< FunctionTemplateGetDomNodeCtor () const
 
void SetDomNodeCtor (Local< FunctionTemplate > ctor)
 
bool HasRunningSubscribedWorkers ()
 
void RegisterWorker (std::shared_ptr< Worker > worker)
 
void SubscribeWorkerOnMessage (const std::shared_ptr< Worker > &worker, Local< Context > context, Local< Function > callback)
 
std::pair< Local< Context >, Local< Function > > GetWorkerOnMessage (const std::shared_ptr< Worker > &worker) const
 
void UnregisterWorker (const std::shared_ptr< Worker > &worker)
 

Static Public Member Functions

static PerIsolateDataGet (Isolate *isolate)
 

Private Member Functions

int RealmIndexOrThrow (const v8::FunctionCallbackInfo< v8::Value > &info, int arg_offset)
 
int RealmFind (Local< Context > context)
 

Private Attributes

Isolateisolate_
 
int realm_count_
 
int realm_current_
 
int realm_switch_
 
Global< Context > * realms_
 
Global< Valuerealm_shared_
 
bool ignore_unhandled_promises_
 
std::vector< std::tuple< Global< Promise >, Global< Message >, Global< Value > > > unhandled_promises_
 
AsyncHooksasync_hooks_wrapper_
 
Global< FunctionTemplatetest_api_object_ctor_
 
Global< FunctionTemplatedom_node_ctor_
 
std::set< std::shared_ptr< Worker > > registered_workers_
 
std::map< std::shared_ptr< Worker >, std::pair< Global< Context >, Global< Function > > > worker_message_callbacks_
 

Friends

class Shell
 
class RealmScope
 

Detailed Description

Definition at line 294 of file d8.h.

Constructor & Destructor Documentation

◆ PerIsolateData()

v8::PerIsolateData::PerIsolateData ( Isolate * isolate)
explicit

Definition at line 1873 of file d8.cc.

Here is the call graph for this function:

◆ ~PerIsolateData()

v8::PerIsolateData::~PerIsolateData ( )

Definition at line 1882 of file d8.cc.

Here is the call graph for this function:

Member Function Documentation

◆ AddDynamicImportData()

void v8::PerIsolateData::AddDynamicImportData ( DynamicImportData * data)

Definition at line 1936 of file d8.cc.

Here is the caller graph for this function:

◆ AddUnhandledPromise()

void v8::PerIsolateData::AddUnhandledPromise ( Local< Promise > promise,
Local< Message > message,
Local< Value > exception )

Definition at line 1907 of file d8.cc.

Here is the caller graph for this function:

◆ DeleteDynamicImportData()

void v8::PerIsolateData::DeleteDynamicImportData ( DynamicImportData * data)

Definition at line 1941 of file d8.cc.

◆ Get()

static PerIsolateData * v8::PerIsolateData::Get ( Isolate * isolate)
inlinestatic

Definition at line 300 of file d8.h.

Here is the caller graph for this function:

◆ GetAsyncHooks()

AsyncHooks * v8::PerIsolateData::GetAsyncHooks ( )
inline

Definition at line 329 of file d8.h.

Here is the caller graph for this function:

◆ GetDomNodeCtor()

Local< FunctionTemplate > v8::PerIsolateData::GetDomNodeCtor ( ) const

Definition at line 1956 of file d8.cc.

◆ GetTestApiObjectCtor()

Local< FunctionTemplate > v8::PerIsolateData::GetTestApiObjectCtor ( ) const

Definition at line 1948 of file d8.cc.

◆ GetWorkerOnMessage()

std::pair< Local< Context >, Local< Function > > v8::PerIsolateData::GetWorkerOnMessage ( const std::shared_ptr< Worker > & worker) const

Definition at line 1991 of file d8.cc.

Here is the caller graph for this function:

◆ HandleUnhandledPromiseRejections()

int v8::PerIsolateData::HandleUnhandledPromiseRejections ( )

Definition at line 1917 of file d8.cc.

Here is the call graph for this function:

◆ HasRunningSubscribedWorkers()

bool v8::PerIsolateData::HasRunningSubscribedWorkers ( )

Definition at line 1964 of file d8.cc.

◆ RealmFind()

int v8::PerIsolateData::RealmFind ( Local< Context > context)
private

Definition at line 2039 of file d8.cc.

◆ RealmIndexOrThrow()

int v8::PerIsolateData::RealmIndexOrThrow ( const v8::FunctionCallbackInfo< v8::Value > & info,
int arg_offset )
private

Definition at line 2046 of file d8.cc.

◆ RegisterWorker()

void v8::PerIsolateData::RegisterWorker ( std::shared_ptr< Worker > worker)

Definition at line 1970 of file d8.cc.

Here is the caller graph for this function:

◆ RemoveUnhandledPromise()

void v8::PerIsolateData::RemoveUnhandledPromise ( Local< Promise > promise)

Definition at line 1894 of file d8.cc.

Here is the caller graph for this function:

◆ SetDomNodeCtor()

void v8::PerIsolateData::SetDomNodeCtor ( Local< FunctionTemplate > ctor)

Definition at line 1960 of file d8.cc.

◆ SetTestApiObjectCtor()

void v8::PerIsolateData::SetTestApiObjectCtor ( Local< FunctionTemplate > ctor)

Definition at line 1952 of file d8.cc.

Here is the caller graph for this function:

◆ SubscribeWorkerOnMessage()

void v8::PerIsolateData::SubscribeWorkerOnMessage ( const std::shared_ptr< Worker > & worker,
Local< Context > context,
Local< Function > callback )

Definition at line 1974 of file d8.cc.

Here is the caller graph for this function:

◆ UnregisterWorker()

void v8::PerIsolateData::UnregisterWorker ( const std::shared_ptr< Worker > & worker)

Definition at line 2000 of file d8.cc.

Friends And Related Symbol Documentation

◆ RealmScope

friend class RealmScope
friend

Definition at line 358 of file d8.h.

◆ Shell

friend class Shell
friend

Definition at line 357 of file d8.h.

Member Data Documentation

◆ async_hooks_wrapper_

AsyncHooks* v8::PerIsolateData::async_hooks_wrapper_
private

Definition at line 368 of file d8.h.

◆ dom_node_ctor_

Global<FunctionTemplate> v8::PerIsolateData::dom_node_ctor_
private

Definition at line 373 of file d8.h.

◆ ignore_unhandled_promises_

bool v8::PerIsolateData::ignore_unhandled_promises_
private

Definition at line 365 of file d8.h.

◆ isolate_

Isolate* v8::PerIsolateData::isolate_
private

Definition at line 359 of file d8.h.

◆ realm_count_

int v8::PerIsolateData::realm_count_
private

Definition at line 360 of file d8.h.

◆ realm_current_

int v8::PerIsolateData::realm_current_
private

Definition at line 361 of file d8.h.

◆ realm_shared_

Global<Value> v8::PerIsolateData::realm_shared_
private

Definition at line 364 of file d8.h.

◆ realm_switch_

int v8::PerIsolateData::realm_switch_
private

Definition at line 362 of file d8.h.

◆ realms_

Global<Context>* v8::PerIsolateData::realms_
private

Definition at line 363 of file d8.h.

◆ registered_workers_

std::set<std::shared_ptr<Worker> > v8::PerIsolateData::registered_workers_
private

Definition at line 378 of file d8.h.

◆ test_api_object_ctor_

Global<FunctionTemplate> v8::PerIsolateData::test_api_object_ctor_
private

Definition at line 372 of file d8.h.

◆ unhandled_promises_

std::vector<std::tuple<Global<Promise>, Global<Message>, Global<Value> > > v8::PerIsolateData::unhandled_promises_
private

Definition at line 367 of file d8.h.

◆ worker_message_callbacks_

std::map<std::shared_ptr<Worker>, std::pair<Global<Context>, Global<Function> > > v8::PerIsolateData::worker_message_callbacks_
private

Definition at line 381 of file d8.h.


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