v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Static Public Member Functions | |
static HeapObject * | FromAddress (Address address) |
static Object ** | RawField (HeapObject *obj, int offset) |
static HeapObject * | cast (Object *obj) |
Static Public Member Functions inherited from Object | |
static Handle< Object > | GetProperty (Handle< Object > object, Handle< Object > receiver, LookupResult *result, Handle< String > key, PropertyAttributes *attributes) |
static Handle< Object > | GetElement (Handle< Object > object, uint32_t index) |
static Object * | cast (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) |
|
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().
|
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().
|
inlinestatic |
Definition at line 1171 of file objects-inl.h.
References ASSERT_TAG_ALIGNED, and v8::internal::kHeapObjectTag.
Referenced by PagedSpace::AllocateLinearly(), Heap::CreateFillerObjectAt(), FreeListNode::FromAddress(), InnerPointerToCodeCache::GcSafeFindCodeForInnerPointer(), Code::GetCodeFromTargetAddress(), LargePage::GetObject(), Code::GetObjectFromEntryAddress(), Heap::IterateAndMarkPointersToFromSpace(), MarkCompactCollector::MigrateObject(), SemiSpaceIterator::Next(), PagedSpace::ReleaseAllUnusedPages(), TEST(), and Marking::TransferMark().
|
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().
|
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().
|
inline |
Definition at line 1831 of file objects-inl.h.
References HeapObject::GetHeap(), Heap::incremental_marking(), Heap::InNewSpace(), v8::internal::SKIP_WRITE_BARRIER, and v8::internal::UPDATE_WRITE_BARRIER.
Referenced by ElementsAccessorBase< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS > >::AddElementsToFixedArray(), Heap::AllocateConsString(), v8::internal::BUILTIN(), Heap::CopyFixedArrayWithMap(), FixedArray::CopySize(), FixedArray::CopyTo(), Dictionary< Shape, Key >::CopyValuesTo(), JSObject::PrepareElementsForSort(), HashTable< Shape, Key >::Rehash(), v8::internal::RUNTIME_FUNCTION(), and Dictionary< Shape, Key >::SetEntry().
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 Iterate | ( | ObjectVisitor * | v | ) |
Definition at line 1319 of file objects.cc.
References Map::instance_type(), HeapObject::IterateBody(), HeapObject::IteratePointer(), HeapObject::kMapOffset, HeapObject::map(), and HeapObject::SizeFromMap().
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().
|
inlineprotected |
Definition at line 1193 of file objects-inl.h.
References FIELD_ADDR.
Referenced by Code::CodeIterateBody(), and HeapObject::Iterate().
|
inlineprotected |
Definition at line 1187 of file objects-inl.h.
References FIELD_ADDR.
Referenced by JSFunction::JSFunctionIterateBody().
|
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().
|
inline |
Definition at line 1159 of file objects-inl.h.
References HeapObject::kMapOffset, and READ_FIELD.
Referenced by IntrusiveMarking::IsMarked(), HeapObject::map(), IntrusiveMarking::MapOfMarkedObject(), ScavengeWeakObjectRetainer::RetainAs(), EvacuationWeakObjectRetainer::RetainAs(), IncrementalMarking::UpdateMarkingDequeAfterScavenge(), RuntimeProfiler::UpdateSamplesAfterScavenge(), and PointersUpdatingVisitor::UpdateSlot().
|
inlinestatic |
Definition at line 971 of file objects-inl.h.
References READ_FIELD.
Referenced by SharedFunctionInfo::AttachInitialMap(), JSFunctionResultCache::Clear(), FixedArray::data_start(), SharedFunctionInfo::DetachInitialMap(), DescriptorArray::GetEnumCacheSlot(), TransitionArray::GetKeySlot(), DescriptorArray::GetKeySlot(), TransitionArray::GetPrototypeTransitionsSlot(), DescriptorArray::GetValueSlot(), FixedBodyDescriptor< start_offset, end_offset, size >::IterateBody(), FlexibleBodyDescriptor< start_offset >::IterateBody(), FlexibleBodyDescriptor< kHeaderSize >::IterateBody(), StaticMarkingVisitor< StaticVisitor >::MarkMapContents(), Heap::ProcessWeakReferences(), IncrementalMarking::RecordWriteSlow(), v8::internal::RUNTIME_FUNCTION(), JSFunction::set_code(), Map::unchecked_transition_array(), StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionStrongCode(), StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionWeakCode(), StaticMarkingVisitor< StaticVisitor >::VisitJSRegExp(), IncrementalMarkingMarkingVisitor::VisitJSWeakMap(), MarkCompactMarkingVisitor::VisitJSWeakMap(), StaticMarkingVisitor< StaticVisitor >::VisitMap(), StaticMarkingVisitor< StaticVisitor >::VisitNativeContext(), StaticMarkingVisitor< StaticVisitor >::VisitSharedFunctionInfoStrongCode(), and StaticMarkingVisitor< StaticVisitor >::VisitSharedFunctionInfoWeakCode().
|
inline |
Definition at line 1143 of file objects-inl.h.
References HeapObject::GetHeap(), Heap::incremental_marking(), v8::internal::NULL, and HeapObject::set_map_word().
Referenced by JSObject::AddConstantFunctionProperty(), JSObject::AddFastProperty(), JSObject::AddFastPropertyUsingMap(), Heap::AllocateGlobalObject(), JSObject::ConvertDescriptorToField(), JSObject::DefineFastAccessor(), JSObject::DeleteNormalizedProperty(), String::MarkAsUndetectable(), JSObject::NormalizeElements(), JSObject::NormalizeProperties(), JSObject::PreventExtensions(), JSFunction::RemovePrototype(), JSObject::ResetElements(), JSObject::set_map_and_elements(), JSObject::SetFastElement(), JSReceiver::SetPrototype(), JSFunction::SetPrototype(), StringDictionary::TransformPropertiesToFastFor(), JSObject::TransitionElementsKind(), and JSObject::UpdateMapCodeCache().
|
inline |
Definition at line 1154 of file objects-inl.h.
References HeapObject::set_map_word().
Referenced by Heap::Allocate(), Heap::AllocateBlockContext(), Heap::AllocateCatchContext(), Heap::AllocateFixedArray(), Heap::AllocateFixedDoubleArrayWithHoles(), Heap::AllocateFunctionContext(), Heap::AllocateGlobalContext(), Heap::AllocateHeapNumber(), Heap::AllocateJSGlobalPropertyCell(), Heap::AllocateMap(), Heap::AllocateModuleContext(), Heap::AllocateNativeContext(), Heap::AllocateRawAsciiString(), Heap::AllocateRawTwoByteString(), Heap::AllocateScopeInfo(), Heap::AllocateUninitializedFixedDoubleArray(), Heap::AllocateWithContext(), SymbolKey::AsObject(), Heap::CopyFixedArrayWithMap(), Heap::CopyFixedDoubleArrayWithMap(), FixedArray::CopySize(), Heap::CreateCode(), Heap::CreateFillerObjectAt(), RegExpResultsCache::Enter(), TraversableMap::GetAndResetParent(), String::MakeExternal(), v8::internal::RUNTIME_FUNCTION(), JSObject::set_map_and_elements(), FreeListNode::set_size(), and TraversableMap::SetParent().
|
inline |
Definition at line 1164 of file objects-inl.h.
References HeapObject::kMapOffset, and WRITE_FIELD.
Referenced by HeapObject::set_map(), and HeapObject::set_map_no_write_barrier().
|
inline |
Definition at line 1182 of file objects-inl.h.
References HeapObject::map(), and HeapObject::SizeFromMap().
Referenced by Heap::AllocateAsciiSymbol(), Heap::AllocateInternalSymbol(), Heap::AllocateTwoByteSymbol(), IncrementalMarking::BlackToGreyAndUnshift(), JSModule::cast(), JSValue::cast(), JSDate::cast(), JSMessageObject::cast(), Code::contains(), Heap::CopyCode(), JSObject::GetInternalFieldCount(), HeapObject::HeapObjectShortPrint(), IncrementalMarking::Hurry(), IncrementalMarkingMarkingVisitor::INLINE(), StoreBuffer::IteratePointersToNewSpace(), String::MakeExternal(), FreeListNode::next(), SemiSpaceIterator::Next(), FreeListNode::next_address(), MarkCompactMarkingVisitor::ObjectStatsCountFixedArray(), MarkCompactMarkingVisitor::ObjectStatsVisitBase(), NewSpace::RecordAllocation(), NewSpace::RecordPromotion(), Heap::RecordStats(), Serializer::ObjectSerializer::Serialize(), FreeListNode::set_next(), JSReceiver::SetPrototype(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitMap >::Visit(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitCode >::Visit(), and MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitFixedArray >::Visit().
|
inline |
Definition at line 2954 of file objects-inl.h.
References v8::internal::ASCII_STRING_TYPE, ASSERT, v8::internal::BYTE_ARRAY_TYPE, v8::internal::CODE_TYPE, v8::internal::FIXED_ARRAY_TYPE, v8::internal::FIXED_DOUBLE_ARRAY_TYPE, v8::internal::FREE_SPACE_TYPE, Map::instance_size(), Map::instance_type(), v8::internal::kIsSymbolMask, v8::internal::kVariableSizeSentinel, FixedArrayBase::length(), FixedDoubleArray::SizeFor(), SeqAsciiString::SizeFor(), SeqTwoByteString::SizeFor(), FixedArray::BodyDescriptor::SizeOf(), and v8::internal::STRING_TYPE.
Referenced by HeapObject::Iterate(), HeapObject::Size(), and IncrementalMarking::Step().
STATIC_CHECK | ( | kMapOffset | = =Internals::kHeapObjectMapOffset | ) |
|
static |
Definition at line 1262 of file objects.h.
Referenced by Struct::InitializeBody(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 1261 of file objects.h.
Referenced by MacroAssembler::IsObjectStringType(), HeapObject::Iterate(), HeapObject::map_word(), and HeapObject::set_map_word().