v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TypeInfo Class Reference

#include <type-info.h>

Public Member Functions

 TypeInfo ()
 
int ToInt ()
 
bool Equals (const TypeInfo &other)
 
bool IsUnknown ()
 
bool IsPrimitive ()
 
bool IsNumber ()
 
bool IsSmi ()
 
bool IsSymbol ()
 
bool IsNonSymbol ()
 
bool IsInteger32 ()
 
bool IsDouble ()
 
bool IsString ()
 
bool IsNonPrimitive ()
 
bool IsUninitialized ()
 
const char * ToString ()
 

Static Public Member Functions

static TypeInfo Unknown ()
 
static TypeInfo Primitive ()
 
static TypeInfo Number ()
 
static TypeInfo Integer32 ()
 
static TypeInfo Smi ()
 
static TypeInfo Symbol ()
 
static TypeInfo Double ()
 
static TypeInfo String ()
 
static TypeInfo NonPrimitive ()
 
static TypeInfo Uninitialized ()
 
static TypeInfo FromInt (int bit_representation)
 
static TypeInfo Combine (TypeInfo a, TypeInfo b)
 
static bool IsInt32Double (double value)
 
static TypeInfo TypeFromValue (Handle< Object > value)
 

Detailed Description

Definition at line 55 of file type-info.h.

Constructor & Destructor Documentation

Member Function Documentation

static TypeInfo Combine ( TypeInfo  a,
TypeInfo  b 
)
inlinestatic

Definition at line 97 of file type-info.h.

References TypeInfo::TypeInfo().

bool Equals ( const TypeInfo other)
inline

Definition at line 119 of file type-info.h.

static TypeInfo FromInt ( int  bit_representation)
inlinestatic

Definition at line 83 of file type-info.h.

References ASSERT, and TypeInfo::TypeInfo().

static TypeInfo Integer32 ( )
inlinestatic
bool IsDouble ( )
inline

Definition at line 158 of file type-info.h.

References ASSERT.

static bool IsInt32Double ( double  value)
inlinestatic
bool IsInteger32 ( )
inline

Definition at line 153 of file type-info.h.

References ASSERT.

Referenced by BinaryOpIC::GetTypeInfo().

bool IsNonPrimitive ( )
inline

Definition at line 168 of file type-info.h.

References ASSERT.

Referenced by CaseClause::RecordTypeFeedback(), and CompareOperation::RecordTypeFeedback().

bool IsNonSymbol ( )
inline

Definition at line 148 of file type-info.h.

References ASSERT.

Referenced by CaseClause::RecordTypeFeedback().

bool IsNumber ( )
inline

Definition at line 133 of file type-info.h.

References ASSERT.

Referenced by UnaryOpIC::GetTypeInfo(), and BinaryOpIC::GetTypeInfo().

bool IsPrimitive ( )
inline

Definition at line 128 of file type-info.h.

References ASSERT.

bool IsString ( )
inline

Definition at line 163 of file type-info.h.

References ASSERT.

Referenced by BinaryOpIC::GetTypeInfo().

bool IsSymbol ( )
inline

Definition at line 143 of file type-info.h.

References ASSERT.

Referenced by CaseClause::RecordTypeFeedback().

bool IsUninitialized ( )
inline

Definition at line 173 of file type-info.h.

bool IsUnknown ( )
inline

Definition at line 123 of file type-info.h.

References ASSERT.

static TypeInfo NonPrimitive ( )
inlinestatic

Definition at line 75 of file type-info.h.

References TypeInfo::TypeInfo().

Referenced by TypeFeedbackOracle::CompareType(), and TypeFeedbackOracle::SwitchType().

static TypeInfo Number ( )
inlinestatic

Definition at line 63 of file type-info.h.

References TypeInfo::TypeInfo().

Referenced by TypeFeedbackOracle::CompareType(), and TypeFeedbackOracle::SwitchType().

static TypeInfo Primitive ( )
inlinestatic

Definition at line 61 of file type-info.h.

References TypeInfo::TypeInfo().

static TypeInfo Symbol ( )
inlinestatic

Definition at line 69 of file type-info.h.

References TypeInfo::TypeInfo().

Referenced by TypeFeedbackOracle::SwitchType().

int ToInt ( )
inline

Definition at line 79 of file type-info.h.

const char* ToString ( )
inline

Definition at line 177 of file type-info.h.

References UNREACHABLE.

static TypeInfo Uninitialized ( )
inlinestatic

Definition at line 77 of file type-info.h.

References TypeInfo::TypeInfo().

Referenced by TypeFeedbackOracle::BinaryType(), and TypeFeedbackOracle::CompareType().


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