v8 10.2.154 (node 18.16.0)
V8 is Google's open source JavaScript engine
|
#include <v8-traced-handle.h>
Public Member Functions | |
bool | IsEmpty () const |
V8_INLINE void | Reset () |
V8_INLINE v8::Local< v8::Value > | Get (v8::Isolate *isolate) const |
bool | IsEmptyThreadSafe () const |
V8_INLINE void | SetWrapperClassId (uint16_t class_id) |
V8_INLINE uint16_t | WrapperClassId () const |
Protected Member Functions | |
void | SetSlotThreadSafe (void *new_val) |
const void * | GetSlotThreadSafe () const |
V8_EXPORT void | CheckValue () const |
Protected Attributes | |
internal::Address * | val_ = nullptr |
Friends | |
class | internal::BasicTracedReferenceExtractor |
template<typename F > | |
class | Local |
template<typename U > | |
bool | operator== (const TracedReferenceBase &, const Local< U > &) |
bool | operator== (const TracedReferenceBase &, const TracedReferenceBase &) |
Definition at line 46 of file v8-traced-handle.h.
|
protected |
Referenced by BasicTracedReference< T >::operator*(), and BasicTracedReference< T >::operator->().
|
inline |
Construct a Local<Value> from this handle.
Definition at line 63 of file v8-traced-handle.h.
References TracedReferenceBase::IsEmpty(), Local< T >::New(), and TracedReferenceBase::val_.
|
inlineprotected |
Get this reference in a thread-safe way
Definition at line 99 of file v8-traced-handle.h.
References TracedReferenceBase::val_.
Referenced by TracedReferenceBase::IsEmptyThreadSafe().
|
inline |
Returns true if the reference is empty, i.e., has not been assigned object.
Definition at line 52 of file v8-traced-handle.h.
References TracedReferenceBase::val_.
Referenced by TracedReferenceBase::Get(), TracedReferenceBase::Reset(), ReturnValue< T >::Set(), TracedReferenceBase::SetWrapperClassId(), and TracedReferenceBase::WrapperClassId().
|
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 72 of file v8-traced-handle.h.
References TracedReferenceBase::GetSlotThreadSafe().
Referenced by JSVisitor::Trace().
void Reset | ( | ) |
If non-empty, destroy the underlying storage cell. |IsEmpty| will return true after this call.
Definition at line 301 of file v8-traced-handle.h.
References v8::internal::DisposeTracedReference(), TracedReferenceBase::IsEmpty(), TracedReferenceBase::SetSlotThreadSafe(), and TracedReferenceBase::val_.
|
inlineprotected |
Update this reference in a thread-safe way.
Definition at line 91 of file v8-traced-handle.h.
References TracedReferenceBase::val_.
Referenced by TracedReferenceBase::Reset().
void SetWrapperClassId | ( | uint16_t | class_id | ) |
Assigns a wrapper class ID to the handle.
Definition at line 402 of file v8-traced-handle.h.
References TracedReferenceBase::IsEmpty(), and TracedReferenceBase::val_.
uint16_t WrapperClassId | ( | ) | const |
Returns the class ID previously assigned to this handle or 0 if no class ID was previously assigned.
Definition at line 410 of file v8-traced-handle.h.
References TracedReferenceBase::IsEmpty(), and TracedReferenceBase::val_.
|
friend |
Definition at line 109 of file v8-traced-handle.h.
|
friend |
Definition at line 111 of file v8-traced-handle.h.
|
friend |
Definition at line 317 of file v8-traced-handle.h.
|
friend |
Definition at line 307 of file v8-traced-handle.h.
|
protected |
Definition at line 107 of file v8-traced-handle.h.
Referenced by TracedReferenceBase::Get(), TracedReferenceBase::GetSlotThreadSafe(), TracedReferenceBase::IsEmpty(), BasicTracedReference< T >::operator*(), BasicTracedReference< T >::operator->(), TracedReference< T >::operator=(), TracedReferenceBase::Reset(), ReturnValue< T >::Set(), TracedReferenceBase::SetSlotThreadSafe(), TracedReferenceBase::SetWrapperClassId(), TracedReference< T >::TracedReference(), and TracedReferenceBase::WrapperClassId().