v8 13.6.233 (node 24.1.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
RawPointer Class Referencefinal

#include <member-storage.h>

Data Structures

struct  AtomicInitializerTag
 

Public Types

using IntegralType = uintptr_t
 

Public Member Functions

V8_INLINE RawPointer ()
 
V8_INLINE RawPointer (const void *ptr, AtomicInitializerTag)
 
V8_INLINE RawPointer (const void *ptr)
 
V8_INLINE const void * Load () const
 
V8_INLINE const void * LoadAtomic () const
 
V8_INLINE void Store (const void *ptr)
 
V8_INLINE void StoreAtomic (const void *ptr)
 
V8_INLINE void Clear ()
 
V8_INLINE bool IsCleared () const
 
V8_INLINE bool IsSentinel () const
 
V8_INLINE uintptr_t GetAsInteger () const
 

Static Public Member Functions

template<typename Callback>
static V8_INLINE void VisitPossiblePointers (const void *address, Callback callback)
 

Static Public Attributes

static constexpr auto kWriteBarrierSlotType
 

Friends

V8_INLINE friend bool operator== (RawPointer a, RawPointer b)
 
V8_INLINE friend bool operator!= (RawPointer a, RawPointer b)
 
V8_INLINE friend bool operator< (RawPointer a, RawPointer b)
 
V8_INLINE friend bool operator<= (RawPointer a, RawPointer b)
 
V8_INLINE friend bool operator> (RawPointer a, RawPointer b)
 
V8_INLINE friend bool operator>= (RawPointer a, RawPointer b)
 

Detailed Description

Definition at line 228 of file member-storage.h.

Member Typedef Documentation

◆ IntegralType

using IntegralType = uintptr_t

Definition at line 232 of file member-storage.h.

Constructor & Destructor Documentation

◆ RawPointer() [1/3]

V8_INLINE RawPointer ( )
inline

Definition at line 236 of file member-storage.h.

References V8_INLINE.

Referenced by operator!=, operator<, operator<=, operator==, operator>, and operator>=.

◆ RawPointer() [2/3]

V8_INLINE RawPointer ( const void * ptr,
AtomicInitializerTag  )
inlineexplicit

Definition at line 237 of file member-storage.h.

References StoreAtomic(), and V8_INLINE.

◆ RawPointer() [3/3]

V8_INLINE RawPointer ( const void * ptr)
inlineexplicit

Definition at line 240 of file member-storage.h.

References V8_INLINE.

Member Function Documentation

◆ Clear()

V8_INLINE void Clear ( )
inline

Definition at line 254 of file member-storage.h.

References V8_INLINE.

◆ GetAsInteger()

V8_INLINE uintptr_t GetAsInteger ( ) const
inline

Definition at line 259 of file member-storage.h.

References V8_INLINE.

◆ IsCleared()

V8_INLINE bool IsCleared ( ) const
inline

◆ IsSentinel()

V8_INLINE bool IsSentinel ( ) const
inline

◆ Load()

◆ LoadAtomic()

V8_INLINE const void * LoadAtomic ( ) const
inline

Definition at line 243 of file member-storage.h.

References V8_INLINE.

Referenced by Visitor::VisitMultipleUncompressedMember().

◆ Store()

V8_INLINE void Store ( const void * ptr)
inline

Definition at line 248 of file member-storage.h.

References V8_INLINE.

◆ StoreAtomic()

V8_INLINE void StoreAtomic ( const void * ptr)
inline

Definition at line 249 of file member-storage.h.

References V8_INLINE.

Referenced by RawPointer().

◆ VisitPossiblePointers()

template<typename Callback>
static V8_INLINE void VisitPossiblePointers ( const void * address,
Callback callback )
inlinestatic

Definition at line 283 of file member-storage.h.

References V8_INLINE.

Friends And Related Symbol Documentation

◆ operator!=

V8_INLINE friend bool operator!= ( RawPointer a,
RawPointer b )
friend

Definition at line 266 of file member-storage.h.

References RawPointer(), and V8_INLINE.

◆ operator<

V8_INLINE friend bool operator< ( RawPointer a,
RawPointer b )
friend

Definition at line 269 of file member-storage.h.

References RawPointer(), and V8_INLINE.

◆ operator<=

V8_INLINE friend bool operator<= ( RawPointer a,
RawPointer b )
friend

Definition at line 272 of file member-storage.h.

References RawPointer(), and V8_INLINE.

◆ operator==

V8_INLINE friend bool operator== ( RawPointer a,
RawPointer b )
friend

Definition at line 263 of file member-storage.h.

References RawPointer(), and V8_INLINE.

◆ operator>

V8_INLINE friend bool operator> ( RawPointer a,
RawPointer b )
friend

Definition at line 275 of file member-storage.h.

References RawPointer(), and V8_INLINE.

◆ operator>=

V8_INLINE friend bool operator>= ( RawPointer a,
RawPointer b )
friend

Definition at line 278 of file member-storage.h.

References RawPointer(), and V8_INLINE.

Field Documentation

◆ kWriteBarrierSlotType

auto kWriteBarrierSlotType
staticconstexpr

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