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

#include <gc-callbacks.h>

Collaboration diagram for v8::internal::GCCallbacksInSafepoint:

Classes

struct  CallbackData
 

Public Types

enum  GCType { kLocal = 1 << 0 , kShared = 1 << 1 , kAll = kLocal | kShared }
 
using CallbackType = void (*)(void*)
 

Public Member Functions

void Add (CallbackType callback, void *data, GCType gc_type)
 
void Remove (CallbackType callback, void *data)
 
void Invoke (GCType gc_type) 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 75 of file gc-callbacks.h.

Member Typedef Documentation

◆ CallbackType

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

Member Enumeration Documentation

◆ GCType

Enumerator
kLocal 
kShared 
kAll 

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

Member Function Documentation

◆ Add()

void v8::internal::GCCallbacksInSafepoint::Add ( CallbackType callback,
void * data,
GCType gc_type )
inline

Definition at line 81 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::GCCallbacksInSafepoint::FindCallback ( CallbackType callback,
void * data )
inlineprivate

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

Here is the caller graph for this function:

◆ Invoke()

void v8::internal::GCCallbacksInSafepoint::Invoke ( GCType gc_type) const
inline

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

Here is the caller graph for this function:

◆ IsEmpty()

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

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

Here is the caller graph for this function:

◆ Remove()

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

Definition at line 87 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::GCCallbacksInSafepoint::callbacks_
private

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


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