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

#include <bit-vector.h>

Collaboration diagram for v8::internal::GrowableBitVector:

Public Member Functions

 GrowableBitVector ()=default
 
 GrowableBitVector (int length, Zone *zone)
 
bool Contains (int value) const
 
void Add (int value, Zone *zone)
 
bool IsEmpty () const
 
void Clear ()
 
int length () const
 
bool Equals (const GrowableBitVector &other) const
 
BitVector::Iterator begin () const
 
BitVector::Iterator end () const
 

Private Member Functions

bool InBitsRange (int value) const
 
V8_NOINLINE void Grow (int needed_value, Zone *zone)
 

Private Attributes

BitVector bits_
 

Static Private Attributes

static constexpr int kInitialLength = 1024
 
static constexpr int kMaxSupportedValue = (1 << 30) - 1
 

Detailed Description

Definition at line 292 of file bit-vector.h.

Constructor & Destructor Documentation

◆ GrowableBitVector() [1/2]

v8::internal::GrowableBitVector::GrowableBitVector ( )
default

◆ GrowableBitVector() [2/2]

v8::internal::GrowableBitVector::GrowableBitVector ( int length,
Zone * zone )
inline

Definition at line 295 of file bit-vector.h.

Member Function Documentation

◆ Add()

void v8::internal::GrowableBitVector::Add ( int value,
Zone * zone )
inline

Definition at line 302 of file bit-vector.h.

Here is the call graph for this function:

◆ begin()

BitVector::Iterator v8::internal::GrowableBitVector::begin ( ) const
inline

Definition at line 317 of file bit-vector.h.

Here is the call graph for this function:

◆ Clear()

void v8::internal::GrowableBitVector::Clear ( )
inline

Definition at line 309 of file bit-vector.h.

Here is the call graph for this function:

◆ Contains()

bool v8::internal::GrowableBitVector::Contains ( int value) const
inline

Definition at line 297 of file bit-vector.h.

Here is the call graph for this function:

◆ end()

BitVector::Iterator v8::internal::GrowableBitVector::end ( ) const
inline

Definition at line 319 of file bit-vector.h.

Here is the call graph for this function:

◆ Equals()

bool v8::internal::GrowableBitVector::Equals ( const GrowableBitVector & other) const
inline

Definition at line 313 of file bit-vector.h.

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

◆ Grow()

V8_NOINLINE void v8::internal::GrowableBitVector::Grow ( int needed_value,
Zone * zone )
inlineprivate

Definition at line 330 of file bit-vector.h.

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

◆ InBitsRange()

bool v8::internal::GrowableBitVector::InBitsRange ( int value) const
inlineprivate

Definition at line 328 of file bit-vector.h.

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

◆ IsEmpty()

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

Definition at line 307 of file bit-vector.h.

Here is the call graph for this function:

◆ length()

int v8::internal::GrowableBitVector::length ( ) const
inline

Definition at line 311 of file bit-vector.h.

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

Member Data Documentation

◆ bits_

BitVector v8::internal::GrowableBitVector::bits_
private

Definition at line 340 of file bit-vector.h.

◆ kInitialLength

int v8::internal::GrowableBitVector::kInitialLength = 1024
staticconstexprprivate

Definition at line 322 of file bit-vector.h.

◆ kMaxSupportedValue

int v8::internal::GrowableBitVector::kMaxSupportedValue = (1 << 30) - 1
staticconstexprprivate

Definition at line 326 of file bit-vector.h.


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