![]() |
V8
latest master commit
V8 is Google's open source JavaScript engine
|
#include <v8.h>
Public Member Functions | |
TracedReference () | |
template<class S > | |
TracedReference (Isolate *isolate, Local< S > that) | |
V8_INLINE | TracedReference (TracedReference &&other) |
template<typename S > | |
V8_INLINE | TracedReference (TracedReference< S > &&other) |
V8_INLINE | TracedReference (const TracedReference &other) |
template<typename S > | |
V8_INLINE | TracedReference (const TracedReference< S > &other) |
V8_INLINE TracedReference & | operator= (TracedReference &&rhs) |
template<class S > | |
V8_INLINE TracedReference & | operator= (TracedReference< S > &&rhs) |
V8_INLINE TracedReference & | operator= (const TracedReference &rhs) |
template<class S > | |
V8_INLINE TracedReference & | operator= (const TracedReference< S > &rhs) |
template<class S > | |
V8_INLINE void | Reset (Isolate *isolate, const Local< S > &other) |
template<class S > | |
V8_INLINE TracedReference< S > & | As () const |
template<class S > | |
void | Reset (Isolate *isolate, const Local< S > &other) |
template<class S > | |
TracedReference< T > & | operator= (TracedReference< S > &&rhs) |
template<class S > | |
TracedReference< T > & | operator= (const TracedReference< S > &rhs) |
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. This can happen when the handle is not passed through the EmbedderHeapTracer. For more details see TracedReferenceBase.
The reference assumes the embedder has precise knowledge about references at all times. In case V8 needs to separately handle on-stack references, the embedder is required to set the stack start through |EmbedderHeapTracer::SetStackStart|.
|
inline |
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 |
Move constructor initializing TracedReference from an existing one.
|
inline |
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 |
TracedReference< T > & v8::TracedReference< T >::operator= | ( | const TracedReference< T > & | rhs | ) |
Copy assignment operator initializing TracedGlobal from an existing one.
V8_INLINE TracedReference& v8::TracedReference< T >::operator= | ( | const TracedReference< S > & | rhs | ) |
Copy assignment operator initializing TracedGlobal from an existing one.
TracedReference<T>& v8::TracedReference< T >::operator= | ( | const TracedReference< S > & | rhs | ) |
TracedReference< T > & v8::TracedReference< T >::operator= | ( | TracedReference< T > && | rhs | ) |
Move assignment operator initializing TracedGlobal from an existing one.
V8_INLINE TracedReference& v8::TracedReference< T >::operator= | ( | TracedReference< S > && | rhs | ) |
Move assignment operator initializing TracedGlobal from an existing one.
TracedReference<T>& v8::TracedReference< T >::operator= | ( | TracedReference< S > && | rhs | ) |
V8_INLINE void v8::TracedReference< T >::Reset | ( | Isolate * | isolate, |
const Local< S > & | other | ||
) |
If non-empty, destroy the underlying storage cell and create a new one with the contents of other if other is non empty
void v8::TracedReference< T >::Reset | ( | Isolate * | isolate, |
const Local< S > & | other | ||
) |