![]() |
v8
3.11.10(node0.8.26)
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 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 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 1169 of file objects-inl.h.
References v8::internal::kHeapObjectTag.
Referenced by Heap::AllocateArgumentsObject(), Heap::AllocateAsciiSymbol(), PagedSpace::AllocateRaw(), Heap::AllocateTwoByteSymbol(), IncrementalMarking::BlackToGreyAndUnshift(), Logger::CodeCreateEvent(), CpuProfiler::CodeCreateEvent(), Code::CodeIterateBody(), Heap::Contains(), PagedSpace::Contains(), Code::contains(), Heap::CopyCode(), Heap::CopyFixedArrayWithMap(), Heap::CopyFixedDoubleArrayWithMap(), Heap::CopyJSObject(), v8::internal::CopyObjectToObjectElements(), Heap::CreateCode(), Code::ExecutableSize(), LargeObjectSpace::FreeUnmarkedObjects(), NormalizedMapCache::Get(), HeapProfiler::GetSnapshotObjectId(), IncrementalMarking::Hurry(), Heap::InSpace(), StoreBuffer::IteratePointersToNewSpace(), JSFunction::JSFunctionIterateBody(), String::MakeExternal(), Marker< BaseMarker >::MarkMapContents(), IndexedReferencesExtractor::MarkVisitedField(), FreeListNode::next(), BASE_EMBEDDED< Visitor >::next(), FreeListNode::next_address(), FixedArray::NoIncrementalWriteBarrierSet(), JSObject::NormalizeProperties(), MarkingDeque::PushBlack(), Logger::RegExpCodeCreateEvent(), CpuProfiler::RegExpCodeCreateEvent(), Heap::ReinitializeJSReceiver(), MarkCompactCollector::ReportDeleteIfNeeded(), PagedSpace::ReserveSpace(), NewSpace::ReserveSpace(), Serializer::ObjectSerializer::Serialize(), FreeListNode::set_next(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::SetLengthWithoutNormalize(), NewSpace::ShrinkStringAtAllocationBoundary(), IncrementalMarking::Step(), TEST(), and MarkCompactCollector::TryPromoteObject().
|
inlinestatic |
Referenced by Heap::Allocate(), Heap::AllocateArgumentsObject(), Heap::AllocateHeapNumber(), Heap::AllocateJSGlobalPropertyCell(), Heap::AllocateRawAsciiString(), Heap::AllocateRawTwoByteString(), JSModule::cast(), JSValue::cast(), JSDate::cast(), JSMessageObject::cast(), HeapObjectsSet::Contains(), Heap::CopyFixedArrayWithMap(), Heap::CopyFixedDoubleArrayWithMap(), Heap::CopyJSObject(), Heap::CreateCode(), Execution::GetConstructorDelegate(), Object::GetElementWithReceiver(), Execution::GetFunctionDelegate(), Object::GetPrototype(), JSReceiver::GetPrototype(), HeapProfiler::GetSnapshotObjectId(), HeapObjectsSet::GetTag(), IncrementalMarking::Hurry(), HeapObjectsSet::Insert(), Object::IsFiller(), MarkCompactCollector::IsMarked(), Object::IsStruct(), Heap::IterateAndMarkPointersToFromSpace(), JSObject::JSObjectShortPrint(), Marker< BaseMarker >::MarkAccessorPairSlot(), Marker< BaseMarker >::MarkDescriptorArray(), Marker< BaseMarker >::MarkMapContents(), StringStream::PrintFunction(), StringStream::PrintSecurityTokenIfChanged(), Map::PutPrototypeTransition(), IncrementalMarking::RecordWriteFromCode(), 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::VisitEmbeddedPointer(), Serializer::ObjectSerializer::VisitPointers(), SymbolTableCleaner::VisitPointers(), and StaticMarkingVisitor::VisitUnmarkedObjects().
|
inlinestatic |
Definition at line 1163 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 1116 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(), SharedFunctionInfo::AttachInitialMap(), v8::internal::BOOL_ACCESSORS(), JSObject::BypassGlobalProxy(), SharedFunctionInfo::CanGenerateInlineConstructor(), JSReceiver::class_name(), JSFunctionResultCache::Clear(), Context::ClearOptimizedFunctions(), SharedFunctionInfo::ClearThisPropertyAssignmentsInfo(), SharedFunctionInfo::CompleteInobjectSlackTracking(), JSReceiver::constructor_name(), FixedArray::ContainsOnlySmisOrHoles(), FixedArray::Copy(), FixedDoubleArray::Copy(), Map::CopyDropDescriptors(), FastSmiOrObjectElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS > >::CopyElementsImpl(), FastDoubleElementsAccessor< FastHoleyDoubleElementsAccessor, ElementsKindTraits< FAST_HOLEY_DOUBLE_ELEMENTS > >::CopyElementsImpl(), DictionaryElementsAccessor::CopyElementsImpl(), Map::CopyNormalized(), v8::internal::CopyObjectToObjectElements(), FixedArray::CopySize(), AccessorPair::CopyWithoutTransitions(), JSObject::DefineFastAccessor(), ExternalElementsAccessor< ExternalByteElementsAccessor, EXTERNAL_BYTE_ELEMENTS >::Delete(), NonStrictArgumentsElementsAccessor::Delete(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::DeleteCommon(), JSObject::DeleteNormalizedProperty(), Dictionary< Shape, Key >::DeleteProperty(), JSProxy::DeletePropertyWithHandler(), SharedFunctionInfo::DetachInitialMap(), JSObject::EnsureCanContainElements(), HashTable< Shape, Key >::EnsureCapacity(), 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(), HeapObject::GetWriteBarrierMode(), JSObject::HasDictionaryArgumentsElements(), JSProxy::HasElementWithHandler(), JSObject::HasElementWithReceiver(), JSObject::HasFastArgumentsElements(), HashTable< CompilationCacheShape, HashTableKey * >::Hash(), HashTable< CompilationCacheShape, HashTableKey * >::HashForObject(), JSObject::HasHiddenProperties(), JSObject::HasLocalElement(), JSObject::HasRealElementProperty(), HeapNumber::HeapNumberToBoolean(), HeapObject::HeapObjectShortPrint(), JSArray::Initialize(), JSObject::initialize_elements(), JSObject::InitializeBody(), Struct::InitializeBody(), JSProxy::InitializeBody(), StaticMarkingVisitor::INLINE(), JSObject::InObjectPropertyAtPut(), Code::InvalidateRelocation(), FixedArray::is_the_hole(), Context::IsBlockContext(), Context::IsCatchContext(), Context::IsFunctionContext(), 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::LookupCallback(), CompilationCacheTable::LookupEval(), Map::LookupInDescriptors(), JSObject::LookupRealNamedPropertyInPrototypes(), CompilationCacheTable::LookupRegExp(), SymbolTable::LookupSubStringAsciiSymbol(), SymbolTable::LookupSymbol(), SymbolTable::LookupTwoByteSymbol(), SymbolTable::LookupTwoCharsSymbolIfExists(), String::MakeExternal(), String::MarkAsUndetectable(), Marker< BaseMarker >::MarkDescriptorArray(), TraversableMap::MutatedInstanceDescriptors(), IntrusiveMapTransitionIterator::Next(), FixedArray::NoIncrementalWriteBarrierSet(), JSObject::NormalizeElements(), JSObject::NormalizeProperties(), JSObject::OptimizeAsPrototype(), Deoptimizer::PatchStackCheckCodeAt(), IC::PostPatching(), JSObject::PrepareElementsForSort(), JSObject::PrepareSlowElementsForSort(), Map::PutPrototypeTransition(), JSObject::ReferencesObject(), CompilationCacheTable::Remove(), CodeCacheHashTable::RemoveByIndex(), Context::RemoveOptimizedFunction(), JSFunction::RemovePrototype(), Deoptimizer::RevertStackCheckCodeAt(), PartialSerializer::SerializeObject(), FixedArray::set(), JSFunction::set_code(), JSFunction::set_context(), 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(), 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(), IC::SetTargetAtAddress(), ExternalByteArray::SetValue(), ExternalUnsignedByteArray::SetValue(), ExternalShortArray::SetValue(), ExternalUnsignedShortArray::SetValue(), ExternalIntArray::SetValue(), ExternalUnsignedIntArray::SetValue(), ExternalFloatArray::SetValue(), ExternalDoubleArray::SetValue(), JSObject::ShouldConvertToFastElements(), JSObject::ShouldConvertToSlowElements(), HashTable< Shape, Key >::Shrink(), 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(), and FlexibleBodyVisitor< StaticVisitor, BodyDescriptor, ReturnType >::VisitSpecialized().
|
inline |
Definition at line 1125 of file objects-inl.h.
References HeapObject::GetHeap(), and Heap::isolate().
Referenced by JSProxy::CallTrap(), ScopeInfo::ContextSlotIndex(), JSObject::ConvertDescriptorToFieldAndMapTransition(), 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::IsMarkedForLazyRecompilation(), Context::Lookup(), PolymorphicCodeCache::Lookup(), JSFunction::MarkForLazyRecompilation(), JSObject::NormalizeElements(), JSObject::PrepareElementsForSort(), JSObject::PreventExtensions(), JSObject::ResetElements(), JSObject::SetDictionaryElement(), JSObject::SetElement(), JSObject::SetFastElement(), JSObject::SetFastElementsCapacityAndLength(), JSObject::SetLocalPropertyIgnoreAttributes(), JSReceiver::SetProperty(), JSObject::SetPropertyPostInterceptor(), JSProxy::SetPropertyViaPrototypesWithHandler(), JSObject::SetPropertyWithCallback(), JSReceiver::SetPropertyWithDefinedSetter(), JSObject::SetPropertyWithFailedAccessCheck(), JSProxy::SetPropertyWithHandler(), JSObject::SetPropertyWithInterceptor(), JSDate::SetValue(), Object::ToObject(), JSObject::TransitionElementsKind(), and JSObject::UpdateMapCodeCache().
|
inline |
Definition at line 1769 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 1173 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 1304 of file objects.cc.
References Map::instance_type(), HeapObject::IterateBody(), HeapObject::IteratePointer(), HeapObject::kMapOffset, HeapObject::map(), and HeapObject::SizeFromMap().
Referenced by IncrementalMarking::Hurry().
void IterateBody | ( | InstanceType | type, |
int | object_size, | ||
ObjectVisitor * | v | ||
) |
Definition at line 1313 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, SharedFunctionInfo::SharedFunctionInfoIterateBody(), STRUCT_LIST, and UNREACHABLE.
Referenced by HeapObject::Iterate(), Serializer::ObjectSerializer::Serialize(), and IncrementalMarking::Step().
|
inlineprotected |
Definition at line 1185 of file objects-inl.h.
References FIELD_ADDR.
Referenced by Code::CodeIterateBody(), and HeapObject::Iterate().
|
inlineprotected |
Definition at line 1179 of file objects-inl.h.
References FIELD_ADDR.
Referenced by HashTable< Shape, Key >::IterateElements(), HashTable< Shape, Key >::IteratePrefix(), and JSFunction::JSFunctionIterateBody().
|
inline |
Definition at line 1130 of file objects-inl.h.
References HeapObject::map_word().
Referenced by JSObject::AddConstantFunctionProperty(), JSObject::AddFastProperty(), JSObject::AddFastPropertyUsingMap(), JSObject::AddProperty(), Heap::AllocateArgumentsObject(), Heap::AllocateGlobalObject(), v8::internal::BUILTIN(), JSReceiver::class_name(), JSReceiver::constructor_name(), JSObject::ConvertDescriptorToField(), JSObject::ConvertDescriptorToFieldAndMapTransition(), Heap::CopyFixedArray(), Heap::CopyFixedDoubleArray(), Heap::CopyJSObject(), v8::internal::CopyObjectToObjectElements(), FixedArray::CopySize(), JSObject::DeleteNormalizedProperty(), JSObject::EnsureCanContainElements(), JSObject::EnsureCanContainHeapObjectElements(), JSObject::EnsureWritableFastElements(), JSObject::FastPropertyAt(), JSObject::FastPropertyAtPut(), ElementsAccessor::ForArray(), NormalizedMapCache::Get(), FixedDoubleArray::get_representation(), FixedDoubleArray::get_scalar(), TraversableMap::GetAndResetParent(), 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(), BASE_EMBEDDED< Visitor >::GetValue(), JSFunction::has_prototype(), JSObject::HasDictionaryArgumentsElements(), JSObject::HasFastArgumentsElements(), JSObject::HasIndexedInterceptor(), JSObject::HasNamedInterceptor(), String::HasOnlyAsciiChars(), HeapObject::HeapObjectShortPrint(), IncrementalMarking::Hurry(), JSObject::initialize_elements(), StaticMarkingVisitor::INLINE(), JSObject::InObjectPropertyAt(), JSObject::InObjectPropertyAtPut(), ExternalString::is_short(), String::IsAsciiRepresentation(), String::IsAsciiRepresentationUnderneath(), Context::IsBlockContext(), Context::IsCatchContext(), JSObject::IsDirty(), Object::IsFiller(), FreeListNode::IsFreeListNode(), Context::IsFunctionContext(), Object::IsInstanceOf(), Context::IsModuleContext(), JSReceiver::IsSimpleEnum(), String::IsTwoByteRepresentation(), String::IsTwoByteRepresentationUnderneath(), Context::IsWithContext(), HeapObject::Iterate(), JSObject::JSObjectShortPrint(), String::MarkAsUndetectable(), Isolate::MayIndexedAccess(), Isolate::MayNamedAccess(), FreeListNode::next(), FreeListNode::next_address(), FixedArray::NoIncrementalWriteBarrierSet(), JSObject::NormalizeElements(), JSObject::NormalizeProperties(), FixedArray::NoWriteBarrierSet(), JSObject::NumberOfLocalProperties(), JSObject::OptimizeAsPrototype(), 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(), JSReceiver::SetPrototype(), JSFunction::SetPrototype(), 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(), and GlobalObjectsEnumerator::VisitPointers().
|
inline |
Definition at line 1151 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 963 of file objects-inl.h.
References READ_FIELD.
Referenced by SharedFunctionInfo::AttachInitialMap(), JSFunctionResultCache::Clear(), Map::ClearNonLiveTransitions(), FixedArray::data_start(), SharedFunctionInfo::DetachInitialMap(), DescriptorArray::GetEnumCacheSlot(), DescriptorArray::GetKeySlot(), DescriptorArray::GetTransitionsSlot(), DescriptorArray::GetValueSlot(), IncrementalMarking::Hurry(), Marker< BaseMarker >::MarkAccessorPairSlot(), Marker< BaseMarker >::MarkMapContents(), TraversableMap::MutatedInstanceDescriptors(), Heap::ProcessWeakReferences(), IncrementalMarking::RecordWriteSlow(), v8::internal::RUNTIME_FUNCTION(), JSFunction::set_code(), and IncrementalMarking::Step().
|
inline |
Definition at line 1135 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::OptimizeAsPrototype(), JSObject::PreventExtensions(), JSFunction::RemovePrototype(), JSObject::ResetElements(), v8::internal::RUNTIME_FUNCTION(), JSObject::set_map_and_elements(), JSObject::SetFastElement(), JSObject::SetPropertyForResult(), JSReceiver::SetPrototype(), JSFunction::SetPrototype(), StringDictionary::TransformPropertiesToFastFor(), JSObject::TransitionElementsKind(), and JSObject::UpdateMapCodeCache().
|
inline |
Definition at line 1146 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::AllocateRawAsciiString(), Heap::AllocateRawTwoByteString(), Heap::AllocateScopeInfo(), Heap::AllocateUninitializedFixedDoubleArray(), Heap::AllocateWithContext(), SymbolKey::AsObject(), Heap::CopyFixedArrayWithMap(), Heap::CopyFixedDoubleArrayWithMap(), FixedArray::CopySize(), Heap::CreateCode(), Heap::CreateFillerObjectAt(), StringSplitCache::Enter(), TraversableMap::GetAndResetParent(), String::MakeExternal(), v8::internal::RUNTIME_FUNCTION(), JSObject::set_map_and_elements(), FreeListNode::set_size(), and TraversableMap::SetParent().
|
inline |
Definition at line 1156 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 1174 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(), StoreBuffer::IteratePointersToNewSpace(), String::MakeExternal(), Marker< BaseMarker >::MarkMapContents(), FreeListNode::next(), SemiSpaceIterator::Next(), FreeListNode::next_address(), NewSpace::RecordAllocation(), NewSpace::RecordPromotion(), Heap::RecordStats(), Serializer::ObjectSerializer::Serialize(), FreeListNode::set_next(), and JSReceiver::SetPrototype().
|
inline |
Definition at line 2809 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 1220 of file objects.h.
Referenced by Struct::InitializeBody(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 1219 of file objects.h.
Referenced by MacroAssembler::IsObjectStringType(), HeapObject::Iterate(), HeapObject::map_word(), and HeapObject::set_map_word().