![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <v8-traced-handle.h>
Public Member Functions | |
Local< T > | Get (Isolate *isolate) const |
template<class S > | |
V8_INLINE BasicTracedReference< S > & | As () const |
![]() | |
V8_INLINE void | Reset () |
V8_INLINE Local< Data > | Get (Isolate *isolate) const |
bool | IsEmptyThreadSafe () const |
![]() | |
V8_INLINE bool | IsEmpty () const |
V8_INLINE void | Clear () |
Private Member Functions | |
BasicTracedReference ()=default | |
Static Private Member Functions | |
static V8_INLINE internal::Address * | NewFromNonEmptyValue (Isolate *isolate, T *that, internal::Address **slot, internal::TracedReferenceStoreMode store_mode, internal::TracedReferenceHandling reference_handling) |
Friends | |
template<typename F > | |
class | Local |
class | Object |
template<typename F > | |
class | TracedReference |
template<typename F > | |
class | BasicTracedReference |
template<typename F > | |
class | ReturnValue |
Additional Inherited Members | |
![]() | |
V8_INLINE | TracedReferenceBase ()=default |
void | SetSlotThreadSafe (internal::Address *new_val) |
const internal::Address * | GetSlotThreadSafe () const |
V8_EXPORT void | CheckValue () const |
![]() | |
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 |
A traced handle with copy and move semantics. The handle is to be used together as part of GarbageCollected objects (see v8-cppgc.h) or from stack and specifies edges from C++ objects to JavaScript.
The exact semantics are:
Note that the base class cannot be instantiated itself, use |TracedReference| instead.
Definition at line 124 of file v8-traced-handle.h.
|
privatedefault |
An empty BasicTracedReference without storage cell.
|
inline |
Definition at line 132 of file v8-traced-handle.h.
|
inline |
Construct a Local<T> from this handle.
Definition at line 129 of file v8-traced-handle.h.
|
staticprivate |
Definition at line 154 of file v8-traced-handle.h.
Definition at line 149 of file v8-traced-handle.h.
Definition at line 150 of file v8-traced-handle.h.
Definition at line 156 of file v8-traced-handle.h.
Definition at line 152 of file v8-traced-handle.h.