v8  9.4.146 (node 16.13.0)
V8 is Google's open source JavaScript engine
SmiTagging< 8 > Struct Reference

#include <v8-internal.h>

Public Types

enum  { kSmiShiftSize = 31 , kSmiValueSize = 32 }
 

Static Public Member Functions

static V8_INLINE int SmiToInt (const internal::Address value)
 
static constexpr V8_INLINE bool IsValidSmi (intptr_t value)
 

Static Public Attributes

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

Detailed Description

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kSmiShiftSize 
kSmiValueSize 

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

Member Function Documentation

◆ IsValidSmi()

static constexpr V8_INLINE bool IsValidSmi ( intptr_t  value)
inlinestaticconstexpr

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

Referenced by Internals::IsValidSmi().

◆ SmiToInt()

static V8_INLINE int SmiToInt ( const internal::Address  value)
inlinestatic

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

References SmiTagging< 8 >::kSmiShiftSize, and v8::internal::kSmiTagSize.

Referenced by Internals::SmiValue().

Field Documentation

◆ kSmiMaxValue

constexpr intptr_t kSmiMaxValue = -(kSmiMinValue + 1)
staticconstexpr

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

◆ kSmiMinValue

constexpr intptr_t kSmiMinValue
staticconstexpr
Initial value:
=
static_cast<intptr_t>(kUintptrAllBitsSet << (kSmiValueSize - 1))
constexpr uintptr_t kUintptrAllBitsSet
Definition: v8-internal.h:63

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


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