v8 14.1.146 (node 25.0.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 1715 of file v8-internal.h.

Member Typedef Documentation

◆ InternalRepresentationType

Definition at line 1729 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 1743 of file v8-internal.h.

◆ IsEmpty()

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

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

References ValueHelper::kEmpty.

◆ ReprAsValue()

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

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

◆ SlotAsValue()

template<typename T , bool check_null = true, typename S >
static V8_INLINE T * SlotAsValue ( S *  slot)
inlinestatic

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

◆ ValueAsAddress()

template<typename T >
static V8_INLINE Address ValueAsAddress ( const T *  value)
inlinestatic

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

◆ ValueAsRepr()

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

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

Field Documentation

◆ kEmpty

constexpr InternalRepresentationType kEmpty = nullptr
staticconstexpr

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