V8  latest master commit
V8 is Google's open source JavaScript engine
v8::TracedGlobal< T > Class Template Reference

#include <v8.h>

Public Member Functions

 ~TracedGlobal ()
 
 TracedGlobal ()
 
template<class S >
 TracedGlobal (Isolate *isolate, Local< S > that)
 
V8_INLINE TracedGlobal (TracedGlobal &&other)
 
template<typename S >
V8_INLINE TracedGlobal (TracedGlobal< S > &&other)
 
V8_INLINE TracedGlobal (const TracedGlobal &other)
 
template<typename S >
V8_INLINE TracedGlobal (const TracedGlobal< S > &other)
 
V8_INLINE TracedGlobaloperator= (TracedGlobal &&rhs)
 
template<class S >
V8_INLINE TracedGlobaloperator= (TracedGlobal< S > &&rhs)
 
V8_INLINE TracedGlobaloperator= (const TracedGlobal &rhs)
 
template<class S >
V8_INLINE TracedGlobaloperator= (const TracedGlobal< S > &rhs)
 
template<class S >
V8_INLINE void Reset (Isolate *isolate, const Local< S > &other)
 
template<class S >
V8_INLINE TracedGlobal< S > & As () const
 
V8_INLINE void SetFinalizationCallback (void *parameter, WeakCallbackInfo< void >::Callback callback)
 
template<class S >
void Reset (Isolate *isolate, const Local< S > &other)
 
template<class S >
TracedGlobal< T > & operator= (TracedGlobal< S > &&rhs)
 
template<class S >
TracedGlobal< T > & operator= (const TracedGlobal< S > &rhs)
 

Detailed Description

template<typename T>
class v8::TracedGlobal< T >

A traced handle with destructor that clears the handle. For more details see TracedReferenceBase.

Definition at line 101 of file v8.h.

Constructor & Destructor Documentation

◆ ~TracedGlobal()

template<typename T >
v8::TracedGlobal< T >::~TracedGlobal ( )
inline

Destructor resetting the handle.

Definition at line 940 of file v8.h.

◆ TracedGlobal() [1/6]

template<typename T >
v8::TracedGlobal< T >::TracedGlobal ( )
inline

An empty TracedGlobal without storage cell.

Definition at line 945 of file v8.h.

◆ TracedGlobal() [2/6]

template<typename T >
template<class S >
v8::TracedGlobal< T >::TracedGlobal ( Isolate isolate,
Local< S >  that 
)
inline

Construct a TracedGlobal from a Local.

When the Local is non-empty, a new storage cell is created pointing to the same object.

Definition at line 954 of file v8.h.

◆ TracedGlobal() [3/6]

template<typename T >
V8_INLINE v8::TracedGlobal< T >::TracedGlobal ( TracedGlobal< T > &&  other)
inline

Move constructor initializing TracedGlobal from an existing one.

Definition at line 963 of file v8.h.

◆ TracedGlobal() [4/6]

template<typename T >
template<typename S >
V8_INLINE v8::TracedGlobal< T >::TracedGlobal ( TracedGlobal< S > &&  other)
inline

Move constructor initializing TracedGlobal from an existing one.

Definition at line 972 of file v8.h.

◆ TracedGlobal() [5/6]

template<typename T >
V8_INLINE v8::TracedGlobal< T >::TracedGlobal ( const TracedGlobal< T > &  other)
inline

Copy constructor initializing TracedGlobal from an existing one.

Definition at line 980 of file v8.h.

◆ TracedGlobal() [6/6]

template<typename T >
template<typename S >
V8_INLINE v8::TracedGlobal< T >::TracedGlobal ( const TracedGlobal< S > &  other)
inline

Copy constructor initializing TracedGlobal from an existing one.

Definition at line 989 of file v8.h.

Member Function Documentation

◆ As()

template<typename T >
template<class S >
V8_INLINE TracedGlobal<S>& v8::TracedGlobal< T >::As ( ) const
inline

Definition at line 1030 of file v8.h.

◆ operator=() [1/6]

template<class T >
TracedGlobal< T > & v8::TracedGlobal< T >::operator= ( const TracedGlobal< T > &  rhs)

Copy assignment operator initializing TracedGlobal from an existing one.

Note: Prohibited when |other| has a finalization callback set through |SetFinalizationCallback|.

Definition at line 10929 of file v8.h.

◆ operator=() [2/6]

template<typename T >
template<class S >
V8_INLINE TracedGlobal& v8::TracedGlobal< T >::operator= ( const TracedGlobal< S > &  rhs)

Copy assignment operator initializing TracedGlobal from an existing one.

Note: Prohibited when |other| has a finalization callback set through |SetFinalizationCallback|.

◆ operator=() [3/6]

template<typename T >
template<class S >
TracedGlobal<T>& v8::TracedGlobal< T >::operator= ( const TracedGlobal< S > &  rhs)

Definition at line 10912 of file v8.h.

◆ operator=() [4/6]

template<class T >
TracedGlobal< T > & v8::TracedGlobal< T >::operator= ( TracedGlobal< T > &&  rhs)

Move assignment operator initializing TracedGlobal from an existing one.

Definition at line 10919 of file v8.h.

◆ operator=() [5/6]

template<typename T >
template<class S >
V8_INLINE TracedGlobal& v8::TracedGlobal< T >::operator= ( TracedGlobal< S > &&  rhs)

Move assignment operator initializing TracedGlobal from an existing one.

◆ operator=() [6/6]

template<typename T >
template<class S >
TracedGlobal<T>& v8::TracedGlobal< T >::operator= ( TracedGlobal< S > &&  rhs)

Definition at line 10904 of file v8.h.

◆ Reset() [1/2]

template<typename T >
template<class S >
V8_INLINE void v8::TracedGlobal< 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

◆ Reset() [2/2]

template<typename T >
template<class S >
void v8::TracedGlobal< T >::Reset ( Isolate isolate,
const Local< S > &  other 
)

Definition at line 10894 of file v8.h.

◆ SetFinalizationCallback()

template<class T >
void v8::TracedGlobal< T >::SetFinalizationCallback ( void *  parameter,
WeakCallbackInfo< void >::Callback  callback 
)

Adds a finalization callback to the handle. The type of this callback is similar to WeakCallbackType::kInternalFields, i.e., it will pass the parameter and the first two internal fields of the object.

The callback is then supposed to reset the handle in the callback. No further V8 API may be called in this callback. In case additional work involving V8 needs to be done, a second callback can be scheduled using WeakCallbackInfo<void>::SetSecondPassCallback.

Definition at line 11010 of file v8.h.


The documentation for this class was generated from the following file: