v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
SmiTagging< 4 > Struct Reference

#include <v8-internal.h>

Public Types

enum  { kSmiShiftSize = 0 , kSmiValueSize = 31 }
 

Static Public Member Functions

static V8_INLINE constexpr int SmiToInt (Address value)
 
static V8_INLINE constexpr 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 78 of file v8-internal.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kSmiShiftSize 
kSmiValueSize 

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

Member Function Documentation

◆ IsValidSmi()

static V8_INLINE constexpr bool IsValidSmi ( intptr_t  value)
inlinestaticconstexpr

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

References v8::internal::kSmiMaxValue, and v8::internal::kSmiMinValue.

◆ SmiToInt()

static V8_INLINE constexpr int SmiToInt ( Address  value)
inlinestaticconstexpr

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

References v8::internal::kSmiShiftSize, and v8::internal::kSmiTagSize.

Field Documentation

◆ kSmiMaxValue

constexpr intptr_t kSmiMaxValue = -(kSmiMinValue + 1)
staticconstexpr

Definition at line 83 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:73

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


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