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

#include <persistent-node.h>

Inheritance diagram for cppgc::internal::PersistentRegion:
Collaboration diagram for cppgc::internal::PersistentRegion:

Public Member Functions

V8_INLINE PersistentRegion (const HeapBase &heap, const FatalOutOfMemoryHandler &oom_handler)
 
 ~PersistentRegion ()=default
 
 PersistentRegion (const PersistentRegion &)=delete
 
PersistentRegionoperator= (const PersistentRegion &)=delete
 
V8_INLINE PersistentNodeAllocateNode (void *owner, TraceRootCallback trace)
 
V8_INLINE void FreeNode (PersistentNode *node)
 
- Public Member Functions inherited from cppgc::internal::PersistentRegionBase
 ~PersistentRegionBase ()
 
 PersistentRegionBase (const PersistentRegionBase &)=delete
 
PersistentRegionBaseoperator= (const PersistentRegionBase &)=delete
 
void Iterate (RootVisitor &)
 
size_t NodesInUse () const
 
void ClearAllUsedNodes ()
 

Private Member Functions

bool IsCreationThread ()
 

Private Attributes

const HeapBaseheap_
 

Additional Inherited Members

- Protected Member Functions inherited from cppgc::internal::PersistentRegionBase
 PersistentRegionBase (const FatalOutOfMemoryHandler &oom_handler)
 
PersistentNodeTryAllocateNodeFromFreeList (void *owner, TraceRootCallback trace)
 
void FreeNode (PersistentNode *node)
 
PersistentNodeRefillFreeListAndAllocateNode (void *owner, TraceRootCallback trace)
 

Detailed Description

Definition at line 138 of file persistent-node.h.

Constructor & Destructor Documentation

◆ PersistentRegion() [1/2]

V8_INLINE cppgc::internal::PersistentRegion::PersistentRegion ( const HeapBase & heap,
const FatalOutOfMemoryHandler & oom_handler )
inline

Definition at line 140 of file persistent-node.h.

◆ ~PersistentRegion()

cppgc::internal::PersistentRegion::~PersistentRegion ( )
default

◆ PersistentRegion() [2/2]

cppgc::internal::PersistentRegion::PersistentRegion ( const PersistentRegion & )
delete

Member Function Documentation

◆ AllocateNode()

V8_INLINE PersistentNode * cppgc::internal::PersistentRegion::AllocateNode ( void * owner,
TraceRootCallback trace )
inline

Definition at line 151 of file persistent-node.h.

◆ FreeNode()

V8_INLINE void cppgc::internal::PersistentRegion::FreeNode ( PersistentNode * node)
inline

Definition at line 161 of file persistent-node.h.

◆ IsCreationThread()

bool cppgc::internal::PersistentRegion::IsCreationThread ( )
private

Definition at line 115 of file persistent-node.cc.

◆ operator=()

PersistentRegion & cppgc::internal::PersistentRegion::operator= ( const PersistentRegion & )
delete

Member Data Documentation

◆ heap_

const HeapBase& cppgc::internal::PersistentRegion::heap_
private

Definition at line 169 of file persistent-node.h.


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