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

#include <v8.h>

Static Public Member Functions

static V8_INLINE int SmiToInt (const internal::Object *value)
 
static V8_INLINE internal::Object * IntToSmi (int value)
 
static V8_INLINE bool IsValidSmi (intptr_t value)
 

Static Public Attributes

static const int kSmiShiftSize = 31
 
static const int kSmiValueSize = 32
 

Detailed Description

Definition at line 5554 of file v8.h.

Member Function Documentation

◆ IntToSmi()

static V8_INLINE internal::Object* IntToSmi ( int  value)
inlinestatic

Definition at line 5562 of file v8.h.

References v8::internal::IntToSmi(), and SmiTagging< 8 >::kSmiShiftSize.

Referenced by Internals::IntToSmi().

◆ IsValidSmi()

static V8_INLINE bool IsValidSmi ( intptr_t  value)
inlinestatic

Definition at line 5565 of file v8.h.

Referenced by Internals::IsValidSmi().

◆ SmiToInt()

static V8_INLINE int SmiToInt ( const internal::Object *  value)
inlinestatic

Definition at line 5557 of file v8.h.

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

Referenced by Internals::SmiValue().

Field Documentation

◆ kSmiShiftSize

const int kSmiShiftSize = 31
static

Definition at line 5555 of file v8.h.

Referenced by SmiTagging< 8 >::IntToSmi(), and SmiTagging< 8 >::SmiToInt().

◆ kSmiValueSize

const int kSmiValueSize = 32
static

Definition at line 5556 of file v8.h.


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