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
HeapObject Class Reference

#include <objects.h>

Inheritance diagram for HeapObject:
Collaboration diagram for HeapObject:

Public Member Functions

Mapmap ()
 
void set_map (Map *value)
 
void set_map_no_write_barrier (Map *value)
 
MapWord map_word ()
 
void set_map_word (MapWord map_word)
 
HeapGetHeap ()
 
IsolateGetIsolate ()
 
Address address ()
 
void Iterate (ObjectVisitor *v)
 
void IterateBody (InstanceType type, int object_size, ObjectVisitor *v)
 
int Size ()
 
int SizeFromMap (Map *map)
 
WriteBarrierMode GetWriteBarrierMode (const AssertNoAllocation &)
 
void HeapObjectShortPrint (StringStream *accumulator)
 
 STATIC_CHECK (kMapOffset==Internals::kHeapObjectMapOffset)
 
- Public Member Functions inherited from Object
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 HeapObjectFromAddress (Address address)
 
static Object ** RawField (HeapObject *obj, int offset)
 
static HeapObjectcast (Object *obj)
 
- Static Public Member Functions inherited from Object
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 kMapOffset = Object::kHeaderSize
 
static const int kHeaderSize = kMapOffset + kPointerSize
 
- Static Public Attributes inherited from Object
static const int kHeaderSize = 0
 

Protected Member Functions

void IteratePointers (ObjectVisitor *v, int start, int end)
 
void IteratePointer (ObjectVisitor *v, int offset)
 

Detailed Description

Definition at line 1177 of file objects.h.

Member Function Documentation

Address address ( )
inline

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

References v8::internal::kHeapObjectTag.

Referenced by Heap::AllocateArgumentsObject(), Heap::AllocateAsciiSymbol(), PagedSpace::AllocateRaw(), Heap::AllocateTwoByteSymbol(), IncrementalMarking::BlackToGreyAndUnshift(), CpuProfiler::CodeCreateEvent(), Logger::CodeCreateEvent(), Code::CodeIterateBody(), Heap::Contains(), PagedSpace::Contains(), Code::contains(), Heap::CopyCode(), Heap::CopyFixedArrayWithMap(), Heap::CopyFixedDoubleArrayWithMap(), Heap::CopyJSObject(), v8::internal::CopyObjectToObjectElements(), Heap::CreateCode(), LargeObjectSpace::FreeUnmarkedObjects(), NormalizedMapCache::Get(), HeapProfiler::GetSnapshotObjectId(), IncrementalMarking::Hurry(), IncrementalMarkingMarkingVisitor::INLINE(), Heap::InSpace(), StoreBuffer::IteratePointersToNewSpace(), JSFunction::JSFunctionIterateBody(), String::MakeExternal(), IndexedReferencesExtractor::MarkVisitedField(), FreeListNode::next(), BASE_EMBEDDED< Visitor >::next(), FreeListNode::next_address(), FixedArray::NoIncrementalWriteBarrierSet(), JSObject::NormalizeProperties(), MarkingDeque::PushBlack(), IncrementalMarking::RecordWriteForEvacuationFromCode(), IncrementalMarking::RecordWriteFromCode(), CpuProfiler::RegExpCodeCreateEvent(), Logger::RegExpCodeCreateEvent(), Heap::ReinitializeJSReceiver(), MarkCompactCollector::ReportDeleteIfNeeded(), Heap::ReserveSpace(), PagedSpace::ReserveSpace(), NewSpace::ReserveSpace(), Serializer::ObjectSerializer::Serialize(), FreeListNode::set_next(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::SetLengthWithoutNormalize(), NewSpace::ShrinkStringAtAllocationBoundary(), IncrementalMarking::Step(), TEST(), MarkCompactCollector::TryPromoteObject(), and StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionStrongCode().

static HeapObject* cast ( Object obj)
inlinestatic

Referenced by Heap::Allocate(), Heap::AllocateArgumentsObject(), Heap::AllocateHeapNumber(), Heap::AllocateJSGlobalPropertyCell(), Heap::AllocateRawAsciiString(), Heap::AllocateRawTwoByteString(), TypeFeedbackOracle::CanRetainOtherContext(), JSModule::cast(), JSValue::cast(), JSDate::cast(), JSMessageObject::cast(), HeapObjectsSet::Contains(), Heap::CopyFixedArrayWithMap(), Heap::CopyFixedDoubleArrayWithMap(), Heap::CopyJSObject(), Execution::GetConstructorDelegate(), Object::GetElementWithReceiver(), Execution::GetFunctionDelegate(), Object::GetPrototype(), HeapProfiler::GetSnapshotObjectId(), HeapObjectsSet::GetTag(), IncrementalMarking::Hurry(), IncrementalMarkingMarkingVisitor::INLINE(), HeapObjectsSet::Insert(), Object::IsFiller(), MarkCompactCollector::IsMarked(), Object::IsStruct(), Heap::IterateAndMarkPointersToFromSpace(), JSObject::JSObjectShortPrint(), StaticMarkingVisitor< StaticVisitor >::MarkMapContents(), StaticMarkingVisitor< StaticVisitor >::MarkTransitionArray(), StringStream::PrintFunction(), StringStream::PrintSecurityTokenIfChanged(), Map::PutPrototypeTransition(), IncrementalMarking::RecordWriteIntoCodeSlow(), RuntimeProfiler::RemoveDeadSamples(), NewSpace::ReserveSpace(), ScavengeWeakObjectRetainer::RetainAs(), MarkCompactWeakObjectRetainer::RetainAs(), EvacuationWeakObjectRetainer::RetainAs(), v8::internal::RUNTIME_FUNCTION(), PartialSerializer::SerializeObject(), StartupSerializer::SerializeObject(), HeapObjectsSet::SetTag(), Object::ShortPrint(), TEST(), Object::ToBoolean(), Object::ToObject(), Execution::TryGetConstructorDelegate(), Execution::TryGetFunctionDelegate(), MarkCompactCollector::TryPromoteObject(), RuntimeProfiler::UpdateSamplesAfterScavenge(), PointersUpdatingVisitor::UpdateSlot(), StaticMarkingVisitor< StaticVisitor >::VisitEmbeddedPointer(), Serializer::ObjectSerializer::VisitPointers(), SymbolTableCleaner::VisitPointers(), VerifyPointersVisitor::VisitPointers(), and MarkCompactMarkingVisitor::VisitUnmarkedObjects().

Heap * GetHeap ( )
inline

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

References ASSERT, MemoryChunk::FromAddress(), MemoryChunk::heap(), Heap::isolate(), and v8::internal::NULL.

Referenced by JSObject::AddConstantFunctionProperty(), ElementsAccessorBase< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS > >::AddElementsToFixedArray(), JSObject::AddFastProperty(), Context::AddOptimizedFunction(), JSObject::AddProperty(), JSObject::AddSlowProperty(), StringSharedKey::AsObject(), SymbolKey::AsObject(), SharedFunctionInfo::AttachInitialMap(), v8::internal::BOOL_ACCESSORS(), JSObject::BypassGlobalProxy(), SharedFunctionInfo::CanGenerateInlineConstructor(), JSReceiver::class_name(), JSFunctionResultCache::Clear(), Map::ClearNonLiveTransitions(), Context::ClearOptimizedFunctions(), SharedFunctionInfo::ClearThisPropertyAssignmentsInfo(), SharedFunctionInfo::CompleteInobjectSlackTracking(), JSReceiver::constructor_name(), FixedArray::ContainsOnlySmisOrHoles(), FixedArray::Copy(), FixedDoubleArray::Copy(), AccessorPair::Copy(), Map::CopyDropDescriptors(), FastSmiOrObjectElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS > >::CopyElementsImpl(), FastDoubleElementsAccessor< FastHoleyDoubleElementsAccessor, ElementsKindTraits< FAST_HOLEY_DOUBLE_ELEMENTS > >::CopyElementsImpl(), DictionaryElementsAccessor::CopyElementsImpl(), StringDictionary::CopyEnumKeysTo(), v8::internal::CopyObjectToObjectElements(), FixedArray::CopySize(), DescriptorArray::CopyUpTo(), JSObject::DefineFastAccessor(), ExternalElementsAccessor< ExternalByteElementsAccessor, EXTERNAL_BYTE_ELEMENTS >::Delete(), NonStrictArgumentsElementsAccessor::Delete(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::DeleteCommon(), JSObject::DeleteHiddenProperty(), JSObject::DeleteNormalizedProperty(), Dictionary< Shape, Key >::DeleteProperty(), JSProxy::DeletePropertyWithHandler(), SharedFunctionInfo::DetachInitialMap(), JSObject::EnsureCanContainElements(), GlobalObject::EnsurePropertyCell(), JSArray::EnsureSize(), JSObject::FastPropertyAtPut(), Map::FindInCodeCache(), Dictionary< Shape, Key >::GenerateNewEnumerationIndices(), FixedDoubleArray::get(), ExternalIntArray::get(), ExternalUnsignedIntArray::get(), ExternalFloatArray::get(), ExternalDoubleArray::get(), TraversableMap::GetAndResetParent(), AccessorPair::GetComponent(), JSObject::GetElementsKind(), JSProxy::GetElementWithHandler(), Object::GetElementWithReceiver(), JSObject::GetHiddenProperty(), JSObject::GetIdentityHash(), ElementsAccessorBase< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS > >::GetImpl(), ExternalElementsAccessor< ExternalByteElementsAccessor, EXTERNAL_BYTE_ELEMENTS >::GetImpl(), DictionaryElementsAccessor::GetImpl(), HeapObject::GetIsolate(), JSObject::GetLocalPropertyPostInterceptor(), StringsStorage::GetName(), Object::GetProperty(), JSObject::GetPropertyPostInterceptor(), JSObject::GetPropertyWithFailedAccessCheck(), Object::GetPrototype(), Map::GetPrototypeTransitions(), HeapObject::GetWriteBarrierMode(), JSObject::HasDictionaryArgumentsElements(), JSProxy::HasElementWithHandler(), JSObject::HasElementWithReceiver(), JSObject::HasFastArgumentsElements(), JSObject::HasHiddenProperties(), JSObject::HasLocalElement(), JSObject::HasRealElementProperty(), HeapNumber::HeapNumberToBoolean(), HeapObject::HeapObjectShortPrint(), JSArray::Initialize(), JSObject::initialize_elements(), JSObject::InitializeBody(), Struct::InitializeBody(), JSProxy::InitializeBody(), MarkCompactMarkingVisitor::INLINE(), JSObject::InObjectPropertyAtPut(), Code::InvalidateRelocation(), FixedArray::is_the_hole(), Context::IsBlockContext(), Context::IsCatchContext(), Context::IsFunctionContext(), Context::IsGlobalContext(), Context::IsModuleContext(), JSReceiver::IsSimpleEnum(), Context::IsWithContext(), JSArray::JSArrayUpdateLengthFromIndex(), JSObject::JSObjectShortPrint(), JSReceiver::LocalLookup(), JSReceiver::Lookup(), MapCache::Lookup(), ObjectHashTable::Lookup(), CompilationCacheTable::Lookup(), CodeCacheHashTable::Lookup(), PolymorphicCodeCacheHashTable::Lookup(), JSObject::LookupAccessor(), SymbolTable::LookupAsciiSymbol(), JSObject::LookupCallbackProperty(), CompilationCacheTable::LookupEval(), JSObject::LookupRealNamedPropertyInPrototypes(), CompilationCacheTable::LookupRegExp(), SymbolTable::LookupSubStringAsciiSymbol(), SymbolTable::LookupSymbol(), SymbolTable::LookupTwoByteSymbol(), SymbolTable::LookupTwoCharsSymbolIfExists(), String::MakeExternal(), String::MarkAsUndetectable(), IntrusiveMapTransitionIterator::Next(), FixedArray::NoIncrementalWriteBarrierSet(), JSObject::NormalizeElements(), JSObject::NormalizeProperties(), MarkCompactMarkingVisitor::ObjectStatsCountFixedArray(), MarkCompactMarkingVisitor::ObjectStatsVisitBase(), Deoptimizer::PatchStackCheckCodeAt(), IC::PostPatching(), JSObject::PrepareElementsForSort(), JSObject::PrepareSlowElementsForSort(), Map::PutPrototypeTransition(), Map::RawCopy(), JSObject::ReferencesObject(), CompilationCacheTable::Remove(), CodeCacheHashTable::RemoveByIndex(), Context::RemoveOptimizedFunction(), JSFunction::RemovePrototype(), Deoptimizer::RevertStackCheckCodeAt(), PartialSerializer::SerializeObject(), FixedArray::set(), TransitionArray::set_back_pointer_storage(), JSFunction::set_code(), JSFunction::set_context(), TransitionArray::set_elements_transition(), ConsString::set_first(), JSFunction::set_function_bindings(), JSFunction::set_initial_map_and_cache_transitions(), JSBuiltinsObject::set_javascript_builtin(), HeapObject::set_map(), JSObject::set_map_and_elements(), FixedArray::set_null(), SlicedString::set_parent(), ConsString::set_second(), FixedArray::set_the_hole(), FixedArray::set_undefined(), Map::SetBackPointer(), JSArray::SetContent(), JSObject::SetElement(), JSObject::SetElementWithCallbackSetterInPrototypes(), JSProxy::SetElementWithHandler(), JSObject::SetFastDoubleElementsCapacityAndLength(), JSObject::SetFastElement(), JSObject::SetFastElementsCapacityAndLength(), JSObject::SetHiddenProperty(), JSObject::SetIdentityHash(), JSFunction::SetInstancePrototype(), JSObject::SetInternalField(), ElementsAccessorBase< ElementsAccessorSubclass, ElementsTraitsParam >::SetLengthImpl(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::SetLengthWithoutNormalize(), DictionaryElementsAccessor::SetLengthWithoutNormalize(), JSObject::SetNormalizedProperty(), JSObject::SetPropertyForResult(), JSProxy::SetPropertyViaPrototypesWithHandler(), JSReceiver::SetPrototype(), JSFunction::SetPrototype(), TransitionArray::SetPrototypeTransitions(), IC::SetTargetAtAddress(), ExternalByteArray::SetValue(), ExternalUnsignedByteArray::SetValue(), ExternalShortArray::SetValue(), ExternalUnsignedShortArray::SetValue(), ExternalIntArray::SetValue(), ExternalUnsignedIntArray::SetValue(), ExternalFloatArray::SetValue(), ExternalDoubleArray::SetValue(), JSObject::ShouldConvertToFastElements(), JSObject::ShouldConvertToSlowElements(), JSObject::SlowReverseLookup(), Dictionary< Shape, Key >::SlowReverseLookup(), SharedFunctionInfo::StartInobjectSlackTracking(), String::SubString(), Object::ToBoolean(), String::ToCString(), String::ToWideCString(), StringDictionary::TransformPropertiesToFastFor(), Map::UpdateCodeCache(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::ValidateContents(), ElementsAccessorBase< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS > >::ValidateImpl(), FlexibleBodyVisitor< StaticVisitor, BodyDescriptor, ReturnType >::Visit(), FixedBodyVisitor< StaticVisitor, BodyDescriptor, ReturnType >::Visit(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitMap >::Visit(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitCode >::Visit(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitSharedFunctionInfo >::Visit(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitFixedArray >::Visit(), StaticMarkingVisitor< StaticVisitor >::VisitCode(), StaticMarkingVisitor< StaticVisitor >::VisitJSFunction(), StaticMarkingVisitor< StaticVisitor >::VisitJSRegExp(), IncrementalMarkingMarkingVisitor::VisitJSWeakMap(), MarkCompactMarkingVisitor::VisitJSWeakMap(), StaticMarkingVisitor< StaticVisitor >::VisitMap(), StaticMarkingVisitor< StaticVisitor >::VisitNativeContext(), StaticMarkingVisitor< StaticVisitor >::VisitSharedFunctionInfo(), FlexibleBodyVisitor< StaticVisitor, BodyDescriptor, ReturnType >::VisitSpecialized(), Map::ZapPrototypeTransitions(), and Map::ZapTransitions().

Isolate * GetIsolate ( )
inline

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

References HeapObject::GetHeap(), and Heap::isolate().

Referenced by JSProxy::CallTrap(), ScopeInfo::ContextSlotIndex(), JSObject::ConvertTransitionToMapTransition(), HandleScope::CreateHandle(), JSObject::DefineAccessor(), JSObject::DefineFastAccessor(), DictionaryElementsAccessor::DeleteCommon(), JSObject::DeleteElement(), JSProxy::DeleteElementWithHandler(), JSObject::DeleteProperty(), JSProxy::DeletePropertyWithHandler(), Deoptimizer::DeoptimizeFunction(), JSObject::EnsureWritableFastElements(), HashTable< Shape, Key >::FindEntry(), JSProxy::Fix(), JSReceiver::GenerateIdentityHash(), NormalizedMapCache::Get(), JSProxy::GetElementAttributeWithHandler(), JSObject::GetElementsTransitionMapSlow(), JSObject::GetElementWithInterceptor(), v8::internal::GetIsolateForHandle(), JSReceiver::GetLocalPropertyAttribute(), JSObject::GetLocalPropertyPostInterceptor(), JSObject::GetPropertyAttributePostInterceptor(), JSObject::GetPropertyAttributeWithFailedAccessCheck(), JSProxy::GetPropertyAttributeWithHandler(), JSObject::GetPropertyAttributeWithInterceptor(), JSReceiver::GetPropertyAttributeWithReceiver(), JSObject::GetPropertyPostInterceptor(), JSObject::GetPropertyWithCallback(), JSObject::GetPropertyWithFailedAccessCheck(), JSProxy::GetPropertyWithHandler(), JSObject::GetPropertyWithInterceptor(), Object::GetPropertyWithReceiver(), SharedFunctionInfo::GetSourceCode(), JSObject::HasElementWithInterceptor(), JSProxy::HasPropertyWithHandler(), JSObject::HasRealNamedCallbackProperty(), JSObject::HasRealNamedProperty(), v8::internal::InitScriptLineEnds(), JSFunction::is_compiled(), String::IsEqualTo(), JSFunction::IsInRecompileQueue(), JSFunction::IsMarkedForLazyRecompilation(), JSFunction::IsMarkedForParallelRecompilation(), Context::Lookup(), PolymorphicCodeCache::Lookup(), JSFunction::MarkForLazyRecompilation(), JSFunction::MarkForParallelRecompilation(), JSObject::NormalizeElements(), JSObject::PrepareElementsForSort(), JSObject::PreventExtensions(), JSObject::ResetElements(), JSObject::SetDictionaryElement(), JSObject::SetFastElement(), JSObject::SetFastElementsCapacityAndLength(), JSObject::SetLocalPropertyIgnoreAttributes(), JSReceiver::SetProperty(), JSObject::SetPropertyForResult(), JSObject::SetPropertyPostInterceptor(), JSProxy::SetPropertyViaPrototypesWithHandler(), JSObject::SetPropertyWithCallback(), JSReceiver::SetPropertyWithDefinedSetter(), JSObject::SetPropertyWithFailedAccessCheck(), JSProxy::SetPropertyWithHandler(), JSObject::SetPropertyWithInterceptor(), JSDate::SetValue(), Object::ToObject(), JSObject::TransitionElementsKind(), JSObject::UpdateMapCodeCache(), and Deoptimizer::VisitAllOptimizedFunctionsForContext().

void HeapObjectShortPrint ( StringStream accumulator)

Definition at line 1188 of file objects.cc.

References StringStream::Add(), v8::internal::BYTE_ARRAY_TYPE, HeapNumber::cast(), JSObject::cast(), FixedArray::cast(), FixedDoubleArray::cast(), ByteArray::cast(), FreeSpace::cast(), ExternalPixelArray::cast(), ExternalByteArray::cast(), ExternalUnsignedByteArray::cast(), ExternalShortArray::cast(), ExternalUnsignedShortArray::cast(), ExternalIntArray::cast(), ExternalUnsignedIntArray::cast(), ExternalFloatArray::cast(), ExternalDoubleArray::cast(), Map::cast(), String::cast(), JSGlobalPropertyCell::cast(), v8::internal::CODE_TYPE, Heap::Contains(), v8::internal::EXTERNAL_BYTE_ARRAY_TYPE, v8::internal::EXTERNAL_DOUBLE_ARRAY_TYPE, v8::internal::EXTERNAL_FLOAT_ARRAY_TYPE, v8::internal::EXTERNAL_INT_ARRAY_TYPE, v8::internal::EXTERNAL_PIXEL_ARRAY_TYPE, v8::internal::EXTERNAL_SHORT_ARRAY_TYPE, v8::internal::EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE, v8::internal::EXTERNAL_UNSIGNED_INT_ARRAY_TYPE, v8::internal::EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE, v8::internal::FIXED_ARRAY_TYPE, v8::internal::FIXED_DOUBLE_ARRAY_TYPE, v8::internal::FOREIGN_TYPE, v8::internal::FREE_SPACE_TYPE, HeapObject::GetHeap(), v8::internal::HEAP_NUMBER_TYPE, HeapNumber::HeapNumberPrint(), v8::internal::JS_FUNCTION_PROXY_TYPE, v8::internal::JS_GLOBAL_PROPERTY_CELL_TYPE, v8::internal::JS_MESSAGE_OBJECT_TYPE, v8::internal::JS_PROXY_TYPE, JSObject::JSObjectShortPrint(), MAKE_STRUCT_CASE, HeapObject::map(), v8::internal::MAP_TYPE, v8::internal::ODDBALL_TYPE, StringStream::Put(), v8::internal::SHARED_FUNCTION_INFO_TYPE, Object::ShortPrint(), HeapObject::Size(), String::StringShortPrint(), and STRUCT_LIST.

Referenced by Object::ShortPrint().

void IterateBody ( InstanceType  type,
int  object_size,
ObjectVisitor *  v 
)

Definition at line 1328 of file objects.cc.

References v8::internal::BYTE_ARRAY_TYPE, v8::internal::CODE_TYPE, v8::internal::EXTERNAL_BYTE_ARRAY_TYPE, v8::internal::EXTERNAL_DOUBLE_ARRAY_TYPE, v8::internal::EXTERNAL_FLOAT_ARRAY_TYPE, v8::internal::EXTERNAL_INT_ARRAY_TYPE, v8::internal::EXTERNAL_PIXEL_ARRAY_TYPE, v8::internal::EXTERNAL_SHORT_ARRAY_TYPE, v8::internal::EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE, v8::internal::EXTERNAL_UNSIGNED_INT_ARRAY_TYPE, v8::internal::EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE, v8::internal::FILLER_TYPE, v8::internal::FIRST_NONSTRING_TYPE, v8::internal::FIXED_ARRAY_TYPE, v8::internal::FIXED_DOUBLE_ARRAY_TYPE, v8::internal::FOREIGN_TYPE, v8::internal::FREE_SPACE_TYPE, v8::internal::HEAP_NUMBER_TYPE, FixedBodyDescriptor< start_offset, end_offset, size >::IterateBody(), FlexibleBodyDescriptor< kHeaderSize >::IterateBody(), FlexibleBodyDescriptor< kPropertiesOffset >::IterateBody(), FlexibleBodyDescriptor< HeapObject::kHeaderSize >::IterateBody(), v8::internal::JS_ARRAY_TYPE, v8::internal::JS_BUILTINS_OBJECT_TYPE, v8::internal::JS_CONTEXT_EXTENSION_OBJECT_TYPE, v8::internal::JS_DATE_TYPE, v8::internal::JS_FUNCTION_PROXY_TYPE, v8::internal::JS_FUNCTION_TYPE, v8::internal::JS_GLOBAL_OBJECT_TYPE, v8::internal::JS_GLOBAL_PROPERTY_CELL_TYPE, v8::internal::JS_GLOBAL_PROXY_TYPE, v8::internal::JS_MAP_TYPE, v8::internal::JS_MESSAGE_OBJECT_TYPE, v8::internal::JS_MODULE_TYPE, v8::internal::JS_OBJECT_TYPE, v8::internal::JS_PROXY_TYPE, v8::internal::JS_REGEXP_TYPE, v8::internal::JS_SET_TYPE, v8::internal::JS_VALUE_TYPE, v8::internal::JS_WEAK_MAP_TYPE, v8::internal::kAsciiStringTag, v8::internal::kConsStringTag, v8::internal::kExternalStringTag, v8::internal::kSeqStringTag, v8::internal::kSlicedStringTag, v8::internal::kStringEncodingMask, v8::internal::kStringRepresentationMask, MAKE_STRUCT_CASE, v8::internal::MAP_TYPE, v8::internal::ODDBALL_TYPE, v8::internal::PrintF(), v8::internal::SHARED_FUNCTION_INFO_TYPE, STRUCT_LIST, and UNREACHABLE.

Referenced by HeapObject::Iterate(), and Serializer::ObjectSerializer::Serialize().

void IteratePointer ( ObjectVisitor *  v,
int  offset 
)
inlineprotected

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

References FIELD_ADDR.

Referenced by Code::CodeIterateBody(), and HeapObject::Iterate().

void IteratePointers ( ObjectVisitor *  v,
int  start,
int  end 
)
inlineprotected

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

References FIELD_ADDR.

Referenced by JSFunction::JSFunctionIterateBody().

Map * map ( )
inline

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

References HeapObject::map_word().

Referenced by JSObject::AddConstantFunctionProperty(), JSObject::AddFastProperty(), JSObject::AddFastPropertyUsingMap(), JSObject::AddProperty(), Heap::AllocateArgumentsObject(), v8::internal::BUILTIN(), TraversableMap::ChildIteratorNext(), JSReceiver::class_name(), JSReceiver::constructor_name(), JSObject::ConvertDescriptorToField(), JSObject::ConvertTransitionToMapTransition(), Heap::CopyFixedArray(), Heap::CopyFixedDoubleArray(), Heap::CopyJSObject(), v8::internal::CopyObjectToObjectElements(), FixedArray::CopySize(), JSObject::DefineFastAccessor(), JSObject::DeleteNormalizedProperty(), Isolate::empty_object_map(), JSObject::EnsureCanContainElements(), JSObject::EnsureCanContainHeapObjectElements(), JSObject::EnsureWritableFastElements(), JSObject::FastPropertyAt(), JSObject::FastPropertyAtPut(), ElementsAccessor::ForArray(), NormalizedMapCache::Get(), FixedDoubleArray::get_representation(), FixedDoubleArray::get_scalar(), TraversableMap::GetAndResetParent(), JSReceiver::GetConstructor(), Execution::GetConstructorDelegate(), JSObject::GetElementsKind(), JSObject::GetElementsTransitionMap(), JSObject::GetElementsTransitionMapSlow(), v8::internal::GetEnumPropertyKeys(), Execution::GetFunctionDelegate(), JSObject::GetHeaderSize(), JSObject::GetIndexedInterceptor(), JSObject::GetInObjectPropertyOffset(), JSObject::GetInternalFieldCount(), JSObject::GetLocalPropertyNames(), JSObject::GetNamedInterceptor(), Object::GetPrototype(), JSReceiver::GetPrototype(), TransitionArray::GetTargetDetails(), BASE_EMBEDDED< Visitor >::GetTransitionTarget(), JSFunction::has_prototype(), JSObject::HasDictionaryArgumentsElements(), JSObject::HasFastArgumentsElements(), JSObject::HasFastProperties(), JSObject::HasIndexedInterceptor(), JSObject::HasNamedInterceptor(), String::HasOnlyAsciiChars(), HeapObject::HeapObjectShortPrint(), IncrementalMarking::Hurry(), JSObject::initialize_elements(), MarkCompactMarkingVisitor::INLINE(), JSObject::InObjectPropertyAt(), JSObject::InObjectPropertyAtPut(), ExternalString::is_short(), String::IsAsciiRepresentation(), String::IsAsciiRepresentationUnderneath(), Context::IsBlockContext(), Context::IsCatchContext(), JSObject::IsDirty(), Object::IsFiller(), FreeListNode::IsFreeListNode(), Context::IsFunctionContext(), Context::IsGlobalContext(), Object::IsInstanceOf(), Context::IsModuleContext(), JSReceiver::IsSimpleEnum(), String::IsTwoByteRepresentation(), String::IsTwoByteRepresentationUnderneath(), Context::IsWithContext(), HeapObject::Iterate(), JSObject::JSObjectShortPrint(), JSObject::LastAddedFieldIndex(), JSObject::LocalLookupRealNamedProperty(), String::MarkAsUndetectable(), Isolate::MayIndexedAccess(), Isolate::MayNamedAccess(), FreeListNode::next(), FreeListNode::next_address(), FixedArray::NoIncrementalWriteBarrierSet(), JSObject::NormalizeElements(), JSObject::NormalizeProperties(), FixedArray::NoWriteBarrierSet(), JSObject::NumberOfLocalProperties(), MarkCompactMarkingVisitor::ObjectStatsCountFixedArray(), JSObject::PrepareElementsForSort(), JSObject::PreventExtensions(), StringStream::PrintFunction(), StringStream::PrintSecurityTokenIfChanged(), StringStream::PrintUsingMap(), JSFunction::prototype(), Map::PutPrototypeTransition(), NewSpace::RecordAllocation(), NewSpace::RecordPromotion(), Heap::RecordStats(), JSObject::ReferencesObject(), Heap::ReinitializeJSReceiver(), JSFunction::RemovePrototype(), Isolate::ReportFailedAccessCheck(), v8::internal::RUNTIME_FUNCTION(), Serializer::ObjectSerializer::Serialize(), FixedArray::set(), FixedDoubleArray::set(), JSFunction::set_function_bindings(), JSObject::set_map_and_elements(), FreeListNode::set_next(), FixedArray::set_the_hole(), FixedDoubleArray::set_the_hole(), FixedArray::set_undefined(), JSArray::SetContent(), JSObject::SetDictionaryElement(), JSObject::SetFastDoubleElement(), JSObject::SetFastElement(), JSObject::SetFastElementsCapacityAndLength(), JSObject::SetLocalPropertyIgnoreAttributes(), JSReceiver::SetProperty(), JSObject::SetPropertyPostInterceptor(), JSReceiver::SetPrototype(), JSFunction::SetPrototype(), Map::ShareDescriptor(), JSFunction::should_have_prototype(), PartialSerializer::ShouldBeInThePartialSnapshotCache(), JSObject::ShouldConvertToFastElements(), HeapObject::Size(), JSObject::SlowReverseLookup(), IncrementalMarking::Step(), Heap::SymbolMapForString(), TEST(), JSObject::TooManyFastProperties(), StringDictionary::TransformPropertiesToFastFor(), JSObject::TransitionElementsKind(), Execution::TryGetConstructorDelegate(), Execution::TryGetFunctionDelegate(), JSObject::UpdateMapCodeCache(), IncrementalMarking::UpdateMarkingDequeAfterScavenge(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::ValidateContents(), ElementsAccessorBase< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS > >::ValidateImpl(), CellSpace::VerifyObject(), StaticMarkingVisitor< StaticVisitor >::VisitJSFunction(), MarkCompactMarkingVisitor::VisitJSWeakMap(), VerifyPointersVisitor::VisitPointers(), and GlobalObjectsEnumerator::VisitPointers().

void set_map_word ( MapWord  map_word)
inline

Field Documentation

const int kHeaderSize = kMapOffset + kPointerSize
static

Definition at line 1262 of file objects.h.

Referenced by Struct::InitializeBody(), and v8::internal::RUNTIME_FUNCTION().


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