v8  10.1.124 (node 18.2.0)
V8 is Google's open source JavaScript engine
WriteBarrier Class Referencefinal

#include <write-barrier.h>

Data Structures

struct  Params
 

Public Types

enum class  Type : uint8_t { kNone , kMarking , kGenerational }
 
enum class  ValueMode { kValuePresent , kNoValuePresent }
 

Public Member Functions

template<typename HeapHandleCallback >
WriteBarrier::Type GetWriteBarrierType (const void *slot, WriteBarrier::Params &params, HeapHandleCallback callback)
 

Static Public Member Functions

static V8_INLINE Type GetWriteBarrierType (const void *slot, const void *value, Params &params)
 
template<typename HeapHandleCallback >
static V8_INLINE Type GetWriteBarrierType (const void *slot, Params &params, HeapHandleCallback callback)
 
static V8_INLINE Type GetWriteBarrierType (const void *value, Params &params)
 
static V8_INLINE void DijkstraMarkingBarrier (const Params &params, const void *object)
 
static V8_INLINE void DijkstraMarkingBarrierRange (const Params &params, const void *first_element, size_t element_size, size_t number_of_elements, TraceCallback trace_callback)
 
static V8_INLINE void SteeleMarkingBarrier (const Params &params, const void *object)
 
static V8_INLINE void GenerationalBarrier (const Params &params, const void *slot)
 
static V8_INLINE void GenerationalBarrierForSourceObject (const Params &params, const void *inner_pointer)
 
static void CheckParams (Type expected_type, const Params &params)
 
static bool IsAnyIncrementalOrConcurrentMarking ()
 

Detailed Description

Definition at line 35 of file write-barrier.h.

Member Enumeration Documentation

◆ Type

enum Type : uint8_t
strong
Enumerator
kNone 
kMarking 
kGenerational 

Definition at line 37 of file write-barrier.h.

◆ ValueMode

enum ValueMode
strong
Enumerator
kValuePresent 
kNoValuePresent 

Definition at line 58 of file write-barrier.h.

Member Function Documentation

◆ CheckParams()

static void CheckParams ( Type  expected_type,
const Params params 
)
inlinestatic

◆ DijkstraMarkingBarrier()

void DijkstraMarkingBarrier ( const Params params,
const void *  object 
)
static

◆ DijkstraMarkingBarrierRange()

void DijkstraMarkingBarrierRange ( const Params params,
const void *  first_element,
size_t  element_size,
size_t  number_of_elements,
TraceCallback  trace_callback 
)
static

◆ GenerationalBarrier()

static V8_INLINE void GenerationalBarrier ( const Params params,
const void *  slot 
)
inlinestatic

◆ GenerationalBarrierForSourceObject()

static V8_INLINE void GenerationalBarrierForSourceObject ( const Params params,
const void *  inner_pointer 
)
inlinestatic

Definition at line 88 of file write-barrier.h.

Referenced by HeapConsistency::GenerationalBarrierForSourceObject().

◆ GetWriteBarrierType() [1/4]

WriteBarrier::Type GetWriteBarrierType ( const void *  slot,
const void *  value,
WriteBarrier::Params params 
)
static

◆ GetWriteBarrierType() [2/4]

static V8_INLINE Type GetWriteBarrierType ( const void *  slot,
Params params,
HeapHandleCallback  callback 
)
static

◆ GetWriteBarrierType() [3/4]

WriteBarrier::Type GetWriteBarrierType ( const void *  slot,
WriteBarrier::Params params,
HeapHandleCallback  callback 
)

Definition at line 350 of file write-barrier.h.

References WriteBarrier::kNoValuePresent.

◆ GetWriteBarrierType() [4/4]

WriteBarrier::Type GetWriteBarrierType ( const void *  value,
WriteBarrier::Params params 
)
static

◆ IsAnyIncrementalOrConcurrentMarking()

◆ SteeleMarkingBarrier()

void SteeleMarkingBarrier ( const Params params,
const void *  object 
)
static

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