v8 10.2.154 (node 18.16.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
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 class Type : uint8_t
strong
Enumerator
kNone 
kMarking 
kGenerational 

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

◆ ValueMode

enum class 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]

template<typename HeapHandleCallback >
static V8_INLINE Type GetWriteBarrierType ( const void *  slot,
Params params,
HeapHandleCallback  callback 
)
static

◆ GetWriteBarrierType() [3/4]

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

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

◆ GetWriteBarrierType() [4/4]

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

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

◆ IsAnyIncrementalOrConcurrentMarking()

◆ SteeleMarkingBarrier()

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

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