#include <v8-traced-handle.h>
Classes | |
struct | IsDroppable |
Public Member Functions | |
TracedReference ()=default | |
template<class S > | |
TracedReference (Isolate *isolate, Local< S > that) | |
template<class S > | |
TracedReference (Isolate *isolate, Local< S > that, IsDroppable) | |
TracedReference (TracedReference &&other) noexcept | |
template<typename S > | |
TracedReference (TracedReference< S > &&other) noexcept | |
TracedReference (const TracedReference &other) | |
template<typename S > | |
TracedReference (const TracedReference< S > &other) | |
TracedReference & | operator= (TracedReference &&rhs) noexcept |
template<class S > | |
TracedReference & | operator= (TracedReference< S > &&rhs) noexcept |
TracedReference & | operator= (const TracedReference &rhs) |
template<class S > | |
TracedReference & | operator= (const TracedReference< S > &rhs) |
template<class S > | |
void | Reset (Isolate *isolate, const Local< S > &other) |
template<class S > | |
void | Reset (Isolate *isolate, const Local< S > &other, IsDroppable) |
template<class S > | |
TracedReference< S > & | As () const |
template<class S > | |
TracedReference< T > & | operator= (TracedReference< S > &&rhs) noexcept |
template<class S > | |
TracedReference< T > & | operator= (const TracedReference< S > &rhs) |
Public Member Functions inherited from v8::BasicTracedReference< T > | |
Local< T > | Get (Isolate *isolate) const |
template<class S > | |
BasicTracedReference< S > & | As () const |
Public Member Functions inherited from v8::TracedReferenceBase | |
void | Reset () |
Local< Data > | Get (Isolate *isolate) const |
bool | IsEmptyThreadSafe () const |
Public Member Functions inherited from v8::api_internal::IndirectHandleBase | |
bool | IsEmpty () const |
void | Clear () |
Additional Inherited Members | |
Protected Member Functions inherited from v8::TracedReferenceBase | |
TracedReferenceBase ()=default | |
void | SetSlotThreadSafe (internal::Address *new_val) |
const internal::Address * | GetSlotThreadSafe () const |
void | CheckValue () const |
Protected Member Functions inherited from v8::api_internal::IndirectHandleBase | |
IndirectHandleBase ()=default | |
IndirectHandleBase (const IndirectHandleBase &other)=default | |
IndirectHandleBase & | operator= (const IndirectHandleBase &that)=default |
IndirectHandleBase (internal::Address *location) | |
internal::Address | ptr () const |
internal::Address *const & | slot () const |
internal::Address *& | slot () |
template<typename T , bool check_null = false> | |
T * | value () const |
internal::ValueHelper::InternalRepresentationType | repr () const |
A traced handle without destructor that clears the handle. The embedder needs to ensure that the handle is not accessed once the V8 object has been reclaimed. For more details see BasicTracedReference.
|
inlinedefault |
An empty TracedReference without storage cell.
|
inline |
Construct a TracedReference from a Local.
When the Local is non-empty, a new storage cell is created pointing to the same object.
|
inline |
Construct a droppable TracedReference from a Local. Droppable means that V8 is free to reclaim the pointee if it is unmodified and otherwise unreachable
When the Local is non-empty, a new storage cell is created pointing to the same object.
|
inlinenoexcept |
Move constructor initializing TracedReference from an existing one.
|
inlinenoexcept |
Move constructor initializing TracedReference from an existing one.
|
inline |
Copy constructor initializing TracedReference from an existing one.
|
inline |
Copy constructor initializing TracedReference from an existing one.
|
inline |
|
inline |
Copy assignment operator initializing TracedReference from an existing one.
|
inline |
Copy assignment operator initializing TracedReference from an existing one.
TracedReference< T > & v8::TracedReference< T >::operator= | ( | const TracedReference< S > & | rhs | ) |
|
inlinenoexcept |
Move assignment operator initializing TracedReference from an existing one.
|
inlinenoexcept |
Move assignment operator initializing TracedReference from an existing one.
|
noexcept |
|
inline |
Always resets the reference. Creates a new reference from other
if it is non-empty.
|
inline |
Always resets the reference. Creates a new reference from other
if it is non-empty. The new reference is droppable, see constructor.