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

#include <worklist.h>

Inheritance diagram for heap::base::internal::SegmentBase:
Collaboration diagram for heap::base::internal::SegmentBase:

Public Member Functions

constexpr SegmentBase (uint16_t capacity)
 
size_t Size () const
 
size_t Capacity () const
 
bool IsEmpty () const
 
bool IsFull () const
 
void Clear ()
 

Static Public Member Functions

static SegmentBaseGetSentinelSegmentAddress ()
 

Protected Attributes

const uint16_t capacity_
 
uint16_t index_ = 0
 

Detailed Description

Definition at line 19 of file worklist.h.

Constructor & Destructor Documentation

◆ SegmentBase()

heap::base::internal::SegmentBase::SegmentBase ( uint16_t capacity)
inlineexplicitconstexpr

Definition at line 23 of file worklist.h.

Member Function Documentation

◆ Capacity()

size_t heap::base::internal::SegmentBase::Capacity ( ) const
inline

Definition at line 26 of file worklist.h.

◆ Clear()

void heap::base::internal::SegmentBase::Clear ( )
inline

Definition at line 29 of file worklist.h.

◆ GetSentinelSegmentAddress()

SegmentBase * heap::base::internal::SegmentBase::GetSentinelSegmentAddress ( )
static

Definition at line 18 of file worklist.cc.

Here is the caller graph for this function:

◆ IsEmpty()

bool heap::base::internal::SegmentBase::IsEmpty ( ) const
inline

Definition at line 27 of file worklist.h.

Here is the caller graph for this function:

◆ IsFull()

bool heap::base::internal::SegmentBase::IsFull ( ) const
inline

Definition at line 28 of file worklist.h.

Here is the caller graph for this function:

◆ Size()

size_t heap::base::internal::SegmentBase::Size ( ) const
inline

Definition at line 25 of file worklist.h.

Member Data Documentation

◆ capacity_

const uint16_t heap::base::internal::SegmentBase::capacity_
protected

Definition at line 32 of file worklist.h.

◆ index_

uint16_t heap::base::internal::SegmentBase::index_ = 0
protected

Definition at line 33 of file worklist.h.


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