v8 13.6.233 (node 24.1.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
ValueHelper Class Referencefinal

#include <v8-internal.h>

Public Types

using InternalRepresentationType = internal::Address*
 

Static Public Member Functions

template<typename T>
static V8_INLINE bool IsEmpty (T *value)
 
template<template< typename T, typename... Ms > typename H, typename T, typename... Ms>
static V8_INLINE T * HandleAsValue (const H< T, Ms... > &handle)
 
template<typename T>
static V8_INLINE Address ValueAsAddress (const T *value)
 
template<typename T, bool check_null = true, typename S>
static V8_INLINE T * SlotAsValue (S *slot)
 
template<typename T>
static V8_INLINE InternalRepresentationType ValueAsRepr (const T *value)
 
template<typename T>
static V8_INLINE T * ReprAsValue (InternalRepresentationType repr)
 

Static Public Attributes

static constexpr InternalRepresentationType kEmpty = nullptr
 

Detailed Description

Definition at line 1615 of file v8-internal.h.

Member Typedef Documentation

◆ InternalRepresentationType

Definition at line 1629 of file v8-internal.h.

Member Function Documentation

◆ HandleAsValue()

template<template< typename T, typename... Ms > typename H, typename T, typename... Ms>
static V8_INLINE T * HandleAsValue ( const H< T, Ms... > & handle)
inlinestatic

Definition at line 1643 of file v8-internal.h.

References V8_INLINE.

◆ IsEmpty()

template<typename T>
static V8_INLINE bool IsEmpty ( T * value)
inlinestatic

Definition at line 1634 of file v8-internal.h.

References kEmpty, V8_INLINE, and ValueAsRepr().

Referenced by LocalBase< T >::New().

◆ ReprAsValue()

template<typename T>
static V8_INLINE T * ReprAsValue ( InternalRepresentationType repr)
inlinestatic

Definition at line 1691 of file v8-internal.h.

References V8_INLINE.

Referenced by Context::GetDataFromSnapshotOnce(), and Isolate::GetDataFromSnapshotOnce().

◆ SlotAsValue()

◆ ValueAsAddress()

◆ ValueAsRepr()

template<typename T>
static V8_INLINE InternalRepresentationType ValueAsRepr ( const T * value)
inlinestatic

Definition at line 1685 of file v8-internal.h.

References V8_INLINE.

Referenced by IsEmpty().

Field Documentation

◆ kEmpty

InternalRepresentationType kEmpty = nullptr
staticconstexpr

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