Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
v8::internal::SmiTagging< 8 > Struct Reference

#include <v8-internal.h>

Public Types

enum  { kSmiShiftSize = 31 , kSmiValueSize = 32 }
 

Static Public Member Functions

static constexpr int SmiToInt (Address value)
 
template<class T , typename std::enable_if_t< std::is_integral_v< T > &&std::is_signed_v< T > > * = nullptr>
static constexpr bool IsValidSmi (T value)
 
template<class T , typename std::enable_if_t< std::is_integral_v< T > &&std::is_unsigned_v< T > > * = nullptr>
static constexpr bool IsValidSmi (T value)
 

Static Public Attributes

static constexpr intptr_t kSmiMinValue
 
static constexpr intptr_t kSmiMaxValue = -(kSmiMinValue + 1)
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kSmiShiftSize 
kSmiValueSize 

Member Function Documentation

◆ IsValidSmi() [1/2]

template<class T , typename std::enable_if_t< std::is_integral_v< T > &&std::is_signed_v< T > > * = nullptr>
static constexpr bool v8::internal::SmiTagging< 8 >::IsValidSmi ( value)
inlinestaticconstexpr

◆ IsValidSmi() [2/2]

template<class T , typename std::enable_if_t< std::is_integral_v< T > &&std::is_unsigned_v< T > > * = nullptr>
static constexpr bool v8::internal::SmiTagging< 8 >::IsValidSmi ( value)
inlinestaticconstexpr

◆ SmiToInt()

static constexpr int v8::internal::SmiTagging< 8 >::SmiToInt ( Address  value)
inlinestaticconstexpr

Member Data Documentation

◆ kSmiMaxValue

constexpr intptr_t v8::internal::SmiTagging< 8 >::kSmiMaxValue = -(kSmiMinValue + 1)
staticconstexpr

◆ kSmiMinValue

constexpr intptr_t v8::internal::SmiTagging< 8 >::kSmiMinValue
staticconstexpr
Initial value:
=
static_cast<intptr_t>(kUintptrAllBitsSet << (kSmiValueSize - 1))
constexpr uintptr_t kUintptrAllBitsSet
Definition: v8-internal.h:75
@ kSmiValueSize
Definition: v8-internal.h:131

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