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

#include <traced-handles.h>

Collaboration diagram for v8::internal::TracedNodeBlock:

Classes

struct  BaseListTraits
 
struct  ListNode
 
class  NodeIteratorImpl
 
struct  OverallListTraits
 
struct  UsableListTraits
 
struct  YoungListTraits
 

Public Types

using OverallList
 
using UsableList
 
using YoungList
 
using Iterator = NodeIteratorImpl
 

Public Member Functions

V8_INLINE TracedNodeAllocateNode ()
 
void FreeNode (TracedNode *node, Address zap_value)
 
TracedNodeat (TracedNode::IndexType index)
 
const TracedNodeat (TracedNode::IndexType index) const
 
const void * nodes_begin_address () const
 
const void * nodes_end_address () const
 
TracedHandlestraced_handles () const
 
Iterator begin ()
 
Iterator end ()
 
bool IsFull () const
 
bool IsEmpty () const
 
size_t used () const
 
size_t size_bytes () const
 
bool InYoungList () const
 
bool InUsableList () const
 
bool NeedsReprocessing () const
 
void SetReprocessing (bool value)
 
void SetLocallyFreed (TracedNode::IndexType count)
 
TracedNode::IndexType ConsumeLocallyFreed ()
 

Static Public Member Functions

static TracedNodeBlockCreate (TracedHandles &)
 
static void Delete (TracedNodeBlock *)
 
static TracedNodeBlockFrom (TracedNode &node)
 
static const TracedNodeBlockFrom (const TracedNode &node)
 

Static Public Attributes

static constexpr size_t kMinCapacity = 128
 
static constexpr size_t kMaxCapacity
 
static constexpr TracedNode::IndexType kInvalidFreeListNodeIndex = -1
 

Private Member Functions

 TracedNodeBlock (TracedHandles &, TracedNode::IndexType)
 

Private Attributes

ListNode overall_list_node_
 
ListNode usable_list_node_
 
ListNode young_list_node_
 
TracedHandlestraced_handles_
 
TracedNode::IndexType used_ = 0
 
const TracedNode::IndexType capacity_ = 0
 
TracedNode::IndexType first_free_node_ = 0
 
TracedNode::IndexType locally_freed_ = 0
 
bool reprocess_ = false
 

Detailed Description

Definition at line 113 of file traced-handles.h.

Member Typedef Documentation

◆ Iterator

◆ OverallList

◆ UsableList

◆ YoungList

Constructor & Destructor Documentation

◆ TracedNodeBlock()

v8::internal::TracedNodeBlock::TracedNodeBlock ( TracedHandles & traced_handles,
TracedNode::IndexType capacity )
private

Definition at line 70 of file traced-handles.cc.

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

Member Function Documentation

◆ AllocateNode()

TracedNode * v8::internal::TracedNodeBlock::AllocateNode ( )

Definition at line 17 of file traced-handles-inl.h.

Here is the call graph for this function:

◆ at() [1/2]

TracedNode * v8::internal::TracedNodeBlock::at ( TracedNode::IndexType index)
inline

Definition at line 220 of file traced-handles.h.

Here is the caller graph for this function:

◆ at() [2/2]

const TracedNode * v8::internal::TracedNodeBlock::at ( TracedNode::IndexType index) const
inline

Definition at line 223 of file traced-handles.h.

Here is the call graph for this function:

◆ begin()

Iterator v8::internal::TracedNodeBlock::begin ( )
inline

Definition at line 232 of file traced-handles.h.

◆ ConsumeLocallyFreed()

TracedNode::IndexType v8::internal::TracedNodeBlock::ConsumeLocallyFreed ( )
inline

Definition at line 253 of file traced-handles.h.

◆ Create()

TracedNodeBlock * v8::internal::TracedNodeBlock::Create ( TracedHandles & traced_handles)
static

Definition at line 50 of file traced-handles.cc.

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

◆ Delete()

void v8::internal::TracedNodeBlock::Delete ( TracedNodeBlock * block)
static

Definition at line 68 of file traced-handles.cc.

Here is the caller graph for this function:

◆ end()

Iterator v8::internal::TracedNodeBlock::end ( )
inline

Definition at line 233 of file traced-handles.h.

◆ FreeNode()

void v8::internal::TracedNodeBlock::FreeNode ( TracedNode * node,
Address zap_value )

Definition at line 91 of file traced-handles.cc.

◆ From() [1/2]

const TracedNodeBlock & v8::internal::TracedNodeBlock::From ( const TracedNode & node)
static

Definition at line 87 of file traced-handles.cc.

Here is the call graph for this function:

◆ From() [2/2]

TracedNodeBlock & v8::internal::TracedNodeBlock::From ( TracedNode & node)
static

Definition at line 80 of file traced-handles.cc.

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

◆ InUsableList()

bool v8::internal::TracedNodeBlock::InUsableList ( ) const
inline

Definition at line 244 of file traced-handles.h.

Here is the call graph for this function:

◆ InYoungList()

bool v8::internal::TracedNodeBlock::InYoungList ( ) const
inline

Definition at line 243 of file traced-handles.h.

Here is the call graph for this function:

◆ IsEmpty()

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

Definition at line 236 of file traced-handles.h.

◆ IsFull()

bool v8::internal::TracedNodeBlock::IsFull ( ) const
inline

Definition at line 235 of file traced-handles.h.

◆ NeedsReprocessing()

bool v8::internal::TracedNodeBlock::NeedsReprocessing ( ) const
inline

Definition at line 246 of file traced-handles.h.

◆ nodes_begin_address()

const void * v8::internal::TracedNodeBlock::nodes_begin_address ( ) const
inline

Definition at line 227 of file traced-handles.h.

Here is the call graph for this function:

◆ nodes_end_address()

const void * v8::internal::TracedNodeBlock::nodes_end_address ( ) const
inline

Definition at line 228 of file traced-handles.h.

Here is the call graph for this function:

◆ SetLocallyFreed()

void v8::internal::TracedNodeBlock::SetLocallyFreed ( TracedNode::IndexType count)
inline

Definition at line 249 of file traced-handles.h.

◆ SetReprocessing()

void v8::internal::TracedNodeBlock::SetReprocessing ( bool value)
inline

Definition at line 247 of file traced-handles.h.

◆ size_bytes()

size_t v8::internal::TracedNodeBlock::size_bytes ( ) const
inline

Definition at line 239 of file traced-handles.h.

◆ traced_handles()

TracedHandles & v8::internal::TracedNodeBlock::traced_handles ( ) const
inline

Definition at line 230 of file traced-handles.h.

Here is the caller graph for this function:

◆ used()

size_t v8::internal::TracedNodeBlock::used ( ) const
inline

Definition at line 237 of file traced-handles.h.

Member Data Documentation

◆ capacity_

const TracedNode::IndexType v8::internal::TracedNodeBlock::capacity_ = 0
private

Definition at line 267 of file traced-handles.h.

◆ first_free_node_

TracedNode::IndexType v8::internal::TracedNodeBlock::first_free_node_ = 0
private

Definition at line 268 of file traced-handles.h.

◆ kInvalidFreeListNodeIndex

TracedNode::IndexType v8::internal::TracedNodeBlock::kInvalidFreeListNodeIndex = -1
staticconstexpr

Definition at line 206 of file traced-handles.h.

◆ kMaxCapacity

size_t v8::internal::TracedNodeBlock::kMaxCapacity
staticconstexpr
Initial value:
=
std::numeric_limits<TracedNode::IndexType>::max() - 1

Definition at line 202 of file traced-handles.h.

◆ kMinCapacity

size_t v8::internal::TracedNodeBlock::kMinCapacity = 128
staticconstexpr

Definition at line 200 of file traced-handles.h.

◆ locally_freed_

TracedNode::IndexType v8::internal::TracedNodeBlock::locally_freed_ = 0
private

Definition at line 269 of file traced-handles.h.

◆ overall_list_node_

ListNode v8::internal::TracedNodeBlock::overall_list_node_
private

Definition at line 262 of file traced-handles.h.

◆ reprocess_

bool v8::internal::TracedNodeBlock::reprocess_ = false
private

Definition at line 270 of file traced-handles.h.

◆ traced_handles_

TracedHandles& v8::internal::TracedNodeBlock::traced_handles_
private

Definition at line 265 of file traced-handles.h.

◆ usable_list_node_

ListNode v8::internal::TracedNodeBlock::usable_list_node_
private

Definition at line 263 of file traced-handles.h.

◆ used_

TracedNode::IndexType v8::internal::TracedNodeBlock::used_ = 0
private

Definition at line 266 of file traced-handles.h.

◆ young_list_node_

ListNode v8::internal::TracedNodeBlock::young_list_node_
private

Definition at line 264 of file traced-handles.h.


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