v8  8.4.371 (node 14.15.5)
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 82 of file v8-internal.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kSmiShiftSize 
kSmiValueSize 

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

Member Function Documentation

◆ IsValidSmi()

static constexpr V8_INLINE bool IsValidSmi ( intptr_t  value)
inlinestaticconstexpr

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

Referenced by Internals::IsValidSmi().

◆ SmiToInt()

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

Definition at line 89 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 87 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:52

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


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