V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::Smi Class Reference
Inheritance diagram for v8::internal::Smi:
v8::internal::ObjectPtr

Public Member Functions

constexpr Smi (Address ptr)
 
Smioperator-> ()
 
const Smioperator-> () const
 
int value () const
 
Smi ToUint32Smi ()
 
bool ToInt32 (int32_t *value)
 
V8_EXPORT_PRIVATE void SmiPrint (std::ostream &os) const
 
- Public Member Functions inherited from v8::internal::ObjectPtr
constexpr ObjectPtr (Address ptr)
 
 operator Object * () const
 
bool operator== (const ObjectPtr other) const
 
bool operator!= (const ObjectPtr other) const
 
bool operator< (const ObjectPtr other) const
 
constexpr Address ptr () const
 
ObjectPtroperator-> ()
 
const ObjectPtroperator-> () const
 
bool IsHashTableBase () const
 
V8_INLINE bool IsSmallOrderedHashTable () const
 
bool IsObject () const
 
double Number () const
 
bool ToInt32 (int32_t *value) const
 
bool ToUint32 (uint32_t *value) const
 
bool BooleanValue (Isolate *isolate)
 
bool FilterKey (PropertyFilter filter)
 
ObjectGetHash ()
 
Smi GetOrCreateHash (Isolate *isolate)
 
V8_EXPORT_PRIVATE bool SameValue (Object *other)
 
V8_WARN_UNUSED_RESULT bool ToArrayIndex (uint32_t *index) const
 
void ShortPrint (FILE *out=stdout)
 
void ShortPrint (std::ostream &os)
 
void Print ()
 
void Print (std::ostream &os)
 

Static Public Member Functions

static int ToInt (const Object *object)
 
static int ToInt (ObjectPtr object)
 
static constexpr Smi FromInt (int value)
 
static Smi FromIntptr (intptr_t value)
 
template<typename E , typename = typename std::enable_if<std::is_enum<E>::value>::type>
static Smi FromEnum (E value)
 
static bool constexpr IsValid (intptr_t value)
 
static Address LexicographicCompare (Isolate *isolate, Smi x, Smi y)
 
static constexpr Smi zero ()
 

Static Public Attributes

static constexpr ObjectPtr kZero = ObjectPtr(0)
 
static constexpr int kMinValue = kSmiMinValue
 
static constexpr int kMaxValue = kSmiMaxValue
 

Detailed Description

Definition at line 23 of file smi.h.


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