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

#include <marking.h>

Collaboration diagram for v8::internal::MarkBit:

Public Types

using CellType = uintptr_t
 

Public Member Functions

template<AccessMode mode = AccessMode::NON_ATOMIC>
bool Set ()
 
template<AccessMode mode = AccessMode::NON_ATOMIC>
bool Get () const
 
bool Clear ()
 
const CellTypeCellAddress () const
 
CellType Mask () const
 

Static Public Member Functions

static V8_ALLOW_UNUSED MarkBit From (Address)
 
static V8_ALLOW_UNUSED MarkBit From (Tagged< HeapObject >)
 
static V8_ALLOW_UNUSED MarkBit FromForTesting (Address)
 
static V8_ALLOW_UNUSED MarkBit FromForTesting (Tagged< HeapObject >)
 

Private Member Functions

 MarkBit (CellType *cell, CellType mask)
 

Private Attributes

CellType *const cell_
 
const CellType mask_
 

Friends

class MarkingBitmap
 

Detailed Description

Definition at line 19 of file marking.h.

Member Typedef Documentation

◆ CellType

Definition at line 21 of file marking.h.

Constructor & Destructor Documentation

◆ MarkBit()

v8::internal::MarkBit::MarkBit ( CellType * cell,
CellType mask )
inlineprivate

Definition at line 54 of file marking.h.

Member Function Documentation

◆ CellAddress()

const CellType * v8::internal::MarkBit::CellAddress ( ) const
inline

Definition at line 50 of file marking.h.

◆ Clear()

bool v8::internal::MarkBit::Clear ( )
inline

Definition at line 85 of file marking.h.

◆ From() [1/2]

MarkBit v8::internal::MarkBit::From ( Address address)
inlinestatic

Definition at line 268 of file marking-inl.h.

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

◆ From() [2/2]

MarkBit v8::internal::MarkBit::From ( Tagged< HeapObject > heap_object)
inlinestatic

Definition at line 273 of file marking-inl.h.

Here is the call graph for this function:

◆ FromForTesting() [1/2]

MarkBit v8::internal::MarkBit::FromForTesting ( Address address)
static

Definition at line 142 of file marking.cc.

Here is the call graph for this function:

◆ FromForTesting() [2/2]

MarkBit v8::internal::MarkBit::FromForTesting ( Tagged< HeapObject > heap_object)
static

Definition at line 147 of file marking.cc.

Here is the call graph for this function:

◆ Get()

template<AccessMode mode = AccessMode::NON_ATOMIC>
bool v8::internal::MarkBit::Get ( ) const
inline

◆ Mask()

CellType v8::internal::MarkBit::Mask ( ) const
inline

Definition at line 51 of file marking.h.

◆ Set()

template<AccessMode mode = AccessMode::NON_ATOMIC>
bool v8::internal::MarkBit::Set ( )
inline
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ MarkingBitmap

friend class MarkingBitmap
friend

Definition at line 59 of file marking.h.

Member Data Documentation

◆ cell_

CellType* const v8::internal::MarkBit::cell_
private

Definition at line 56 of file marking.h.

◆ mask_

const CellType v8::internal::MarkBit::mask_
private

Definition at line 57 of file marking.h.


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