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

#include <gc-callbacks.h>

Collaboration diagram for v8::internal::GCCallbacks:

Classes

struct  CallbackData
 

Public Types

using CallbackType = void (*)(v8::Isolate*, GCType, GCCallbackFlags, void*)
 

Public Member Functions

void Add (CallbackType callback, v8::Isolate *isolate, GCType gc_type, void *data)
 
void Remove (CallbackType callback, void *data)
 
void Invoke (GCType gc_type, GCCallbackFlags gc_callback_flags) const
 
bool IsEmpty () const
 

Private Member Functions

std::vector< CallbackData >::iterator FindCallback (CallbackType callback, void *data)
 

Private Attributes

std::vector< CallbackDatacallbacks_
 

Detailed Description

Definition at line 18 of file gc-callbacks.h.

Member Typedef Documentation

◆ CallbackType

Definition at line 20 of file gc-callbacks.h.

Member Function Documentation

◆ Add()

void v8::internal::GCCallbacks::Add ( CallbackType callback,
v8::Isolate * isolate,
GCType gc_type,
void * data )
inline

Definition at line 22 of file gc-callbacks.h.

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

◆ FindCallback()

std::vector< CallbackData >::iterator v8::internal::GCCallbacks::FindCallback ( CallbackType callback,
void * data )
inlineprivate

Definition at line 63 of file gc-callbacks.h.

Here is the caller graph for this function:

◆ Invoke()

void v8::internal::GCCallbacks::Invoke ( GCType gc_type,
GCCallbackFlags gc_callback_flags ) const
inline

Definition at line 36 of file gc-callbacks.h.

Here is the caller graph for this function:

◆ IsEmpty()

bool v8::internal::GCCallbacks::IsEmpty ( ) const
inline

Definition at line 46 of file gc-callbacks.h.

Here is the caller graph for this function:

◆ Remove()

void v8::internal::GCCallbacks::Remove ( CallbackType callback,
void * data )
inline

Definition at line 29 of file gc-callbacks.h.

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

Member Data Documentation

◆ callbacks_

std::vector<CallbackData> v8::internal::GCCallbacks::callbacks_
private

Definition at line 72 of file gc-callbacks.h.


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