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

#include <read-only-serializer-deserializer.h>

Collaboration diagram for v8::internal::ro::BitSet:

Public Member Functions

 BitSet (size_t size_in_bits)
 
 BitSet (uint8_t *data, size_t size_in_bits)
 
 ~BitSet ()
 
bool contains (int i) const
 
void set (int i)
 
size_t size_in_bits () const
 
size_t size_in_bytes () const
 
const uint8_t * data () const
 

Static Private Member Functions

static constexpr int chunk_index (int i)
 
static constexpr int bit_index (int i)
 
static constexpr uint32_t bit_mask (int i)
 

Private Attributes

const size_t size_in_bits_
 
uint8_t *const data_
 
const bool owns_data_
 

Static Private Attributes

static constexpr int kBitsPerChunk = kUInt8Size * kBitsPerByte
 

Detailed Description

Definition at line 48 of file read-only-serializer-deserializer.h.

Constructor & Destructor Documentation

◆ BitSet() [1/2]

v8::internal::ro::BitSet::BitSet ( size_t size_in_bits)
inlineexplicit

Definition at line 50 of file read-only-serializer-deserializer.h.

◆ BitSet() [2/2]

v8::internal::ro::BitSet::BitSet ( uint8_t * data,
size_t size_in_bits )
inlineexplicit

Definition at line 55 of file read-only-serializer-deserializer.h.

◆ ~BitSet()

v8::internal::ro::BitSet::~BitSet ( )
inline

Definition at line 58 of file read-only-serializer-deserializer.h.

Member Function Documentation

◆ bit_index()

static constexpr int v8::internal::ro::BitSet::bit_index ( int i)
inlinestaticconstexprprivate

Definition at line 82 of file read-only-serializer-deserializer.h.

Here is the caller graph for this function:

◆ bit_mask()

static constexpr uint32_t v8::internal::ro::BitSet::bit_mask ( int i)
inlinestaticconstexprprivate

Definition at line 83 of file read-only-serializer-deserializer.h.

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

◆ chunk_index()

static constexpr int v8::internal::ro::BitSet::chunk_index ( int i)
inlinestaticconstexprprivate

Definition at line 81 of file read-only-serializer-deserializer.h.

Here is the caller graph for this function:

◆ contains()

bool v8::internal::ro::BitSet::contains ( int i) const
inline

Definition at line 62 of file read-only-serializer-deserializer.h.

Here is the call graph for this function:

◆ data()

const uint8_t * v8::internal::ro::BitSet::data ( ) const
inline

Definition at line 77 of file read-only-serializer-deserializer.h.

◆ set()

void v8::internal::ro::BitSet::set ( int i)
inline

Definition at line 67 of file read-only-serializer-deserializer.h.

Here is the call graph for this function:

◆ size_in_bits()

size_t v8::internal::ro::BitSet::size_in_bits ( ) const
inline

Definition at line 72 of file read-only-serializer-deserializer.h.

◆ size_in_bytes()

size_t v8::internal::ro::BitSet::size_in_bytes ( ) const
inline

Definition at line 73 of file read-only-serializer-deserializer.h.

Here is the call graph for this function:

Member Data Documentation

◆ data_

uint8_t* const v8::internal::ro::BitSet::data_
private

Definition at line 86 of file read-only-serializer-deserializer.h.

◆ kBitsPerChunk

int v8::internal::ro::BitSet::kBitsPerChunk = kUInt8Size * kBitsPerByte
staticconstexprprivate

Definition at line 80 of file read-only-serializer-deserializer.h.

◆ owns_data_

const bool v8::internal::ro::BitSet::owns_data_
private

Definition at line 87 of file read-only-serializer-deserializer.h.

◆ size_in_bits_

const size_t v8::internal::ro::BitSet::size_in_bits_
private

Definition at line 85 of file read-only-serializer-deserializer.h.


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