v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::Smi Class Reference

#include <smi.h>

Inheritance diagram for v8::internal::Smi:
Collaboration diagram for v8::internal::Smi:

Static Public Member Functions

static constexpr Tagged< SmiToUint32Smi (Tagged< Smi > smi)
 
static constexpr int ToInt (const Tagged< Object > object)
 
static constexpr Tagged< SmiFromInt (int value)
 
static constexpr Tagged< SmiFromIntptr (intptr_t value)
 
static constexpr Tagged< SmiFrom31BitPattern (int value)
 
template<typename E >
requires std::is_enum<E>::value
static constexpr Tagged< SmiFromEnum (E value)
 
template<typename T >
requires (std::is_integral_v<T> && std::is_signed_v<T>)
static bool constexpr IsValid (T value)
 
template<typename T >
requires (std::is_integral_v<T> && std::is_unsigned_v<T>)
static bool constexpr IsValid (T value)
 
static V8_EXPORT_PRIVATE Address LexicographicCompare (Isolate *isolate, Tagged< Smi > x, Tagged< Smi > y)
 
static V8_EXPORT_PRIVATE void SmiPrint (Tagged< Smi > smi, std::ostream &os)
 
static constexpr Tagged< Smizero ()
 
static constexpr Tagged< Smiuninitialized_deserialization_value ()
 

Static Public Attributes

static constexpr int kMinValue = kSmiMinValue
 
static constexpr int kMaxValue = kSmiMaxValue
 

Detailed Description

Definition at line 25 of file smi.h.

Member Function Documentation

◆ From31BitPattern()

static constexpr Tagged< Smi > v8::internal::Smi::From31BitPattern ( int value)
inlinestaticconstexpr

Definition at line 52 of file smi.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FromEnum()

template<typename E >
requires std::is_enum<E>::value
static constexpr Tagged< Smi > v8::internal::Smi::FromEnum ( E value)
inlinestaticconstexpr

Definition at line 58 of file smi.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FromInt()

static constexpr Tagged< Smi > v8::internal::Smi::FromInt ( int value)
inlinestaticconstexpr

Definition at line 38 of file smi.h.

Here is the call graph for this function:

◆ FromIntptr()

static constexpr Tagged< Smi > v8::internal::Smi::FromIntptr ( intptr_t value)
inlinestaticconstexpr

Definition at line 43 of file smi.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsValid() [1/2]

template<typename T >
requires (std::is_integral_v<T> && std::is_signed_v<T>)
static bool constexpr v8::internal::Smi::IsValid ( T value)
inlinestaticconstexpr

Definition at line 67 of file smi.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsValid() [2/2]

template<typename T >
requires (std::is_integral_v<T> && std::is_unsigned_v<T>)
static bool constexpr v8::internal::Smi::IsValid ( T value)
inlinestaticconstexpr

Definition at line 75 of file smi.h.

Here is the call graph for this function:

◆ LexicographicCompare()

Address v8::internal::Smi::LexicographicCompare ( Isolate * isolate,
Tagged< Smi > x,
Tagged< Smi > y )
static

Definition at line 6618 of file objects.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SmiPrint()

void v8::internal::Smi::SmiPrint ( Tagged< Smi > smi,
std::ostream & os )
static

Definition at line 1913 of file objects.cc.

Here is the caller graph for this function:

◆ ToInt()

static constexpr int v8::internal::Smi::ToInt ( const Tagged< Object > object)
inlinestaticconstexpr

Definition at line 33 of file smi.h.

◆ ToUint32Smi()

static constexpr Tagged< Smi > v8::internal::Smi::ToUint32Smi ( Tagged< Smi > smi)
inlinestaticconstexpr

Definition at line 27 of file smi.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ uninitialized_deserialization_value()

static constexpr Tagged< Smi > v8::internal::Smi::uninitialized_deserialization_value ( )
inlinestaticconstexpr

Definition at line 114 of file smi.h.

Here is the caller graph for this function:

◆ zero()

static constexpr Tagged< Smi > v8::internal::Smi::zero ( )
inlinestaticconstexpr

Definition at line 99 of file smi.h.

Here is the call graph for this function:

Member Data Documentation

◆ kMaxValue

int v8::internal::Smi::kMaxValue = kSmiMaxValue
staticconstexpr

Definition at line 101 of file smi.h.

◆ kMinValue

int v8::internal::Smi::kMinValue = kSmiMinValue
staticconstexpr

Definition at line 100 of file smi.h.


The documentation for this class was generated from the following files: