v8  9.0.257(node16.0.0)
V8 is Google's open source JavaScript engine
BasicTracedReference< T > Class Template Reference

#include <v8.h>

Public Member Functions

Local< T > Get (Isolate *isolate) const
 
template<class S >
V8_INLINE BasicTracedReference< S > & As () const
 
T * operator-> () const
 
T * operator* () 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 BasicTracedReference
 
template<typename F >
class ReturnValue
 

Detailed Description

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

A traced handle with copy and move semantics. The handle is to be used together with |v8::EmbedderHeapTracer| or as part of GarbageCollected objects (see v8-cppgc.h) and specifies edges from C++ objects to JavaScript.

The exact semantics are:

  • Tracing garbage collections use |v8::EmbedderHeapTracer| or cppgc.
  • Non-tracing garbage collections refer to |v8::EmbedderHeapTracer::IsRootForNonTracingGC()| whether the handle should be treated as root or not.

Note that the base class cannot be instantiated itself. Choose from

Definition at line 104 of file v8.h.

Member Function Documentation

◆ As()

V8_INLINE BasicTracedReference<S>& As ( ) const
inline

Definition at line 924 of file v8.h.

References V8::BasicTracedReference.

◆ Get()

Local<T> Get ( Isolate isolate) const
inline

Construct a Local<T> from this handle.

Definition at line 921 of file v8.h.

References V8::Local.

◆ operator*()

T* operator* ( ) const
inline

Definition at line 930 of file v8.h.

References TracedReferenceBase::val_.

◆ operator->()

T* operator-> ( ) const
inline

Friends And Related Function Documentation

◆ BasicTracedReference

friend class BasicTracedReference
friend

Definition at line 952 of file v8.h.

◆ EmbedderHeapTracer

friend class EmbedderHeapTracer
friend

Definition at line 943 of file v8.h.

◆ Local

friend class Local
friend

Definition at line 945 of file v8.h.

◆ Object

friend class Object
friend

Definition at line 946 of file v8.h.

◆ ReturnValue

friend class ReturnValue
friend

Definition at line 954 of file v8.h.

◆ TracedGlobal

friend class TracedGlobal
friend

Definition at line 948 of file v8.h.

◆ TracedReference

friend class TracedReference
friend

Definition at line 950 of file v8.h.


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