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

#include <v8-internal.h>

Public Types

enum  { kSmiShiftSize = 0 , kSmiValueSize = 31 }
 

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 constexpr bool IsValidSmi (int64_t value)
 
static constexpr bool IsValidSmi (uint64_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/4]

static constexpr bool v8::internal::SmiTagging< 4 >::IsValidSmi ( int64_t  value)
inlinestaticconstexpr

◆ IsValidSmi() [2/4]

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< 4 >::IsValidSmi ( value)
inlinestaticconstexpr

◆ IsValidSmi() [3/4]

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< 4 >::IsValidSmi ( value)
inlinestaticconstexpr

◆ IsValidSmi() [4/4]

static constexpr bool v8::internal::SmiTagging< 4 >::IsValidSmi ( uint64_t  value)
inlinestaticconstexpr

◆ SmiToInt()

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

Member Data Documentation

◆ kSmiMaxValue

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

◆ kSmiMinValue

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

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