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

#include <slot-set.h>

Collaboration diagram for v8::internal::PossiblyEmptyBuckets:

Public Member Functions

 PossiblyEmptyBuckets ()=default
 
 PossiblyEmptyBuckets (PossiblyEmptyBuckets &&other) V8_NOEXCEPT
 
 ~PossiblyEmptyBuckets ()
 
 PossiblyEmptyBuckets (const PossiblyEmptyBuckets &)=delete
 
PossiblyEmptyBucketsoperator= (const PossiblyEmptyBuckets &)=delete
 
void Release ()
 
void Insert (size_t bucket_index, size_t buckets)
 
bool Contains (size_t bucket_index)
 
bool IsEmpty () const
 

Private Member Functions

bool IsAllocated ()
 
void Allocate (size_t buckets)
 
void InsertAllocated (size_t bucket_index)
 
uintptr_t * BitmapArray ()
 
 FRIEND_TEST (PossiblyEmptyBucketsTest, WordsForBuckets)
 

Static Private Member Functions

static size_t WordsForBuckets (size_t buckets)
 

Private Attributes

Address bitmap_ = kNullAddress
 

Static Private Attributes

static constexpr Address kPointerTag = 1
 
static constexpr int kWordSize = sizeof(uintptr_t)
 
static constexpr int kBitsPerWord = kWordSize * kBitsPerByte
 

Detailed Description

Definition at line 34 of file slot-set.h.

Constructor & Destructor Documentation

◆ PossiblyEmptyBuckets() [1/3]

v8::internal::PossiblyEmptyBuckets::PossiblyEmptyBuckets ( )
default

◆ PossiblyEmptyBuckets() [2/3]

v8::internal::PossiblyEmptyBuckets::PossiblyEmptyBuckets ( PossiblyEmptyBuckets && other)
inline

Definition at line 37 of file slot-set.h.

◆ ~PossiblyEmptyBuckets()

v8::internal::PossiblyEmptyBuckets::~PossiblyEmptyBuckets ( )
inline

Definition at line 42 of file slot-set.h.

Here is the call graph for this function:

◆ PossiblyEmptyBuckets() [3/3]

v8::internal::PossiblyEmptyBuckets::PossiblyEmptyBuckets ( const PossiblyEmptyBuckets & )
delete

Member Function Documentation

◆ Allocate()

void v8::internal::PossiblyEmptyBuckets::Allocate ( size_t buckets)
inlineprivate

Definition at line 88 of file slot-set.h.

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

◆ BitmapArray()

uintptr_t * v8::internal::PossiblyEmptyBuckets::BitmapArray ( )
inlineprivate

Definition at line 113 of file slot-set.h.

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

◆ Contains()

bool v8::internal::PossiblyEmptyBuckets::Contains ( size_t bucket_index)
inline

Definition at line 66 of file slot-set.h.

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

◆ FRIEND_TEST()

v8::internal::PossiblyEmptyBuckets::FRIEND_TEST ( PossiblyEmptyBucketsTest ,
WordsForBuckets  )
private

◆ Insert()

void v8::internal::PossiblyEmptyBuckets::Insert ( size_t bucket_index,
size_t buckets )
inline

Definition at line 55 of file slot-set.h.

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

◆ InsertAllocated()

void v8::internal::PossiblyEmptyBuckets::InsertAllocated ( size_t bucket_index)
inlineprivate

Definition at line 102 of file slot-set.h.

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

◆ IsAllocated()

bool v8::internal::PossiblyEmptyBuckets::IsAllocated ( )
inlineprivate

Definition at line 86 of file slot-set.h.

Here is the caller graph for this function:

◆ IsEmpty()

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

Definition at line 79 of file slot-set.h.

Here is the caller graph for this function:

◆ operator=()

PossiblyEmptyBuckets & v8::internal::PossiblyEmptyBuckets::operator= ( const PossiblyEmptyBuckets & )
delete

◆ Release()

void v8::internal::PossiblyEmptyBuckets::Release ( )
inline

Definition at line 47 of file slot-set.h.

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

◆ WordsForBuckets()

static size_t v8::internal::PossiblyEmptyBuckets::WordsForBuckets ( size_t buckets)
inlinestaticprivate

Definition at line 109 of file slot-set.h.

Here is the caller graph for this function:

Member Data Documentation

◆ bitmap_

Address v8::internal::PossiblyEmptyBuckets::bitmap_ = kNullAddress
private

Definition at line 118 of file slot-set.h.

◆ kBitsPerWord

int v8::internal::PossiblyEmptyBuckets::kBitsPerWord = kWordSize * kBitsPerByte
staticconstexprprivate

Definition at line 84 of file slot-set.h.

◆ kPointerTag

Address v8::internal::PossiblyEmptyBuckets::kPointerTag = 1
staticconstexprprivate

Definition at line 82 of file slot-set.h.

◆ kWordSize

int v8::internal::PossiblyEmptyBuckets::kWordSize = sizeof(uintptr_t)
staticconstexprprivate

Definition at line 83 of file slot-set.h.


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