v8
8.6.395 (node 15.0.1)
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Member Functions | |
bool | IsEmpty () const |
V8_INLINE void | Reset () |
Local< T > | Get (Isolate *isolate) const |
template<class S > | |
V8_INLINE bool | operator== (const TracedReferenceBase< S > &that) const |
template<class S > | |
V8_INLINE bool | operator== (const Local< S > &that) const |
template<class S > | |
V8_INLINE bool | operator!= (const TracedReferenceBase< S > &that) const |
template<class S > | |
V8_INLINE bool | operator!= (const Local< S > &that) const |
V8_INLINE void | SetWrapperClassId (uint16_t class_id) |
V8_INLINE uint16_t | WrapperClassId () const |
template<class S > | |
V8_INLINE TracedReferenceBase< S > & | As () const |
Protected Member Functions | |
void | SetSlotThreadSafe (T *new_val) |
const T * | GetSlotThreadSafe () const |
Friends | |
class | EmbedderHeapTracer |
template<typename F > | |
class | Local |
class | Object |
template<typename F > | |
class | TracedGlobal |
template<typename F > | |
class | TracedReference |
template<typename F > | |
class | ReturnValue |
A traced handle with copy and move semantics. The handle is to be used together with |v8::EmbedderHeapTracer| and specifies edges from the embedder into V8's heap.
The exact semantics are:
Note that the base class cannot be instantiated itself. Choose from
|
inline |
Definition at line 902 of file v8.h.
References Local< T >::TracedReferenceBase.
Construct a Local<T> from this handle.
Definition at line 860 of file v8.h.
References Local< T >::Local.
|
inlineprotected |
|
inline |
Returns true if this TracedReferenceBase is empty, i.e., has not been assigned an object.
Definition at line 849 of file v8.h.
Referenced by TracedReferenceBase< T >::Reset(), TracedReferenceBase< T >::SetWrapperClassId(), and TracedReferenceBase< T >::WrapperClassId().
|
inline |
|
inline |
void Reset |
If non-empty, destroy the underlying storage cell. |IsEmpty| will return true after this call.
Definition at line 10960 of file v8.h.
References TracedReferenceBase< T >::IsEmpty(), and TracedReferenceBase< T >::SetSlotThreadSafe().
|
inlineprotected |
Update this reference in a thread-safe way
Definition at line 911 of file v8.h.
Referenced by TracedReferenceBase< T >::Reset().
void SetWrapperClassId | ( | uint16_t | class_id | ) |
Assigns a wrapper class ID to the handle.
Definition at line 11067 of file v8.h.
References TracedReferenceBase< T >::IsEmpty(), and Internals::kNodeClassIdOffset.
uint16_t WrapperClassId |
Returns the class ID previously assigned to this handle or 0 if no class ID was previously assigned.
Definition at line 11076 of file v8.h.
References TracedReferenceBase< T >::IsEmpty(), and Internals::kNodeClassIdOffset.
|
friend |
|
friend |
|
friend |
|
friend |