v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::GlobalHandles::NodeSpace< NodeType > Class Template Reference
Collaboration diagram for v8::internal::GlobalHandles::NodeSpace< NodeType >:

Public Types

using BlockType = NodeBlock<NodeType>
 
using iterator = NodeIterator<BlockType>
 

Public Member Functions

 NodeSpace (GlobalHandles *global_handles) V8_NOEXCEPT
 
 ~NodeSpace ()
 
V8_INLINE NodeType * Allocate ()
 
iterator begin ()
 
iterator end ()
 
size_t TotalSize () const
 
size_t handles_count () const
 

Static Public Member Functions

static NodeSpaceFrom (NodeType *node)
 
static void Release (NodeType *node)
 

Private Member Functions

void PutNodesOnFreeList (BlockType *block)
 
V8_INLINE void Free (NodeType *node)
 

Private Attributes

GlobalHandles *const global_handles_
 
BlockTypefirst_block_ = nullptr
 
BlockTypefirst_used_block_ = nullptr
 
NodeType * first_free_ = nullptr
 
size_t blocks_ = 0
 
size_t handles_count_ = 0
 

Detailed Description

template<class NodeType>
class v8::internal::GlobalHandles::NodeSpace< NodeType >

Definition at line 141 of file global-handles.h.

Member Typedef Documentation

◆ BlockType

template<class NodeType >
using v8::internal::GlobalHandles::NodeSpace< NodeType >::BlockType = NodeBlock<NodeType>

Definition at line 199 of file global-handles.cc.

◆ iterator

template<class NodeType >
using v8::internal::GlobalHandles::NodeSpace< NodeType >::iterator = NodeIterator<BlockType>

Definition at line 200 of file global-handles.cc.

Constructor & Destructor Documentation

◆ NodeSpace()

template<class NodeType >
v8::internal::GlobalHandles::NodeSpace< NodeType >::NodeSpace ( GlobalHandles * global_handles)
inlineexplicit

Definition at line 205 of file global-handles.cc.

◆ ~NodeSpace()

template<class NodeType >
v8::internal::GlobalHandles::NodeSpace< NodeType >::~NodeSpace ( )

Definition at line 230 of file global-handles.cc.

Member Function Documentation

◆ Allocate()

template<class NodeType >
NodeType * v8::internal::GlobalHandles::NodeSpace< NodeType >::Allocate ( )

Definition at line 240 of file global-handles.cc.

◆ begin()

template<class NodeType >
iterator v8::internal::GlobalHandles::NodeSpace< NodeType >::begin ( )
inline

Definition at line 211 of file global-handles.cc.

◆ end()

template<class NodeType >
iterator v8::internal::GlobalHandles::NodeSpace< NodeType >::end ( )
inline

Definition at line 212 of file global-handles.cc.

◆ Free()

template<class NodeType >
void v8::internal::GlobalHandles::NodeSpace< NodeType >::Free ( NodeType * node)
private

Definition at line 278 of file global-handles.cc.

◆ From()

template<class NodeType >
static NodeSpace * v8::internal::GlobalHandles::NodeSpace< NodeType >::From ( NodeType * node)
static

◆ handles_count()

template<class NodeType >
size_t v8::internal::GlobalHandles::NodeSpace< NodeType >::handles_count ( ) const
inline

Definition at line 215 of file global-handles.cc.

◆ PutNodesOnFreeList()

template<class NodeType >
void v8::internal::GlobalHandles::NodeSpace< NodeType >::PutNodesOnFreeList ( BlockType * block)
private

Definition at line 260 of file global-handles.cc.

◆ Release()

template<class NodeType >
void v8::internal::GlobalHandles::NodeSpace< NodeType >::Release ( NodeType * node)
static

Definition at line 272 of file global-handles.cc.

Here is the caller graph for this function:

◆ TotalSize()

template<class NodeType >
size_t v8::internal::GlobalHandles::NodeSpace< NodeType >::TotalSize ( ) const
inline

Definition at line 214 of file global-handles.cc.

Member Data Documentation

◆ blocks_

template<class NodeType >
size_t v8::internal::GlobalHandles::NodeSpace< NodeType >::blocks_ = 0
private

Definition at line 225 of file global-handles.cc.

◆ first_block_

template<class NodeType >
BlockType* v8::internal::GlobalHandles::NodeSpace< NodeType >::first_block_ = nullptr
private

Definition at line 222 of file global-handles.cc.

◆ first_free_

template<class NodeType >
NodeType* v8::internal::GlobalHandles::NodeSpace< NodeType >::first_free_ = nullptr
private

Definition at line 224 of file global-handles.cc.

◆ first_used_block_

template<class NodeType >
BlockType* v8::internal::GlobalHandles::NodeSpace< NodeType >::first_used_block_ = nullptr
private

Definition at line 223 of file global-handles.cc.

◆ global_handles_

template<class NodeType >
GlobalHandles* const v8::internal::GlobalHandles::NodeSpace< NodeType >::global_handles_
private

Definition at line 221 of file global-handles.cc.

◆ handles_count_

template<class NodeType >
size_t v8::internal::GlobalHandles::NodeSpace< NodeType >::handles_count_ = 0
private

Definition at line 226 of file global-handles.cc.


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