v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::Handle< T > Class Template Referencefinal

#include <handles.h>

Inheritance diagram for v8::internal::Handle< T >:
Collaboration diagram for v8::internal::Handle< T >:

Classes

struct  equal_to
 
struct  hash
 

Public Types

using MaybeType = MaybeHandle<T>
 

Public Member Functions

V8_INLINE Handle ()
 
V8_INLINE Handle (Address *location)
 
V8_INLINE Handle (Tagged< T > object, Isolate *isolate)
 
V8_INLINE Handle (Tagged< T > object, LocalIsolate *isolate)
 
V8_INLINE Handle (Tagged< T > object, LocalHeap *local_heap)
 
template<typename S >
requires (is_subtype_v<S, T>)
V8_INLINE Handle (Handle< S > handle)
 
V8_INLINE Tagged< Toperator-> () const
 
V8_INLINE Tagged< Toperator* () const
 
bool equals (Handle< T > other) const
 
void PatchValue (Tagged< T > new_value)
 
- Public Member Functions inherited from v8::internal::HandleBase
V8_INLINE bool is_identical_to (const HandleBase &that) const
 
template<typename T >
V8_INLINE bool is_identical_to (const DirectHandle< T > &that) const
 
V8_INLINE bool is_null () const
 
V8_INLINE Address address () const
 
V8_INLINE Addresslocation () const
 
V8_INLINE ValueHelper::InternalRepresentationType repr () const
 

Static Public Member Functions

static V8_INLINE Handle< TNew (Tagged< T > object, Isolate *isolate)
 
static const Handle< Tnull ()
 

Friends

template<typename >
class Handle
 
template<typename >
class MaybeHandle
 
template<typename To , typename From >
IndirectHandle< To > UncheckedCast (IndirectHandle< From > value)
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::HandleBase
V8_INLINE HandleBase (Address *location)
 
V8_INLINE HandleBase (Address object, Isolate *isolate)
 
V8_INLINE HandleBase (Address object, LocalIsolate *isolate)
 
V8_INLINE HandleBase (Address object, LocalHeap *local_heap)
 
V8_INLINE bool IsDereferenceAllowed () const
 
- Protected Attributes inherited from v8::internal::HandleBase
Addresslocation_
 

Detailed Description

template<typename T>
class v8::internal::Handle< T >

Definition at line 149 of file handles.h.

Member Typedef Documentation

◆ MaybeType

template<typename T >
using v8::internal::Handle< T >::MaybeType = MaybeHandle<T>

Definition at line 232 of file handles.h.

Constructor & Destructor Documentation

◆ Handle() [1/6]

template<typename T >
V8_INLINE v8::internal::Handle< T >::Handle ( )
inline

Definition at line 154 of file handles.h.

◆ Handle() [2/6]

template<typename T >
V8_INLINE v8::internal::Handle< T >::Handle ( Address * location)
inlineexplicit

Definition at line 156 of file handles.h.

◆ Handle() [3/6]

template<typename T >
v8::internal::Handle< T >::Handle ( Tagged< T > object,
Isolate * isolate )

Definition at line 60 of file handles-inl.h.

◆ Handle() [4/6]

template<typename T >
v8::internal::Handle< T >::Handle ( Tagged< T > object,
LocalIsolate * isolate )

Definition at line 64 of file handles-inl.h.

◆ Handle() [5/6]

template<typename T >
v8::internal::Handle< T >::Handle ( Tagged< T > object,
LocalHeap * local_heap )

Definition at line 68 of file handles-inl.h.

◆ Handle() [6/6]

template<typename T >
template<typename S >
requires (is_subtype_v<S, T>)
V8_INLINE v8::internal::Handle< T >::Handle ( Handle< S > handle)
inline

Definition at line 170 of file handles.h.

Member Function Documentation

◆ equals()

template<typename T >
bool v8::internal::Handle< T >::equals ( Handle< T > other) const
inline

Definition at line 209 of file handles.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ New()

template<typename T >
Handle< T > v8::internal::Handle< T >::New ( Tagged< T > object,
Isolate * isolate )
static

Definition at line 46 of file handles-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ null()

template<typename T >
static const Handle< T > v8::internal::Handle< T >::null ( )
inlinestatic

Definition at line 206 of file handles.h.

◆ operator*()

template<typename T >
V8_INLINE Tagged< T > v8::internal::Handle< T >::operator* ( ) const
inline

Definition at line 192 of file handles.h.

Here is the call graph for this function:

◆ operator->()

template<typename T >
V8_INLINE Tagged< T > v8::internal::Handle< T >::operator-> ( ) const
inline

Definition at line 180 of file handles.h.

◆ PatchValue()

template<typename T >
void v8::internal::Handle< T >::PatchValue ( Tagged< T > new_value)
inline

Definition at line 213 of file handles.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ Handle

template<typename T >
template<typename >
friend class Handle
friend

Definition at line 237 of file handles.h.

◆ MaybeHandle

template<typename T >
template<typename >
friend class MaybeHandle
friend

Definition at line 240 of file handles.h.

◆ UncheckedCast

template<typename T >
template<typename To , typename From >
IndirectHandle< To > UncheckedCast ( IndirectHandle< From > value)
friend

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