v8
3.25.30(node0.11.13)
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 void | UpdateMapCodeCache (Handle< HeapObject > object, Handle< Name > name, Handle< Code > code) |
static HeapObject * | cast (Object *obj) |
Static Public Member Functions inherited from Object | |
static MUST_USE_RESULT Handle < Object > | ToSmi (Isolate *isolate, Handle< Object > object) |
static Handle< Object > | GetPropertyWithReceiver (Handle< Object > object, Handle< Object > receiver, Handle< Name > name, PropertyAttributes *attributes) |
static Handle< Object > | GetProperty (Handle< Object > object, Handle< Name > key) |
static Handle< Object > | GetProperty (Handle< Object > object, Handle< Object > receiver, LookupResult *result, Handle< Name > key, PropertyAttributes *attributes) |
static MUST_USE_RESULT MaybeObject * | GetPropertyOrFail (Handle< Object > object, Handle< Object > receiver, LookupResult *result, Handle< Name > key, PropertyAttributes *attributes) |
static Handle< Object > | GetElement (Isolate *isolate, Handle< Object > object, uint32_t index) |
static Handle< Object > | GetElementNoExceptionThrown (Isolate *isolate, Handle< Object > object, uint32_t index) |
static Handle< Object > | GetElementWithReceiver (Isolate *isolate, Handle< Object > object, Handle< Object > receiver, uint32_t index) |
static Handle< Object > | GetOrCreateHash (Handle< Object > object, Isolate *isolate) |
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) |
void | IterateNextCodeLink (ObjectVisitor *v, int offset) |
Additional Inherited Members | |
Public Types inherited from Object | |
enum | ValueType { OPTIMAL_REPRESENTATION, FORCE_TAGGED } |
|
inline |
Definition at line 1375 of file objects-inl.h.
References v8::internal::kHeapObjectTag.
Referenced by FreeList::Allocate(), Heap::AllocateArgumentsObject(), Heap::AllocateOneByteInternalizedString(), Heap::AllocateRaw(), PagedSpace::AllocateRaw(), Heap::AllocateTwoByteInternalizedString(), AllocationTracker::AllocationEvent(), Heap::AllowedToBeMigrated(), IncrementalMarking::BlackToGreyAndUnshift(), Code::CanDeoptAt(), CpuProfiler::CodeCreateEvent(), Logger::CodeCreateEvent(), Code::CodeIterateBody(), Heap::Contains(), PagedSpace::Contains(), Code::contains(), FreeListCategory::ContainsPageFreeListItemsInList(), Heap::CopyCode(), Heap::CopyConstantPoolArrayWithMap(), Heap::CopyFixedArrayWithMap(), Heap::CopyFixedDoubleArrayWithMap(), Heap::CopyJSObject(), Heap::CreateCode(), LargeObjectSpace::FreeUnmarkedObjects(), HeapProfiler::GetSnapshotObjectId(), IncrementalMarking::Hurry(), MarkingDeque::INLINE(), IncrementalMarkingMarkingVisitor::INLINE(), Heap::InSpace(), JSFunction::JSFunctionIterateBody(), String::MakeExternal(), IndexedReferencesExtractor::MarkVisitedField(), MarkCompactCollector::MigrateObject(), JSObject::MigrateToMap(), Heap::MoveElements(), FreeListNode::next(), BASE_EMBEDDED< Visitor >::next(), FreeListNode::next_address(), FixedArray::NoIncrementalWriteBarrierSet(), FreeListCategory::PickNodeFromList(), IncrementalMarking::RecordWriteFromCode(), IncrementalMarking::RecordWrites(), CpuProfiler::RegExpCodeCreateEvent(), Heap::ReinitializeJSReceiver(), FreeListCategory::RepairFreeList(), MarkCompactCollector::ReportDeleteIfNeeded(), Heap::ReserveSpace(), Serializer::ObjectSerializer::Serialize(), FreeListNode::set_next(), TEST(), IncrementalMarking::UpdateMarkingDequeAfterScavenge(), IncrementalMarkingMarkingVisitor::VisitFixedArrayIncremental(), and StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionStrongCode().
|
inlinestatic |
Referenced by Heap::Allocate(), Heap::AllocateArgumentsObject(), Heap::AllocateConstantPoolArray(), Heap::AllocateHeapNumber(), Heap::AllocateRawOneByteString(), Heap::AllocateRawTwoByteString(), Heap::AllocateSymbol(), TypeFeedbackOracle::CanRetainOtherContext(), FixedTypedArray< Traits >::cast(), JSGeneratorObject::cast(), JSModule::cast(), JSValue::cast(), JSDate::cast(), JSMessageObject::cast(), CompareNilIC::CompareNil(), HeapObjectsSet::Contains(), Heap::CopyAndTenureFixedCOWArray(), Heap::CopyConstantPoolArrayWithMap(), Heap::CopyFixedArrayWithMap(), Heap::CopyFixedDoubleArrayWithMap(), Heap::CopyJSObject(), Code::FindAndReplace(), Code::FindNthObject(), IC::GetCodeCacheHolder(), Execution::GetConstructorDelegate(), Execution::GetFunctionDelegate(), Object::GetMarkerMap(), Object::GetPrototype(), HeapProfiler::GetSnapshotObjectId(), HeapObjectsSet::GetTag(), HeapTypeConfig::handle(), IncrementalMarking::Hurry(), IncrementalMarkingMarkingVisitor::INLINE(), MarkCompactMarkingVisitor::INLINE(), HeapObjectsSet::Insert(), Object::IsCallable(), TypeImpl< class >::IsCurrently(), Object::IsExternal(), Object::IsFiller(), MarkCompactCollector::IsMarked(), TransitionArray::IsSimpleTransition(), Object::IsStruct(), FunctionTemplateInfo::IsTemplateFor(), Heap::IterateAndMarkPointersToFromSpace(), JSObject::JSObjectShortPrint(), StaticMarkingVisitor< StaticVisitor >::MarkMapContents(), StaticMarkingVisitor< StaticVisitor >::MarkTransitionArray(), MarkCompactCollector::MarkWeakObjectToCodeTable(), TypeImpl< class >::OfCurrently(), StringStream::PrintFunction(), StringStream::PrintSecurityTokenIfChanged(), Map::PutPrototypeTransition(), IncrementalMarking::RecordWriteIntoCodeSlow(), ScavengeWeakObjectRetainer::RetainAs(), MarkCompactWeakObjectRetainer::RetainAs(), EvacuationWeakObjectRetainer::RetainAs(), v8::internal::RUNTIME_FUNCTION(), PartialSerializer::SerializeObject(), StartupSerializer::SerializeObject(), HeapObjectsSet::SetTag(), Object::ShortPrint(), TEST(), Execution::TryGetConstructorDelegate(), Execution::TryGetFunctionDelegate(), MarkCompactCollector::TryPromoteObject(), PointersUpdatingVisitor::UpdateSlot(), Serializer::ObjectSerializer::VisitPointers(), StringTableCleaner< finalize_external_strings >::VisitPointers(), and VerifyPointersVisitor::VisitPointers().
|
inlinestatic |
Definition at line 1369 of file objects-inl.h.
References ASSERT_TAG_ALIGNED, and v8::internal::kHeapObjectTag.
Referenced by PagedSpace::AllocateLinearly(), AllocationTracker::AllocationEvent(), JitLogger::CodeDeleteEvent(), JitLogger::CodeMoveEvent(), Heap::CreateFillerObjectAt(), FreeListNode::FromAddress(), InnerPointerToCodeCache::GcSafeFindCodeForInnerPointer(), Code::GetCodeFromTargetAddress(), LargePage::GetObject(), Code::GetObjectFromEntryAddress(), Heap::IterateAndMarkPointersToFromSpace(), SemiSpaceIterator::Next(), ProfileGenerator::RecordTickSample(), TEST(), Marking::TransferMark(), and Heap::UpdateAllocationSiteFeedback().
|
inline |
Definition at line 1323 of file objects-inl.h.
References MemoryChunk::FromAddress(), MemoryChunk::heap(), v8::internal::NULL, and SLOW_ASSERT.
Referenced by ElementsAccessorBase< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS > >::AddElementsToFixedArray(), Dictionary< Shape, Key >::AddEntry(), Context::AddOptimizedFunction(), SharedFunctionInfo::AddToOptimizedCodeMap(), Dictionary< Shape, Key >::AtPut(), SharedFunctionInfo::AttachInitialMap(), JSReceiver::class_name(), JSFunctionResultCache::Clear(), Map::ClearNonLiveTransitions(), SharedFunctionInfo::ClearOptimizedCodeMap(), SharedFunctionInfo::CompleteInobjectSlackTracking(), Map::constructor_name(), FixedArray::ContainsOnlySmisOrHoles(), FixedArray::Copy(), FixedDoubleArray::Copy(), ConstantPoolArray::Copy(), Map::CopyDropDescriptors(), FixedArray::CopySize(), DescriptorArray::CopyUpToAddAttributes(), Dictionary< Shape, Key >::DeleteProperty(), Deoptimizer::DeoptimizeGlobalObject(), Map::DeprecateTarget(), SharedFunctionInfo::DetachInitialMap(), Map::DictionaryElementsInPrototypeChainOnly(), Map::elements_transition_map(), HashTable< Shape, Key >::EnsureCapacity(), SharedFunctionInfo::EvictFromOptimizedCodeMap(), JSObject::FastPropertyAt(), JSObject::FastPropertyAtPut(), Code::FindFirstAllocationSite(), Code::FindFirstMap(), Map::FindInCodeCache(), Dictionary< Shape, Key >::GenerateNewEnumerationIndices(), FixedDoubleArray::get(), ExternalInt32Array::get(), ExternalUint32Array::get(), ExternalFloat32Array::get(), ExternalFloat64Array::get(), ConstantPoolArray::get_code_ptr_entry(), ConstantPoolArray::get_heap_ptr_entry(), ConstantPoolArray::get_int32_entry(), ConstantPoolArray::get_int64_entry(), ConstantPoolArray::get_int64_entry_as_double(), FixedDoubleArray::get_representation(), FixedDoubleArray::get_scalar(), TraversableMap::GetAndResetParent(), AccessorPair::GetComponent(), JSObject::GetElementsKind(), JSProxy::GetElementWithHandler(), JSObject::GetHiddenProperty(), ElementsAccessorBase< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS > >::GetImpl(), TypedElementsAccessor< Kind >::GetImpl(), DictionaryElementsAccessor::GetImpl(), HeapObject::GetIsolate(), JSObject::GetLocalPropertyPostInterceptor(), Map::GetPrototypeTransitions(), HeapObject::GetWriteBarrierMode(), JSObject::HasDictionaryArgumentsElements(), TransitionArray::HasElementsTransition(), JSObject::HasFastArgumentsElements(), HeapObject::HeapObjectShortPrint(), AllocationSite::Initialize(), JSObject::initialize_elements(), JSObject::InitializeBody(), Struct::InitializeBody(), FlexibleBodyVisitor< StaticVisitor, BodyDescriptor, ReturnType >::INLINE(), FixedBodyVisitor< StaticVisitor, BodyDescriptor, ReturnType >::INLINE(), MarkCompactMarkingVisitor::INLINE(), JSObject::InObjectPropertyAtPut(), Code::InvalidateEmbeddedObjects(), Code::InvalidateRelocation(), FixedArray::is_the_hole(), Context::IsBlockContext(), Context::IsCatchContext(), DescriptorArray::IsEmpty(), Object::IsExternal(), Context::IsFunctionContext(), Context::IsGlobalContext(), Context::IsModuleContext(), Context::IsNativeContext(), AllocationSite::IsNestedSite(), JSReceiver::IsSimpleEnum(), Context::IsWithContext(), JSArray::JSArrayUpdateLengthFromIndex(), JSObject::JSObjectShortPrint(), JSReceiver::LocalLookup(), JSReceiver::Lookup(), MapCache::Lookup(), ObjectHashTable::Lookup(), WeakHashTable::Lookup(), CompilationCacheTable::Lookup(), CodeCache::Lookup(), CodeCacheHashTable::Lookup(), PolymorphicCodeCacheHashTable::Lookup(), JSObject::LookupCallbackProperty(), CompilationCacheTable::LookupEval(), StringTable::LookupKey(), CompilationCacheTable::LookupRegExp(), StringTable::LookupTwoCharsStringIfExists(), String::MakeExternal(), String::MarkAsUndetectable(), JSTypedArray::Neuter(), FreeListNode::next(), IntrusiveMapTransitionIterator::Next(), IntrusivePrototypeTransitionIterator::Next(), FreeListNode::next_address(), FixedArray::NoIncrementalWriteBarrierSet(), FixedArray::NoWriteBarrierSet(), MarkCompactMarkingVisitor::ObjectStatsCountFixedArray(), MarkCompactMarkingVisitor::ObjectStatsVisitBase(), IC::PostPatching(), JSObject::PrepareSlowElementsForSort(), StringStream::PrintFixedArray(), StringStream::PrintFunction(), StringStream::PrintUsingMap(), CompilationCacheTable::Put(), CodeCacheHashTable::Put(), PolymorphicCodeCacheHashTable::Put(), CompilationCacheTable::PutEval(), Map::RawCopy(), JSObject::ReferencesObject(), CompilationCacheTable::Remove(), CodeCacheHashTable::RemoveByIndex(), Context::RemoveOptimizedFunction(), JSFunction::RemovePrototype(), SharedFunctionInfo::ReplaceCode(), JSObject::ResetElements(), MarkCompactWeakObjectRetainer::RetainAs(), Heap::ScavengeObject(), PartialSerializer::SerializeObject(), FixedArray::set(), FixedDoubleArray::set(), ConstantPoolArray::set(), SeededNumberDictionary::Set(), UnseededNumberDictionary::Set(), TransitionArray::set_back_pointer_storage(), JSFunction::set_code(), JSFunction::set_code_no_write_barrier(), Code::set_constant_pool(), JSFunction::set_context(), Map::set_elements_transition_map(), ConsString::set_first(), JSFunction::set_function_bindings(), JSBuiltinsObject::set_javascript_builtin(), JSBuiltinsObject::set_javascript_builtin_code(), HeapObject::set_map(), JSObject::set_map_and_elements(), AllocationSite::set_memento_found_count(), FreeListNode::set_next(), FixedArray::set_null(), SlicedString::set_parent(), ConsString::set_second(), FixedArray::set_the_hole(), FixedDoubleArray::set_the_hole(), Code::set_type_feedback_info(), FixedArray::set_undefined(), Map::SetBackPointer(), JSObject::SetInternalField(), DictionaryElementsAccessor::SetLengthWithoutNormalize(), TransitionArray::SetPrototypeTransitions(), IC::SetTargetAtAddress(), ExternalInt8Array::SetValue(), ExternalUint8Array::SetValue(), ExternalInt16Array::SetValue(), ExternalUint16Array::SetValue(), ExternalInt32Array::SetValue(), ExternalUint32Array::SetValue(), ExternalFloat32Array::SetValue(), ExternalFloat64Array::SetValue(), Map::ShareDescriptor(), JSObject::ShouldConvertToFastElements(), JSObject::ShouldConvertToSlowElements(), FixedArray::Shrink(), HashTable< Shape, Key >::Shrink(), JSObject::SlowReverseLookup(), Dictionary< Shape, Key >::SlowReverseLookup(), Serializer::SpaceOfObject(), SharedFunctionInfo::StartInobjectSlackTracking(), String::ToCString(), String::ToWideCString(), NameDictionary::TransformPropertiesToFastFor(), SharedFunctionInfo::TrimOptimizedCodeMap(), CodeCache::Update(), PolymorphicCodeCache::Update(), Map::UpdateCodeCache(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::ValidateContents(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitMap >::Visit(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitCode >::Visit(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitSharedFunctionInfo >::Visit(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitFixedArray >::Visit(), IncrementalMarkingMarkingVisitor::VisitFixedArrayIncremental(), FlexibleBodyVisitor< StaticVisitor, BodyDescriptor, ReturnType >::VisitSpecialized(), IncrementalMarkingMarkingVisitor::VisitWeakCollection(), MarkCompactMarkingVisitor::VisitWeakCollection(), Map::ZapPrototypeTransitions(), and Map::ZapTransitions().
|
inline |
Definition at line 1331 of file objects-inl.h.
References HeapObject::GetHeap(), and Heap::isolate().
Referenced by HeapTypeConfig::as_constant(), v8::internal::CacheInitialJSArrayMaps(), JSProxy::CallTrap(), v8::internal::CheckArrayAbuse(), CompareNilIC::Clear(), Code::CodeIterateBody(), ScopeInfo::ContextSlotIndex(), Map::CopyAddDescriptor(), TransitionArray::CopyInsert(), Map::CopyReplaceDescriptor(), DescriptorArray::CopyUpToAddAttributes(), DictionaryElementsAccessor::DeleteCommon(), Map::DeprecateTransitionTree(), Map::DictionaryElementsInPrototypeChainOnly(), SharedFunctionInfo::DisableOptimization(), JSObject::EnsureWritableFastElements(), Context::ErrorMessageForCodeGenerationFromStrings(), TransitionArray::ExtendToFullTransitionArray(), HashTable< Shape, Key >::FindEntry(), JSReceiver::GenerateIdentityHash(), FixedDoubleArray::get_as_handle(), JSTypedArray::GetBuffer(), JSObject::GetLocalPropertyAccessorPair(), JSObject::GetLocalPropertyPostInterceptor(), Object::GetProperty(), Object::GetPropertyWithDefinedGetter(), JSProxy::GetPropertyWithHandler(), Object::GetPropertyWithReceiver(), SharedFunctionInfo::GetSourceCode(), Context::global_object(), Map::has_code_cache(), PromotionQueue::insert(), SharedFunctionInfo::is_compiled(), JSFunction::is_compiled(), JSFunction::IsInOptimizationQueue(), Map::IsMapInArrayPrototypeChain(), JSFunction::IsMarkedForConcurrentOptimization(), JSFunction::IsMarkedForOptimization(), String::LooksValid(), Context::Lookup(), PolymorphicCodeCache::Lookup(), JSObject::LookupRealNamedPropertyInPrototypes(), Code::MakeOlder(), JSFunction::MarkForConcurrentOptimization(), JSFunction::MarkForOptimization(), JSFunction::MarkInOptimizationQueue(), DescriptorArray::Merge(), Context::native_context(), TransitionArray::NewWith(), Map::NotifyLeafMapLayoutChange(), Code::PrintDeoptLocation(), Map::PrintGeneralization(), StringStream::PrintPrototype(), StringStream::PrintSecurityTokenIfChanged(), JSObject::ResetElements(), Heap::ScavengeObject(), JSDate::SetValue(), Map::ShareDescriptor(), NameDictionary::TransformPropertiesToFastFor(), ContextSlotCache::Update(), KeyedLookupCache::Update(), and VerifyPointersVisitor::VisitPointers().
|
inline |
Definition at line 2350 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::CopyAndTenureFixedCOWArray(), 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 1621 of file objects.cc.
References StringStream::Add(), v8::internal::BYTE_ARRAY_TYPE, HeapNumber::cast(), JSObject::cast(), FixedArray::cast(), FixedDoubleArray::cast(), ByteArray::cast(), FreeSpace::cast(), Map::cast(), SharedFunctionInfo::cast(), Symbol::cast(), String::cast(), Cell::cast(), PropertyCell::cast(), v8::internal::CELL_TYPE, v8::internal::CODE_TYPE, Heap::Contains(), SharedFunctionInfo::DebugName(), v8::internal::FIXED_ARRAY_TYPE, v8::internal::FIXED_DOUBLE_ARRAY_TYPE, v8::internal::FOREIGN_TYPE, v8::internal::FREE_SPACE_TYPE, SmartPointerBase< Deallocator, T >::get(), HeapObject::GetHeap(), Name::Hash(), v8::internal::HEAP_NUMBER_TYPE, HeapNumber::HeapNumberPrint(), v8::internal::JS_FUNCTION_PROXY_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, v8::internal::PROPERTY_CELL_TYPE, StringStream::Put(), v8::internal::SHARED_FUNCTION_INFO_TYPE, Object::ShortPrint(), HeapObject::Size(), String::StringShortPrint(), STRUCT_LIST, v8::internal::SYMBOL_TYPE, String::ToCString(), TYPED_ARRAY_SHORT_PRINT, and TYPED_ARRAYS.
Referenced by Object::ShortPrint().
void Iterate | ( | ObjectVisitor * | v | ) |
Definition at line 1751 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 1760 of file objects.cc.
References v8::internal::ALLOCATION_SITE_TYPE, v8::internal::BYTE_ARRAY_TYPE, v8::internal::CELL_TYPE, v8::internal::CODE_TYPE, v8::internal::CONSTANT_POOL_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< kPropertiesOffset >::IterateBody(), FlexibleBodyDescriptor< kHeaderSize >::IterateBody(), FlexibleBodyDescriptor< HeapObject::kHeaderSize >::IterateBody(), v8::internal::JS_ARRAY_BUFFER_TYPE, v8::internal::JS_ARRAY_TYPE, v8::internal::JS_BUILTINS_OBJECT_TYPE, v8::internal::JS_CONTEXT_EXTENSION_OBJECT_TYPE, v8::internal::JS_DATA_VIEW_TYPE, v8::internal::JS_DATE_TYPE, v8::internal::JS_FUNCTION_PROXY_TYPE, v8::internal::JS_FUNCTION_TYPE, v8::internal::JS_GENERATOR_OBJECT_TYPE, v8::internal::JS_GLOBAL_OBJECT_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_TYPED_ARRAY_TYPE, v8::internal::JS_VALUE_TYPE, v8::internal::JS_WEAK_MAP_TYPE, v8::internal::JS_WEAK_SET_TYPE, v8::internal::kConsStringTag, v8::internal::kExternalStringTag, v8::internal::kOneByteStringTag, 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::PROPERTY_CELL_TYPE, v8::internal::SHARED_FUNCTION_INFO_TYPE, STRUCT_LIST, v8::internal::SYMBOL_TYPE, TYPED_ARRAY_CASE, TYPED_ARRAYS, and UNREACHABLE.
Referenced by HeapObject::Iterate(), and Serializer::ObjectSerializer::Serialize().
|
inlineprotected |
Definition at line 1396 of file objects-inl.h.
References FIELD_ADDR.
Referenced by Code::CodeIterateBody().
|
inlineprotected |
Definition at line 1391 of file objects-inl.h.
References FIELD_ADDR.
Referenced by Code::CodeIterateBody(), and HeapObject::Iterate().
|
inlineprotected |
Definition at line 1385 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 1336 of file objects-inl.h.
References HeapObject::map_word().
Referenced by AccumulateStatsWithOperator(), Heap::AllocateArgumentsObject(), Heap::AllowedToBeMigrated(), FixedTypedArray< Traits >::cast(), TraversableMap::ChildIteratorNext(), JSReceiver::class_name(), StubCache::Clear(), CompareNilIC::CompareNil(), JSReceiver::constructor_name(), ConsStringIteratorOp::ContinueOperation(), Heap::CopyConstantPoolArray(), Heap::CopyFixedArray(), Heap::CopyFixedDoubleArray(), Heap::CopyJSObject(), FixedArray::CopySize(), FixedTypedArrayBase::DataSize(), Map::DictionaryElementsInPrototypeChainOnly(), JSTypedArray::element_size(), JSObject::EnsureWritableFastElements(), JSObject::FastPropertyAtPut(), Code::FindAllTypes(), Code::FindAndReplace(), Code::FindNthObject(), Map::GeneralizeAllFieldRepresentations(), NormalizedMapCache::Get(), ConstantPoolArray::get_code_ptr_entry(), ConstantPoolArray::get_heap_ptr_entry(), ConstantPoolArray::get_int32_entry(), ConstantPoolArray::get_int64_entry(), ConstantPoolArray::get_int64_entry_as_double(), FixedDoubleArray::get_representation(), FixedDoubleArray::get_scalar(), TraversableMap::GetAndResetParent(), JSTypedArray::GetBuffer(), 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(), Object::GetMarkerMap(), JSObject::GetNamedInterceptor(), Object::GetPrototype(), JSReceiver::GetPrototype(), TransitionArray::GetTargetDetails(), JSFunction::has_prototype(), JSObject::HasDictionaryArgumentsElements(), JSObject::HasFastArgumentsElements(), JSObject::HasFastProperties(), JSObject::HasIndexedInterceptor(), JSObject::HasNamedInterceptor(), String::HasOnlyOneByteChars(), HeapObject::HeapObjectShortPrint(), JSObject::initialize_elements(), MarkCompactMarkingVisitor::INLINE(), Heap::InternalizedStringMapForString(), ExternalString::is_short(), Context::IsBlockContext(), Object::IsCallable(), Context::IsCatchContext(), TypeImpl< class >::IsCurrently(), JSObject::IsDirty(), Object::IsExternal(), Object::IsFiller(), FreeListNode::IsFreeListNode(), Context::IsFunctionContext(), Context::IsGlobalContext(), Context::IsModuleContext(), Context::IsNativeContext(), String::IsOneByteRepresentation(), String::IsOneByteRepresentationUnderneath(), JSReceiver::IsSimpleEnum(), TransitionArray::IsSimpleTransition(), FunctionTemplateInfo::IsTemplateFor(), String::IsTwoByteRepresentation(), String::IsTwoByteRepresentationUnderneath(), Context::IsWithContext(), HeapObject::Iterate(), JSObject::JSObjectShortPrint(), JSReceiver::LocalLookup(), JSObject::LocalLookupRealNamedProperty(), String::MarkAsUndetectable(), Isolate::MayIndexedAccess(), Isolate::MayNamedAccess(), Heap::MoveElements(), JSTypedArray::Neuter(), FreeListNode::next(), FreeListNode::next_address(), FixedArray::NoIncrementalWriteBarrierSet(), JSObject::NormalizeProperties(), FixedArray::NoWriteBarrierSet(), JSObject::NumberOfLocalProperties(), MarkCompactMarkingVisitor::ObjectStatsCountFixedArray(), TypeImpl< class >::OfCurrently(), StringStream::PrintFunction(), JSObject::PrintInstanceMigration(), StringStream::PrintSecurityTokenIfChanged(), StringStream::PrintUsingMap(), JSFunction::prototype(), Map::PutPrototypeTransition(), JSObject::RawFastPropertyAt(), NewSpace::RecordAllocation(), NewSpace::RecordPromotion(), Heap::RecordStats(), JSObject::ReferencesObject(), Heap::ReinitializeJSReceiver(), JSFunction::RemovePrototype(), Isolate::ReportFailedAccessCheck(), JSObject::ResetElements(), v8::internal::RUNTIME_FUNCTION(), Heap::ScavengeObject(), Serializer::ObjectSerializer::Serialize(), FixedArray::set(), FixedDoubleArray::set(), ConstantPoolArray::set(), JSFunction::set_function_bindings(), JSObject::set_map_and_elements(), FreeListNode::set_next(), FixedArray::set_the_hole(), FixedDoubleArray::set_the_hole(), FixedArray::set_undefined(), JSObject::SetPrototype(), Map::ShareDescriptor(), JSFunction::should_have_prototype(), PartialSerializer::ShouldBeInThePartialSnapshotCache(), JSObject::ShouldConvertToFastElements(), HeapObject::Size(), JSObject::SlowReverseLookup(), KeyedStoreIC::Store(), TEST(), JSObject::TooManyFastProperties(), NameDictionary::TransformPropertiesToFastFor(), Execution::TryGetConstructorDelegate(), Execution::TryGetFunctionDelegate(), JSTypedArray::type(), Heap::UpdateAllocationSiteFeedback(), HeapObject::UpdateMapCodeCache(), IncrementalMarking::UpdateMarkingDequeAfterScavenge(), FastElementsAccessor< FastPackedSmiElementsAccessor, ElementsKindTraits< FAST_SMI_ELEMENTS >, kPointerSize >::ValidateContents(), String::Visit(), GlobalObjectsEnumerator::VisitPointers(), VerifyPointersVisitor::VisitPointers(), and MarkCompactMarkingVisitor::VisitWeakCollection().
|
inline |
Definition at line 1357 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(), and PointersUpdatingVisitor::UpdateSlot().
|
inlinestatic |
Definition at line 1199 of file objects-inl.h.
References READ_FIELD.
Referenced by Heap::AllocateConstantPoolArray(), SharedFunctionInfo::AttachInitialMap(), FixedArray::data_start(), SharedFunctionInfo::DetachInitialMap(), WeakListVisitor< Context >::DoWeakList(), DescriptorArray::GetEnumCacheSlot(), TransitionArray::GetPrototypeTransitionsSlot(), FixedBodyDescriptor< start_offset, end_offset, size >::IterateBody(), FlexibleBodyDescriptor< start_offset >::IterateBody(), FlexibleBodyDescriptor< kHeaderSize >::IterateBody(), StaticMarkingVisitor< StaticVisitor >::MarkMapContents(), FixedArray::RawFieldOfElementAt(), ConstantPoolArray::RawFieldOfElementAt(), IncrementalMarking::RecordWriteSlow(), v8::internal::RUNTIME_FUNCTION(), JSFunction::set_code(), Map::unchecked_transition_array(), IncrementalMarkingMarkingVisitor::VisitFixedArrayIncremental(), StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionStrongCode(), StaticMarkingVisitor< StaticVisitor >::VisitJSFunctionWeakCode(), WeakListVisitor< JSArrayBuffer >::VisitLiveObject(), StaticMarkingVisitor< StaticVisitor >::VisitSharedFunctionInfoStrongCode(), StaticMarkingVisitor< StaticVisitor >::VisitSharedFunctionInfoWeakCode(), IncrementalMarkingMarkingVisitor::VisitWeakCollection(), and MarkCompactMarkingVisitor::VisitWeakCollection().
|
inline |
Definition at line 1341 of file objects-inl.h.
References HeapObject::GetHeap(), Heap::incremental_marking(), v8::internal::NULL, and HeapObject::set_map_word().
Referenced by Heap::AllocateFixedTypedArray(), String::MarkAsUndetectable(), JSFunction::RemovePrototype(), JSObject::ResetElements(), JSObject::set_map_and_elements(), and NameDictionary::TransformPropertiesToFastFor().
|
inline |
Definition at line 1352 of file objects-inl.h.
References HeapObject::set_map_word().
Referenced by Heap::Allocate(), Heap::AllocateBlockContext(), Heap::AllocateCatchContext(), Heap::AllocateConstantPoolArray(), Heap::AllocateFixedDoubleArrayWithHoles(), Heap::AllocateFunctionContext(), Heap::AllocateGlobalContext(), Heap::AllocateHeapNumber(), Heap::AllocateMap(), Heap::AllocateModuleContext(), Heap::AllocateNativeContext(), Heap::AllocateRawOneByteString(), Heap::AllocateRawTwoByteString(), Heap::AllocateScopeInfo(), Heap::AllocateSymbol(), Heap::AllocateUninitializedFixedDoubleArray(), Heap::AllocateWithContext(), InternalizedStringKey::AsObject(), Heap::CopyAndTenureFixedCOWArray(), Heap::CopyConstantPoolArrayWithMap(), Heap::CopyFixedArrayWithMap(), Heap::CopyFixedDoubleArrayWithMap(), FixedArray::CopySize(), Heap::CreateCode(), Heap::CreateFillerObjectAt(), RegExpResultsCache::Enter(), TraversableMap::GetAndResetParent(), String::MakeExternal(), JSObject::set_map_and_elements(), FreeListNode::set_size(), and TraversableMap::SetParent().
|
inline |
Definition at line 1362 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 1380 of file objects-inl.h.
References HeapObject::map(), and HeapObject::SizeFromMap().
Referenced by Heap::AllocateInternalizedStringImpl(), Heap::AllocateOneByteInternalizedString(), Heap::AllocateTwoByteInternalizedString(), AllocationTracker::AllocationEvent(), IncrementalMarking::BlackToGreyAndUnshift(), Code::contains(), Heap::CopyCode(), JSObject::GetInternalFieldCount(), HeapObject::HeapObjectShortPrint(), IncrementalMarking::Hurry(), IncrementalMarkingMarkingVisitor::INLINE(), 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(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitMap >::Visit(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitCode >::Visit(), and MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitFixedArray >::Visit().
|
inline |
Definition at line 3946 of file objects-inl.h.
References v8::internal::ASCII_INTERNALIZED_STRING_TYPE, v8::internal::ASCII_STRING_TYPE, ASSERT, v8::internal::BYTE_ARRAY_TYPE, v8::internal::CODE_TYPE, v8::internal::CONSTANT_POOL_ARRAY_TYPE, v8::internal::FIRST_FIXED_TYPED_ARRAY_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::INTERNALIZED_STRING_TYPE, v8::internal::kVariableSizeSentinel, v8::internal::LAST_FIXED_TYPED_ARRAY_TYPE, v8::internal::size, FixedDoubleArray::SizeFor(), ConstantPoolArray::SizeFor(), SeqOneByteString::SizeFor(), SeqTwoByteString::SizeFor(), FixedArray::BodyDescriptor::SizeOf(), and v8::internal::STRING_TYPE.
Referenced by HeapObject::Iterate(), and HeapObject::Size().
STATIC_CHECK | ( | kMapOffset | = =Internals::kHeapObjectMapOffset | ) |
|
static |
Definition at line 4552 of file objects.cc.
References HeapObject::map(), and Map::UpdateCodeCache().
Referenced by LoadIC::CompileHandler(), StoreIC::CompileHandler(), and IC::ComputeHandler().
|
static |
Definition at line 1891 of file objects.h.
Referenced by Struct::InitializeBody(), and v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 1890 of file objects.h.
Referenced by HLoadEliminationEffects::Apply(), LCodeGen::DoDeferredMathAbsTaggedHeapNumber(), LCodeGen::DoDeferredTaggedToI(), V8_FINAL< kOperandKind, kNumCachedOperands >::ForMap(), MacroAssembler::IsObjectJSObjectType(), MacroAssembler::IsObjectJSStringType(), MacroAssembler::IsObjectStringType(), HeapObject::Iterate(), HeapObject::map_word(), HLoadEliminationTable::Process(), and HeapObject::set_map_word().