![]() |
v8 14.1.146 (node 25.0.0)
V8 is Google's open source JavaScript engine
|
#include <v8-traced-handle.h>


Public Member Functions | |
| V8_INLINE void | Reset () |
| V8_INLINE Local< Data > | Get (Isolate *isolate) const |
| bool | IsEmptyThreadSafe () const |
Public Member Functions inherited from 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::Address * | GetSlotThreadSafe () const |
| V8_EXPORT void | CheckValue () const |
Protected Member Functions inherited from IndirectHandleBase | |
| V8_INLINE | IndirectHandleBase ()=default |
| V8_INLINE | IndirectHandleBase (const IndirectHandleBase &other)=default |
| V8_INLINE IndirectHandleBase & | operator= (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 T * | value () const |
| V8_INLINE internal::ValueHelper::InternalRepresentationType | repr () const |
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 &) |
An indirect handle, where the indirect pointer points to a GlobalHandles node.
Definition at line 54 of file v8-traced-handle.h.
|
protecteddefault |
|
protected |
Construct a Local<Data> from this handle.
Definition at line 68 of file v8-traced-handle.h.
References IndirectHandleBase::IsEmpty().
|
inlineprotected |
Get this reference in a thread-safe way
Definition at line 93 of file v8-traced-handle.h.
References IndirectHandleBase::slot().
Referenced by TracedReferenceBase::IsEmptyThreadSafe().
|
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.
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 309 of file v8-traced-handle.h.
References v8::internal::DisposeTracedReference(), IndirectHandleBase::IsEmpty(), TracedReferenceBase::SetSlotThreadSafe(), and IndirectHandleBase::slot().
|
inlineprotected |
Update this reference in a thread-safe way.
Definition at line 85 of file v8-traced-handle.h.
References IndirectHandleBase::slot().
Referenced by TracedReferenceBase::Reset().
|
friend |
Definition at line 100 of file v8-traced-handle.h.
|
friend |
Definition at line 102 of file v8-traced-handle.h.
|
friend |
Definition at line 323 of file v8-traced-handle.h.
|
friend |
Definition at line 317 of file v8-traced-handle.h.
Referenced by v8::operator!=().