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

#include <v8-traced-handle.h>

Inheritance diagram for v8::TracedReferenceBase:
Collaboration diagram for v8::TracedReferenceBase:

Public Member Functions

V8_INLINE void Reset ()
 
V8_INLINE Local< DataGet (Isolate *isolate) const
 
bool IsEmptyThreadSafe () const
 
- Public Member Functions inherited from v8::api_internal::IndirectHandleBase
V8_INLINE bool IsEmpty () const
 
V8_INLINE void Clear ()
 

Protected Member Functions

V8_INLINE TracedReferenceBase ()=default
 
void SetSlotThreadSafe (internal::Address *new_val)
 
const internal::AddressGetSlotThreadSafe () const
 
V8_EXPORT void CheckValue () const
 
- Protected Member Functions inherited from v8::api_internal::IndirectHandleBase
V8_INLINE IndirectHandleBase ()=default
 
V8_INLINE IndirectHandleBase (const IndirectHandleBase &other)=default
 
V8_INLINE IndirectHandleBaseoperator= (const IndirectHandleBase &that)=default
 
V8_INLINE IndirectHandleBase (internal::Address *location)
 
V8_INLINE internal::Address ptr () const
 
V8_INLINE internal::Address *const & slot () const
 
V8_INLINE internal::Address *& slot ()
 
template<typename T , bool check_null = false>
V8_INLINE Tvalue () const
 
V8_INLINE internal::ValueHelper::InternalRepresentationType repr () const
 

Friends

class internal::BasicTracedReferenceExtractor
 
template<typename F >
class Local
 
template<typename U >
bool operator== (const TracedReferenceBase &lhs, const Local< U > &rhs)
 
bool operator== (const TracedReferenceBase &lhs, const TracedReferenceBase &rhs)
 

Detailed Description

An indirect handle, where the indirect pointer points to a GlobalHandles node.

Definition at line 54 of file v8-traced-handle.h.

Constructor & Destructor Documentation

◆ TracedReferenceBase()

V8_INLINE v8::TracedReferenceBase::TracedReferenceBase ( )
protecteddefault

Member Function Documentation

◆ CheckValue()

void v8::TracedReferenceBase::CheckValue ( ) const
protected

Definition at line 11843 of file api.cc.

Here is the call graph for this function:

◆ Get()

V8_INLINE Local< Data > v8::TracedReferenceBase::Get ( Isolate * isolate) const
inline

Construct a Local<Data> from this handle.

Definition at line 68 of file v8-traced-handle.h.

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

◆ GetSlotThreadSafe()

const internal::Address * v8::TracedReferenceBase::GetSlotThreadSafe ( ) const
inlineprotected

Get this reference in a thread-safe way

Definition at line 93 of file v8-traced-handle.h.

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

◆ IsEmptyThreadSafe()

bool v8::TracedReferenceBase::IsEmptyThreadSafe ( ) const
inline

Returns true if this TracedReference is empty, i.e., has not been assigned an object. This version of IsEmpty is thread-safe.

Definition at line 77 of file v8-traced-handle.h.

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

◆ Reset()

void v8::TracedReferenceBase::Reset ( )

If non-empty, destroy the underlying storage cell. |IsEmpty| will return true after this call.

Definition at line 309 of file v8-traced-handle.h.

Here is the call graph for this function:

◆ SetSlotThreadSafe()

void v8::TracedReferenceBase::SetSlotThreadSafe ( internal::Address * new_val)
inlineprotected

Update this reference in a thread-safe way.

Definition at line 85 of file v8-traced-handle.h.

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

Friends And Related Symbol Documentation

◆ internal::BasicTracedReferenceExtractor

Definition at line 100 of file v8-traced-handle.h.

◆ Local

template<typename F >
friend class Local
friend

Definition at line 102 of file v8-traced-handle.h.

◆ operator== [1/2]

template<typename U >
bool operator== ( const TracedReferenceBase & lhs,
const Local< U > & rhs )
friend

Definition at line 323 of file v8-traced-handle.h.

◆ operator== [2/2]

bool operator== ( const TracedReferenceBase & lhs,
const TracedReferenceBase & rhs )
friend

Definition at line 317 of file v8-traced-handle.h.


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