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
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 *native_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 VerifyApiCallResultType ()
 
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 879 of file objects.h.

Member Function Documentation

static Object* cast ( Object value)
inlinestatic

Definition at line 1007 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 841 of file objects-inl.h.

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

Object * GetElementNoExceptionThrown ( uint32_t  index)
inline

Definition at line 850 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 865 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 575 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 836 of file objects-inl.h.

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

bool HasValidElements ( )
inline

Definition at line 257 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 805 of file objects-inl.h.

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

bool IsFixedArrayBase ( )
inline

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

bool IsNaN ( )
inline

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

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

bool IsObject ( )
inline

Definition at line 882 of file objects.h.

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

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

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

void Lookup ( String name,
LookupResult *  result 
)
bool NonFailureIsHeapObject ( )
inline

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

References ASSERT, and v8::internal::kSmiTagMask.

Referenced by IncrementalMarkingMarkingVisitor::INLINE().

bool SameValue ( Object other)
void ShortPrint ( FILE *  out)

Definition at line 798 of file objects.cc.

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

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

Definition at line 72 of file objects.cc.

References ASSERT.

void VerifyApiCallResultType ( )
inline

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

References FATAL.

Referenced by JSObject::GetPropertyWithCallback().

Field Documentation

const int kHeaderSize = 0
static

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