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

#include <objects.h>

Inheritance diagram for Object:
Collaboration diagram for Object:

Public Member Functions

bool IsObject ()
 
bool IsFixedArrayBase ()
 
bool IsInstanceOf (FunctionTemplateInfo *type)
 
bool IsStruct ()
 
 INLINE (bool IsSpecObject())
 
 INLINE (bool IsSpecFunction())
 
 INLINE (bool IsUndefined())
 
 INLINE (bool IsNull())
 
 INLINE (bool IsTheHole())
 
 INLINE (bool IsTrue())
 
 INLINE (bool IsFalse())
 
bool IsArgumentsMarker ()
 
bool NonFailureIsHeapObject ()
 
bool IsFiller ()
 
double Number ()
 
bool IsNaN ()
 
bool HasValidElements ()
 
bool HasSpecificClassOf (String *name)
 
MUST_USE_RESULT MaybeObject * ToObject ()
 
ObjectToBoolean ()
 
MUST_USE_RESULT MaybeObject * ToObject (Context *global_context)
 
MUST_USE_RESULT MaybeObject * ToSmi ()
 
void Lookup (String *name, LookupResult *result)
 
MUST_USE_RESULT MaybeObject * GetProperty (String *key)
 
MUST_USE_RESULT MaybeObject * GetProperty (String *key, PropertyAttributes *attributes)
 
MUST_USE_RESULT MaybeObject * GetPropertyWithReceiver (Object *receiver, String *key, PropertyAttributes *attributes)
 
MUST_USE_RESULT MaybeObject * GetProperty (Object *receiver, LookupResult *result, String *key, PropertyAttributes *attributes)
 
MUST_USE_RESULT MaybeObject * GetPropertyWithDefinedGetter (Object *receiver, JSReceiver *getter)
 
MUST_USE_RESULT MaybeObject * GetElement (uint32_t index)
 
ObjectGetElementNoExceptionThrown (uint32_t index)
 
MUST_USE_RESULT MaybeObject * GetElementWithReceiver (Object *receiver, uint32_t index)
 
ObjectGetPrototype ()
 
MUST_USE_RESULT MaybeObject * GetHash (CreationFlag flag)
 
bool SameValue (Object *other)
 
bool ToArrayIndex (uint32_t *index)
 
bool IsStringObjectWithCharacterAt (uint32_t index)
 
void ShortPrint ()
 
void ShortPrint (FILE *out)
 
void ShortPrint (StringStream *accumulator)
 

Static Public Member Functions

static Handle< ObjectGetProperty (Handle< Object > object, Handle< Object > receiver, LookupResult *result, Handle< String > key, PropertyAttributes *attributes)
 
static Handle< ObjectGetElement (Handle< Object > object, uint32_t index)
 
static Objectcast (Object *value)
 

Static Public Attributes

static const int kHeaderSize = 0
 

Detailed Description

Definition at line 836 of file objects.h.

Member Function Documentation

static Object* cast ( Object value)
inlinestatic

Definition at line 962 of file objects.h.

Referenced by v8::internal::GetEnumPropertyKeys(), and Object::GetProperty().

Handle< Object > GetElement ( Handle< Object object,
uint32_t  index 
)
static
MaybeObject * GetElement ( uint32_t  index)
inline

Definition at line 833 of file objects-inl.h.

References ASSERT, Object::GetElementWithReceiver(), and HEAP.

Object * GetElementNoExceptionThrown ( uint32_t  index)
inline

Definition at line 842 of file objects-inl.h.

References ASSERT, Object::GetElementWithReceiver(), and v8::internal::NULL.

Referenced by StackTrace::GetFrame().

MaybeObject * GetProperty ( String key,
PropertyAttributes attributes 
)
inline

Definition at line 857 of file objects-inl.h.

References Object::GetPropertyWithReceiver().

Handle< Object > GetProperty ( Handle< Object object,
Handle< Object receiver,
LookupResult *  result,
Handle< String key,
PropertyAttributes attributes 
)
static

Definition at line 557 of file objects.cc.

References CALL_HEAP_FUNCTION, Handle< T >::cast(), and v8::internal::Object.

MaybeObject * GetPropertyWithDefinedGetter ( Object receiver,
JSReceiver getter 
)
MaybeObject * GetPropertyWithReceiver ( Object receiver,
String key,
PropertyAttributes attributes 
)
bool HasSpecificClassOf ( String name)
inline

Definition at line 828 of file objects-inl.h.

References JSObject::cast(), and JSReceiver::class_name().

bool HasValidElements ( )
inline

Definition at line 256 of file objects-inl.h.

Referenced by JSObject::set_map_and_elements().

INLINE ( bool   IsSpecObject())
INLINE ( bool   IsSpecFunction())
INLINE ( bool   IsUndefined())
INLINE ( bool   IsNull())
INLINE ( bool   IsTheHole())
INLINE ( bool   IsTrue())
INLINE ( bool   IsFalse())
bool IsArgumentsMarker ( )
inline

Definition at line 797 of file objects-inl.h.

References Oddball::cast(), Oddball::kArgumentMarker, and Oddball::kind().

bool IsFixedArrayBase ( )
inline

Definition at line 131 of file objects-inl.h.

bool IsNaN ( )
inline

Definition at line 810 of file objects-inl.h.

References HeapNumber::cast(), and isnan().

bool IsObject ( )
inline

Definition at line 839 of file objects.h.

bool IsStringObjectWithCharacterAt ( uint32_t  index)
inline
bool IsStruct ( )
inline

Definition at line 752 of file objects-inl.h.

References HeapObject::cast(), MAKE_STRUCT_CASE, and STRUCT_LIST.

void Lookup ( String name,
LookupResult *  result 
)
bool SameValue ( Object other)
void ShortPrint ( FILE *  out)

Definition at line 783 of file objects.cc.

References StringStream::OutputToFile(), and Object::ShortPrint().

void ShortPrint ( StringStream accumulator)
MaybeObject * ToObject ( )
MaybeObject * ToObject ( Context global_context)

Definition at line 72 of file objects.cc.

References ASSERT.

Field Documentation

const int kHeaderSize = 0
static

Definition at line 965 of file objects.h.


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