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

#include <maybe-handles.h>

Collaboration diagram for v8::internal::MaybeHandle< T >:

Public Member Functions

V8_INLINE MaybeHandle ()=default
 
V8_INLINE MaybeHandle (NullMaybeHandleType)
 
template<typename S >
requires (is_subtype_v<S, T>)
V8_INLINE MaybeHandle (Handle< S > handle)
 
template<typename S >
requires (is_subtype_v<S, T>)
V8_INLINE MaybeHandle (MaybeHandle< S > maybe_handle)
 
V8_INLINE MaybeHandle (Tagged< T > object, Isolate *isolate)
 
V8_INLINE MaybeHandle (Tagged< T > object, LocalHeap *local_heap)
 
V8_INLINE void Assert () const
 
V8_INLINE void Check () const
 
V8_INLINE Handle< TToHandleChecked () const
 
template<typename S >
V8_WARN_UNUSED_RESULT V8_INLINE bool ToHandle (Handle< S > *out) const
 
template<typename S >
V8_WARN_UNUSED_RESULT V8_INLINE bool ToHandle (DirectHandle< S > *out) const
 
bool equals (MaybeHandle< T > other) const
 
V8_INLINE Address address () const
 
bool is_null () const
 
template<typename S >
bool ToHandle (DirectHandle< S > *out) const
 

Protected Member Functions

V8_INLINE MaybeHandle (Address *location)
 

Protected Attributes

Addresslocation_ = nullptr
 

Friends

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

Detailed Description

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

Definition at line 28 of file maybe-handles.h.

Constructor & Destructor Documentation

◆ MaybeHandle() [1/7]

template<typename T >
V8_INLINE v8::internal::MaybeHandle< T >::MaybeHandle ( )
default

◆ MaybeHandle() [2/7]

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

Definition at line 32 of file maybe-handles.h.

◆ MaybeHandle() [3/7]

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

Definition at line 37 of file maybe-handles.h.

◆ MaybeHandle() [4/7]

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

Definition at line 45 of file maybe-handles.h.

◆ MaybeHandle() [5/7]

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

Definition at line 20 of file maybe-handles-inl.h.

◆ MaybeHandle() [6/7]

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

Definition at line 24 of file maybe-handles-inl.h.

◆ MaybeHandle() [7/7]

template<typename T >
V8_INLINE v8::internal::MaybeHandle< T >::MaybeHandle ( Address * location)
inlineexplicitprotected

Definition at line 89 of file maybe-handles.h.

Member Function Documentation

◆ address()

template<typename T >
V8_INLINE Address v8::internal::MaybeHandle< T >::address ( ) const
inline

Definition at line 82 of file maybe-handles.h.

Here is the caller graph for this function:

◆ Assert()

template<typename T >
V8_INLINE void v8::internal::MaybeHandle< T >::Assert ( ) const
inline

Definition at line 52 of file maybe-handles.h.

◆ Check()

template<typename T >
V8_INLINE void v8::internal::MaybeHandle< T >::Check ( ) const
inline

Definition at line 53 of file maybe-handles.h.

Here is the caller graph for this function:

◆ equals()

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

Definition at line 76 of file maybe-handles.h.

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

◆ is_null()

template<typename T >
bool v8::internal::MaybeHandle< T >::is_null ( ) const
inline

Definition at line 86 of file maybe-handles.h.

Here is the caller graph for this function:

◆ ToHandle() [1/3]

template<typename T >
template<typename S >
bool v8::internal::MaybeHandle< T >::ToHandle ( DirectHandle< S > * out) const

Definition at line 39 of file maybe-handles-inl.h.

Here is the call graph for this function:

◆ ToHandle() [2/3]

template<typename T >
template<typename S >
V8_WARN_UNUSED_RESULT V8_INLINE bool v8::internal::MaybeHandle< T >::ToHandle ( DirectHandle< S > * out) const

◆ ToHandle() [3/3]

template<typename T >
template<typename S >
V8_WARN_UNUSED_RESULT V8_INLINE bool v8::internal::MaybeHandle< T >::ToHandle ( Handle< S > * out) const
inline

Definition at line 62 of file maybe-handles.h.

Here is the caller graph for this function:

◆ ToHandleChecked()

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

Definition at line 55 of file maybe-handles.h.

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

Friends And Related Symbol Documentation

◆ MaybeHandle

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

Definition at line 96 of file maybe-handles.h.

◆ UncheckedCast

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

Member Data Documentation

◆ location_

template<typename T >
Address* v8::internal::MaybeHandle< T >::location_ = nullptr
protected

Definition at line 91 of file maybe-handles.h.


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