![]() |
v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <objects.h>


Public Types | |
| enum | DeleteMode { NORMAL_DELETION, STRICT_DELETION, FORCE_DELETION } |
| enum | StoreFromKeyed { MAY_BE_STORE_FROM_KEYED, CERTAINLY_NOT_STORE_FROM_KEYED } |
| enum | ExtensibilityCheck { PERFORM_EXTENSIBILITY_CHECK, OMIT_EXTENSIBILITY_CHECK } |
Public Types inherited from Object | |
| enum | ValueType { OPTIMAL_REPRESENTATION, FORCE_TAGGED } |
Public Member Functions | |
| bool | IsSimpleEnum () |
| String * | class_name () |
| String * | constructor_name () |
| Object * | GetPrototype () |
| Object * | GetConstructor () |
| Object * | GetIdentityHash () |
| void | LocalLookup (Name *name, LookupResult *result, bool search_hidden_prototypes=false) |
| void | Lookup (Name *name, LookupResult *result) |
Public Member Functions inherited from HeapObject | |
| Map * | map () |
| void | set_map (Map *value) |
| void | set_map_no_write_barrier (Map *value) |
| MapWord | map_word () |
| void | set_map_word (MapWord map_word) |
| Heap * | GetHeap () |
| Isolate * | GetIsolate () |
| Address | address () |
| void | Iterate (ObjectVisitor *v) |
| void | IterateBody (InstanceType type, int object_size, ObjectVisitor *v) |
| int | Size () |
| int | SizeFromMap (Map *map) |
| WriteBarrierMode | GetWriteBarrierMode (const DisallowHeapAllocation &promise) |
| void | HeapObjectShortPrint (StringStream *accumulator) |
| STATIC_CHECK (kMapOffset==Internals::kHeapObjectMapOffset) | |
Public Member Functions inherited from Object | |
| bool | IsObject () |
| bool | IsFixedArrayBase () |
| bool | IsExternal () |
| bool | IsAccessorInfo () |
| bool | IsStruct () |
| INLINE (bool IsSpecObject()) | |
| INLINE (bool IsSpecFunction()) | |
| bool | IsCallable () |
| INLINE (bool IsUndefined()) | |
| INLINE (bool IsNull()) | |
| INLINE (bool IsTheHole()) | |
| INLINE (bool IsUninitialized()) | |
| INLINE (bool IsTrue()) | |
| INLINE (bool IsFalse()) | |
| bool | IsArgumentsMarker () |
| bool | NonFailureIsHeapObject () |
| bool | IsFiller () |
| double | Number () |
| bool | IsNaN () |
| bool | ToInt32 (int32_t *value) |
| bool | ToUint32 (uint32_t *value) |
| Representation | OptimalRepresentation (ValueType type=OPTIMAL_REPRESENTATION) |
| bool | FitsRepresentation (Representation representation) |
| MaybeObject * | AllocateNewStorageFor (Heap *heap, Representation representation) |
| bool | HasValidElements () |
| bool | HasSpecificClassOf (String *name) |
| MUST_USE_RESULT MaybeObject * | ToObject (Isolate *isolate) |
| bool | BooleanValue () |
| MUST_USE_RESULT MaybeObject * | ToObject (Context *native_context) |
| MUST_USE_RESULT MaybeObject * | ToSmi () |
| void | Lookup (Name *name, LookupResult *result) |
| MUST_USE_RESULT MaybeObject * | GetProperty (Name *key) |
| MUST_USE_RESULT MaybeObject * | GetProperty (Name *key, PropertyAttributes *attributes) |
| MUST_USE_RESULT MaybeObject * | GetPropertyWithReceiver (Object *receiver, Name *key, PropertyAttributes *attributes) |
| MUST_USE_RESULT MaybeObject * | GetProperty (Object *receiver, LookupResult *result, Name *key, PropertyAttributes *attributes) |
| MUST_USE_RESULT MaybeObject * | GetPropertyWithDefinedGetter (Object *receiver, JSReceiver *getter) |
| Object * | GetPrototype (Isolate *isolate) |
| Map * | GetMarkerMap (Isolate *isolate) |
| Object * | GetHash () |
| bool | SameValue (Object *other) |
| bool | ToArrayIndex (uint32_t *index) |
| bool | IsStringObjectWithCharacterAt (uint32_t index) |
| void | VerifyApiCallResultType () |
| void | ShortPrint (FILE *out=stdout) |
| void | ShortPrint (StringStream *accumulator) |
Protected Member Functions | |
| Smi * | GenerateIdentityHash () |
Protected Member Functions inherited from HeapObject | |
| void | IteratePointers (ObjectVisitor *v, int start, int end) |
| void | IteratePointer (ObjectVisitor *v, int offset) |
| void | IterateNextCodeLink (ObjectVisitor *v, int offset) |
Static Protected Member Functions | |
| static Handle< Object > | SetPropertyWithDefinedSetter (Handle< JSReceiver > object, Handle< JSReceiver > setter, Handle< Object > value) |
Additional Inherited Members | |
Static Public Attributes inherited from HeapObject | |
| static const int | kMapOffset = Object::kHeaderSize |
| static const int | kHeaderSize = kMapOffset + kPointerSize |
Static Public Attributes inherited from Object | |
| static const int | kHeaderSize = 0 |
| enum DeleteMode |
| enum ExtensibilityCheck |
| enum StoreFromKeyed |
|
inlinestatic |
| String * class_name | ( | ) |
Definition at line 1923 of file objects.cc.
References JSFunction::cast(), String::cast(), HeapObject::GetHeap(), and HeapObject::map().
Referenced by Logger::ApiIndexedPropertyAccess(), Logger::ApiNamedPropertyAccess(), Object::HasSpecificClassOf(), v8::internal::RUNTIME_FUNCTION(), and Logger::SuspectReadEvent().
| String * constructor_name | ( | ) |
Definition at line 1952 of file objects.cc.
References Map::constructor_name(), and HeapObject::map().
Referenced by Map::constructor_name(), V8HeapExplorer::GetConstructorName(), and JSObject::JSObjectShortPrint().
|
static |
Definition at line 5262 of file objects.cc.
Referenced by Object::Delete(), and Runtime::DeleteObjectProperty().
|
static |
Definition at line 5273 of file objects.cc.
Referenced by Runtime::DeleteObjectProperty(), v8::internal::RUNTIME_FUNCTION(), and TEST().
|
protected |
Definition at line 4764 of file objects.cc.
References Smi::FromInt(), HeapObject::GetIsolate(), Smi::kMaxValue, and Isolate::random_number_generator().
|
inline |
Definition at line 6286 of file objects-inl.h.
References HeapObject::map().
|
inlinestatic |
Definition at line 6321 of file objects-inl.h.
References JSProxy::GetElementAttributeWithHandler(), and JSObject::GetElementAttributeWithReceiver().
Referenced by JSReceiver::GetPropertyAttribute().
|
inline |
Definition at line 6349 of file objects-inl.h.
References JSObject::cast(), and JSProxy::cast().
Referenced by Object::GetHash().
|
inlinestatic |
Definition at line 6376 of file objects-inl.h.
References JSProxy::GetElementAttributeWithHandler(), and JSObject::GetElementAttributeWithReceiver().
Referenced by JSReceiver::GetLocalPropertyAttribute(), and JSObject::SetElement().
|
static |
Definition at line 4384 of file objects.cc.
References JSReceiver::GetLocalElementAttribute().
Referenced by JSReceiver::HasLocalProperty(), Context::Lookup(), v8::internal::RUNTIME_FUNCTION(), and JSObjectWalkVisitor< ContextObject >::StructureWalk().
|
inlinestatic |
Definition at line 6342 of file objects-inl.h.
Referenced by Object::GetIdentityHash(), Object::GetOrCreateHash(), and TEST().
|
inlinestatic |
Definition at line 6311 of file objects-inl.h.
References JSReceiver::GetElementAttribute(), and JSReceiver::GetPropertyAttributeWithReceiver().
Referenced by Object::GetPropertyAttributes(), JSReceiver::HasProperty(), Context::Lookup(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 4327 of file objects.cc.
References JSObject::GetElementAttributeWithReceiver().
Referenced by JSReceiver::GetPropertyAttribute(), and JSObject::GetPropertyAttributePostInterceptor().
|
inline |
Definition at line 6281 of file objects-inl.h.
References HeapObject::map().
Referenced by JSObject::GetAccessor(), JSObject::GetHiddenProperty(), JSGlobalProxy::IsDetachedFrom(), Isolate::IsFastArrayConstructorPrototypeChainIntact(), JSReceiver::IsSimpleEnum(), JSReceiver::LocalLookup(), JSObject::LocalLookupRealNamedProperty(), JSReceiver::Lookup(), JSObject::LookupCallbackProperty(), JSObject::LookupRealNamedPropertyInPrototypes(), and v8::internal::RUNTIME_FUNCTION().
|
inlinestatic |
Definition at line 6356 of file objects-inl.h.
References ABSENT, Handle< T >::cast(), and JSObject::GetElementAttributeWithReceiver().
Referenced by Object::Has(), Runtime::HasObjectProperty(), and v8::internal::RUNTIME_FUNCTION().
|
inlinestatic |
Definition at line 6366 of file objects-inl.h.
References ABSENT, Handle< T >::cast(), and JSObject::GetElementAttributeWithReceiver().
Referenced by JSObject::DefineAccessor().
|
inlinestatic |
Definition at line 6301 of file objects-inl.h.
References ABSENT, Handle< T >::cast(), and JSReceiver::GetLocalPropertyAttribute().
Referenced by Object::HasOwnProperty(), v8::internal::RUNTIME_FUNCTION(), TEST(), BreakIterator::UnpackBreakIterator(), Collator::UnpackCollator(), DateFormat::UnpackDateFormat(), and NumberFormat::UnpackNumberFormat().
|
inlinestatic |
Definition at line 6291 of file objects-inl.h.
References ABSENT, Handle< T >::cast(), and JSReceiver::GetPropertyAttribute().
Referenced by Runtime::HasObjectProperty(), v8::internal::RUNTIME_FUNCTION(), and TryCatch::StackTrace().
| bool IsSimpleEnum | ( | ) |
Definition at line 5876 of file objects.cc.
References ASSERT, JSObject::cast(), Map::EnumLength(), HeapObject::GetHeap(), JSReceiver::GetPrototype(), JSObject::HasIndexedInterceptor(), JSObject::HasNamedInterceptor(), HeapObject::map(), and JSObject::NumberOfEnumElements().
Definition at line 5956 of file objects.cc.
References ASSERT, JSReceiver::cast(), JSObject::cast(), JSProxy::cast(), HeapObject::GetHeap(), JSReceiver::GetPrototype(), JSObject::HasNamedInterceptor(), Map::is_hidden_prototype(), JSReceiver::LocalLookup(), JSObject::LocalLookupRealNamedProperty(), and HeapObject::map().
Referenced by JSObject::GetAccessor(), JSReceiver::LocalLookup(), JSReceiver::Lookup(), and v8::internal::RUNTIME_FUNCTION().
| void Lookup | ( | Name * | name, |
| LookupResult * | result | ||
| ) |
Definition at line 6002 of file objects.cc.
References JSReceiver::cast(), JSObject::cast(), HeapObject::GetHeap(), JSReceiver::GetPrototype(), and JSReceiver::LocalLookup().
Referenced by Object::Lookup(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 12387 of file objects.cc.
References JSObject::SetElement().
Referenced by TEST().
|
static |
Definition at line 2858 of file objects.cc.
References JSObject::cast().
Referenced by Symbol::For(), Symbol::ForApi(), Private::ForApi(), v8::internal::RUNTIME_FUNCTION(), JSArray::SetElementsLength(), Runtime::SetObjectProperty(), StoreIC::Store(), JSObjectWalkVisitor< ContextObject >::StructureWalk(), and TEST().
|
staticprotected |
Definition at line 2958 of file objects.cc.
References ARRAY_SIZE, and Execution::Call().
Referenced by JSProxy::SetPropertyViaPrototypesWithHandler(), and JSObject::SetPropertyWithCallback().