v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <objects.h>
Data Structures | |
class | DictionaryMap |
class | EnumLengthBits |
class | FunctionWithPrototype |
class | IsShared |
class | NumberOfOwnDescriptorsBits |
class | OwnsDescriptors |
Public Types | |
typedef void(* | TraverseCallback )(Map *map, void *data) |
typedef FixedBodyDescriptor < kPointerFieldsBeginOffset, kPointerFieldsEndOffset, kSize > | BodyDescriptor |
Static Public Member Functions | |
static bool | IsValidElementsTransition (ElementsKind from_kind, ElementsKind to_kind) |
static Map * | cast (Object *obj) |
static void | UpdateCodeCache (Handle< Map > map, Handle< String > name, Handle< Code > code) |
static void | AppendCallbackDescriptors (Handle< Map > map, Handle< Object > descriptors) |
static void | EnsureDescriptorSlack (Handle< Map > map, int slack) |
Static Public Member Functions inherited from HeapObject | |
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) |
Additional Inherited Members | |
Protected Member Functions inherited from HeapObject | |
void | IteratePointers (ObjectVisitor *v, int start, int end) |
void | IteratePointer (ObjectVisitor *v, int offset) |
|
inline |
Definition at line 3694 of file objects-inl.h.
References TransitionArray::NewWith().
Definition at line 2187 of file objects.cc.
References ASSERT, String::cast(), AccessorInfo::cast(), Isolate::factory(), DescriptorArray::kNotFound, AccessorInfo::property_attributes(), and Factory::SymbolFromString().
Referenced by Factory::CreateApiFunction().
|
inline |
Definition at line 3649 of file objects-inl.h.
References DescriptorArray::Append(), ASSERT, and DescriptorArray::number_of_descriptors().
|
inline |
Definition at line 3108 of file objects-inl.h.
|
inline |
Definition at line 3029 of file objects-inl.h.
References READ_BYTE_FIELD.
Referenced by Map::EquivalentToForNormalization().
|
inline |
Definition at line 3039 of file objects-inl.h.
References READ_BYTE_FIELD.
Referenced by SharedFunctionInfo::AttachInitialMap(), SharedFunctionInfo::DetachInitialMap(), Map::EquivalentToForNormalization(), and Map::Hash().
|
inline |
|
inline |
Definition at line 3686 of file objects-inl.h.
References Page::kMaxNonCodeHeapObjectSize, TransitionArray::kTransitionSize, FixedArrayBase::length(), and FixedArray::SizeFor().
Referenced by v8::internal::ACCESSORS(), Heap::AllocateJSObject(), TypeFeedbackOracle::CollectKeyedReceiverTypes(), SharedFunctionInfo::CompleteInobjectSlackTracking(), JSObject::ConvertTransitionToMapTransition(), Heap::CreateApiObjects(), Runtime::CreateArrayLiteralBoilerplate(), TransitionArray::elements_transition(), Code::FindFirstMap(), NormalizedMapCache::Get(), JSObject::GetElementsTransitionMap(), Map::GetPrototypeTransition(), TransitionArray::GetTarget(), BASE_EMBEDDED< Visitor >::GetTransitionMap(), HeapObject::HeapObjectShortPrint(), Heap::MapForExternalArrayType(), JSObject::NormalizeElements(), JSObject::PrepareElementsForSort(), JSObject::ResetElements(), v8::internal::RUNTIME_FUNCTION(), PartialSerializer::SerializeObject(), Map::ShareDescriptor(), TEST(), JSObject::UpdateMapCodeCache(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitMap >::Visit(), and StaticMarkingVisitor< StaticVisitor >::VisitMap().
|
inline |
Definition at line 5250 of file objects-inl.h.
References ASSERT, Heap::InNewSpace(), Map::kCodeCacheOffset, and WRITE_FIELD.
Referenced by Map::CopyDropDescriptors(), and StaticMarkingVisitor< StaticVisitor >::VisitMap().
void ClearNonLiveTransitions | ( | Heap * | heap | ) |
Definition at line 7426 of file objects.cc.
References ASSERT, TransitionArray::ClearElementsTransition(), TransitionArray::elements_transition(), HeapObject::GetHeap(), TransitionArray::GetKey(), TransitionArray::GetKeySlot(), TransitionArray::GetTarget(), TransitionArray::HasElementsTransition(), Map::HasTransitionArray(), TransitionArray::IsSimpleTransition(), TransitionArray::kTransitionSize, Heap::mark_compact_collector(), DescriptorArray::number_of_descriptors(), TransitionArray::number_of_transitions(), Map::NumberOfOwnDescriptors(), TransitionArray::SetKey(), and TransitionArray::SetTarget().
|
inline |
Definition at line 3636 of file objects-inl.h.
References CONDITIONAL_WRITE_BARRIER, Heap::ShouldZapGarbage(), and WRITE_FIELD.
MaybeObject * Copy | ( | ) |
Definition at line 5130 of file objects.cc.
References DescriptorArray::CopyUpTo(), v8::internal::NULL, and v8::internal::OMIT_TRANSITION.
Referenced by Heap::AllocateFunctionPrototype(), JSObject::PreventExtensions(), v8::internal::RUNTIME_FUNCTION(), JSFunction::SetInstancePrototype(), JSReceiver::SetPrototype(), and JSFunction::SetPrototype().
MaybeObject * CopyAddDescriptor | ( | Descriptor * | descriptor, |
TransitionFlag | flag | ||
) |
Definition at line 5142 of file objects.cc.
References DescriptorArray::Allocate(), DescriptorArray::Append(), DescriptorArray::CopyFrom(), v8::internal::INSERT_TRANSITION, DescriptorArray::number_of_descriptors(), DescriptorArray::Set(), DescriptorArray::SetNumberOfDescriptors(), and DescriptorArray::Sort().
Referenced by JSObject::AddConstantFunctionProperty(), and JSObject::AddFastProperty().
MaybeObject * CopyAsElementsKind | ( | ElementsKind | kind, |
TransitionFlag | flag | ||
) |
Definition at line 5058 of file objects.cc.
References ASSERT, v8::internal::Copy(), v8::internal::DICTIONARY_ELEMENTS, Map::InitializeDescriptors(), v8::internal::INSERT_TRANSITION, v8::internal::IsExternalArrayElementsKind(), v8::internal::IsFastElementsKind(), v8::internal::IsMoreGeneralElementsKindTransition(), Map::set_elements_kind(), and Map::SetBackPointer().
Referenced by JSObject::GetElementsTransitionMapSlow(), and JSFunction::set_initial_map_and_cache_transitions().
MaybeObject * CopyDropDescriptors | ( | ) |
Definition at line 4938 of file objects.cc.
References Map::ClearCodeCache(), HeapObject::GetHeap(), Map::set_inobject_properties(), Map::set_is_shared(), Map::set_pre_allocated_property_fields(), and Map::set_unused_property_fields().
Referenced by Heap::AllocateGlobalObject(), JSObject::DeleteNormalizedProperty(), and StringDictionary::TransformPropertiesToFastFor().
MaybeObject * CopyInsertDescriptor | ( | Descriptor * | descriptor, |
TransitionFlag | flag | ||
) |
Definition at line 5186 of file objects.cc.
References DescriptorArray::kNotFound.
Referenced by JSObject::ConvertDescriptorToField(), and JSObject::DefineFastAccessor().
MaybeObject * CopyNormalized | ( | PropertyNormalizationMode | mode, |
NormalizedMapSharingMode | sharing | ||
) |
Definition at line 4909 of file objects.cc.
References v8::internal::CLEAR_INOBJECT_PROPERTIES, Map::is_shared(), v8::internal::kPointerSize, Map::set_dictionary_map(), Map::set_inobject_properties(), Map::set_is_shared(), and v8::internal::SHARED_NORMALIZED_MAP.
Referenced by NormalizedMapCache::Get(), and JSObject::UpdateMapCodeCache().
MaybeObject * CopyReplaceDescriptor | ( | DescriptorArray * | descriptors, |
Descriptor * | descriptor, | ||
int | index, | ||
TransitionFlag | flag | ||
) |
Definition at line 5223 of file objects.cc.
References DescriptorArray::Allocate(), ASSERT, ASSERT_LE, DescriptorArray::CopyFrom(), DescriptorArray::GetDetails(), DescriptorArray::GetKey(), FixedArrayBase::length(), DescriptorArray::Set(), and DescriptorArray::Sort().
Referenced by v8::internal::RUNTIME_FUNCTION().
MaybeObject * CopyReplaceDescriptors | ( | DescriptorArray * | descriptors, |
String * | name, | ||
TransitionFlag | flag, | ||
int | descriptor_index | ||
) |
Definition at line 5029 of file objects.cc.
References ASSERT, v8::internal::FULL_TRANSITION, v8::internal::INSERT_TRANSITION, DescriptorArray::number_of_descriptors(), and v8::internal::SIMPLE_TRANSITION.
MaybeObject * CopyWithPreallocatedFieldDescriptors | ( | ) |
Definition at line 5110 of file objects.cc.
References ASSERT, JSFunction::cast(), DescriptorArray::CopyUpTo(), JSFunction::initial_map(), v8::internal::NULL, Map::NumberOfOwnDescriptors(), and v8::internal::OMIT_TRANSITION.
|
inline |
Definition at line 4781 of file objects.h.
Referenced by JSObject::EnsureCanContainElements(), JSObject::EnsureCanContainHeapObjectElements(), JSObject::GetElementsKind(), JSObject::GetElementsTransitionMap(), JSObject::GetElementsTransitionMapSlow(), Map::LookupElementsTransitionMap(), JSFunction::set_initial_map_and_cache_transitions(), and JSObject::TransitionElementsKind().
|
inline |
Definition at line 3681 of file objects-inl.h.
Definition at line 2170 of file objects.cc.
References Isolate::factory(), and Factory::NewDescriptorArray().
Referenced by Factory::CreateApiFunction().
|
inline |
Definition at line 4955 of file objects.h.
Referenced by JSReceiver::IsSimpleEnum(), and JSObject::NumberOfLocalProperties().
bool EquivalentToForNormalization | ( | Map * | other, |
PropertyNormalizationMode | mode | ||
) |
Definition at line 7511 of file objects.cc.
References Map::bit_field(), Map::bit_field2(), v8::internal::CLEAR_INOBJECT_PROPERTIES, Map::function_with_prototype(), Map::inobject_properties(), and Map::instance_type().
Referenced by NormalizedMapCache::Get().
AccessorDescriptor * FindAccessor | ( | String * | name | ) |
Definition at line 4255 of file objects.cc.
References v8::internal::CALLBACKS, String::Equals(), DescriptorArray::GetCallbacks(), DescriptorArray::GetKey(), DescriptorArray::GetType(), and v8::internal::NULL.
Object * FindInCodeCache | ( | String * | name, |
Code::Flags | flags | ||
) |
Definition at line 5287 of file objects.cc.
References CodeCache::cast(), HeapObject::GetHeap(), and CodeCache::Lookup().
Handle< Map > FindTransitionedMap | ( | MapHandleList * | candidates | ) |
Definition at line 2243 of file objects.cc.
References v8::internal::CanTransitionToMoreGeneralFastElementsKind(), v8::internal::GetNextMoreGeneralFastElementsKind(), Handle< T >::is_null(), v8::internal::IsFastPackedElementsKind(), v8::internal::IsTransitionableFastElementsKind(), and Handle< T >::null().
|
inline |
Definition at line 3068 of file objects-inl.h.
Referenced by Map::EquivalentToForNormalization(), and JSFunction::should_have_prototype().
|
inline |
Definition at line 3659 of file objects-inl.h.
References ASSERT, TransitionArray::back_pointer_storage(), TransitionArray::cast(), and READ_FIELD.
Referenced by JSObject::ConvertTransitionToMapTransition(), StaticMarkingVisitor< StaticVisitor >::MarkMapContents(), and Map::ShareDescriptor().
Definition at line 8938 of file objects.cc.
References Map::cast(), FixedArray::get(), Map::GetPrototypeTransitions(), Map::kProtoTransitionElementsPerEntry, Map::kProtoTransitionHeaderSize, Map::kProtoTransitionMapOffset, Map::kProtoTransitionPrototypeOffset, v8::internal::NULL, and Map::NumberOfProtoTransitions().
Referenced by JSReceiver::SetPrototype(), and TEST().
|
inline |
Definition at line 3720 of file objects-inl.h.
References HeapObject::GetHeap().
Referenced by Map::GetPrototypeTransition(), Map::PutPrototypeTransition(), TEST(), and Map::ZapPrototypeTransitions().
|
inline |
Definition at line 3707 of file objects-inl.h.
Referenced by JSObject::ConvertTransitionToMapTransition().
|
inline |
Definition at line 4812 of file objects.h.
References v8::internal::IsDictionaryElementsKind().
|
inline |
Definition at line 4808 of file objects.h.
References v8::internal::IsExternalArrayElementsKind().
|
inline |
Definition at line 4800 of file objects.h.
References v8::internal::IsFastDoubleElementsKind().
|
inline |
Definition at line 4792 of file objects.h.
References v8::internal::IsFastObjectElementsKind().
Referenced by Heap::AllocateInitialMap().
|
inline |
Definition at line 4787 of file objects.h.
References v8::internal::IsFastSmiElementsKind().
|
inline |
Definition at line 4796 of file objects.h.
References v8::internal::IsFastSmiOrObjectElementsKind().
Referenced by JSObject::NormalizeElements().
|
inline |
Definition at line 4743 of file objects.h.
Referenced by JSObject::HasIndexedInterceptor().
|
inline |
Definition at line 4766 of file objects.h.
Referenced by Execution::GetConstructorDelegate(), Execution::GetFunctionDelegate(), Execution::TryGetConstructorDelegate(), and Execution::TryGetFunctionDelegate().
|
inline |
Definition at line 4734 of file objects.h.
Referenced by JSObject::HasNamedInterceptor(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 3058 of file objects-inl.h.
Referenced by JSFunction::has_prototype().
|
inline |
Definition at line 4804 of file objects.h.
References v8::internal::NON_STRICT_ARGUMENTS_ELEMENTS.
|
inline |
Definition at line 4816 of file objects.h.
References v8::internal::DICTIONARY_ELEMENTS, and v8::internal::NON_STRICT_ARGUMENTS_ELEMENTS.
|
inline |
Definition at line 3670 of file objects-inl.h.
int Hash | ( | ) |
Definition at line 7493 of file objects.cc.
References Map::bit_field2().
Referenced by NormalizedMapCache::Get().
|
inline |
Definition at line 3743 of file objects-inl.h.
|
inline |
Definition at line 3675 of file objects-inl.h.
References READ_FIELD.
Referenced by Map::ClearNonLiveTransitions(), Map::LookupTransition(), and MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitMap >::Visit().
Definition at line 5297 of file objects.cc.
References CodeCache::cast(), and CodeCache::GetIndex().
|
inline |
Definition at line 3769 of file objects-inl.h.
References ASSERT, and WRITE_FIELD.
Referenced by Heap::AllocateMap().
|
inline |
Definition at line 3608 of file objects-inl.h.
References ASSERT, DescriptorArray::GetDetails(), DescriptorArray::kMaxNumberOfDescriptors, and DescriptorArray::number_of_descriptors().
Referenced by Heap::AllocateInitialMap(), Map::CopyAsElementsKind(), Map::ShareDescriptor(), and StringDictionary::TransformPropertiesToFastFor().
|
inline |
Definition at line 2944 of file objects-inl.h.
References READ_BYTE_FIELD.
Referenced by Heap::AllocateJSObjectFromMap(), Map::EquivalentToForNormalization(), JSObject::FastPropertyAt(), JSObject::FastPropertyAtPut(), JSObject::GetInObjectPropertyOffset(), JSObject::GetInternalFieldCount(), BASE_EMBEDDED< Visitor >::GetLocalFieldIndexFromMap(), JSObject::InObjectPropertyAt(), JSObject::InObjectPropertyAtPut(), Heap::ReinitializeJSReceiver(), JSObject::TooManyFastProperties(), StringDictionary::TransformPropertiesToFastFor(), and StaticMarkingVisitor< StaticVisitor >::VisitJSRegExp().
|
inline |
Definition at line 2939 of file objects-inl.h.
References v8::internal::kPointerSizeLog2, and READ_BYTE_FIELD.
Referenced by Heap::Allocate(), Heap::AllocateArgumentsObject(), Heap::AllocateJSFunctionProxy(), Heap::AllocateJSObjectFromMap(), Heap::AllocateJSProxy(), Heap::AllocateStruct(), Heap::CopyJSObject(), JSObject::FastPropertyAt(), JSObject::FastPropertyAtPut(), JSObject::GetInObjectPropertyOffset(), StaticVisitorBase::GetVisitorId(), JSObject::InitializeBody(), JSObject::InObjectPropertyAt(), JSObject::InObjectPropertyAtPut(), JSObject::NormalizeProperties(), Heap::ReinitializeJSReceiver(), HeapObject::SizeFromMap(), JSObject::BodyDescriptor::SizeOf(), and StructBodyDescriptor::SizeOf().
|
inline |
Definition at line 3009 of file objects-inl.h.
References READ_BYTE_FIELD.
Referenced by Heap::Allocate(), Heap::AllocateJSObjectFromMap(), Map::EquivalentToForNormalization(), ElementsAccessor::ForArray(), JSObject::GetHeaderSize(), StaticVisitorBase::GetVisitorId(), String::HasOnlyAsciiChars(), ExternalString::is_short(), String::IsAsciiRepresentation(), String::IsAsciiRepresentationUnderneath(), Object::IsFiller(), String::IsTwoByteRepresentation(), String::IsTwoByteRepresentationUnderneath(), HeapObject::Iterate(), MarkCompactMarkingVisitor::ObjectStatsVisitBase(), NewSpace::RecordAllocation(), NewSpace::RecordPromotion(), Heap::RecordStats(), v8::internal::RUNTIME_FUNCTION(), Serializer::ObjectSerializer::Serialize(), HeapObject::SizeFromMap(), Heap::SymbolMapForString(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitMap >::Visit(), MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitCode >::Visit(), and StaticMarkingVisitor< StaticVisitor >::VisitMap().
|
inline |
Definition at line 3082 of file objects-inl.h.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 3128 of file objects-inl.h.
Referenced by JSObject::DeleteNormalizedProperty(), and JSObject::NormalizeProperties().
|
inline |
Definition at line 3095 of file objects-inl.h.
Referenced by JSObject::AddProperty(), v8::internal::RUNTIME_FUNCTION(), and JSReceiver::SetPrototype().
|
inline |
Definition at line 4725 of file objects.h.
Referenced by v8::internal::RUNTIME_FUNCTION(), and JSReceiver::SetPrototype().
|
inline |
Definition at line 3118 of file objects-inl.h.
Referenced by Map::CopyNormalized(), JSObject::GetElementsTransitionMapSlow(), and Map::PutPrototypeTransition().
|
inline |
Definition at line 4757 of file objects.h.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 10148 of file objects.cc.
References v8::internal::IsFastHoleyElementsKind(), and v8::internal::IsMoreGeneralElementsKindTransition().
Referenced by v8::internal::TransitionElements().
|
inline |
Definition at line 4938 of file objects.h.
References ASSERT.
Referenced by JSObject::DefineFastAccessor(), TransitionArray::GetKey(), TransitionArray::GetTargetDetails(), JSObject::LastAddedFieldIndex(), JSObject::SetLocalPropertyIgnoreAttributes(), and JSObject::SetPropertyForResult().
Definition at line 2061 of file objects-inl.h.
References DescriptorArray::GetDetails(), and DescriptorArray::kNotFound.
Referenced by JSObject::LocalLookupRealNamedProperty().
Map * LookupElementsTransitionMap | ( | ElementsKind | elements_kind | ) |
Definition at line 2290 of file objects.cc.
References Map::elements_kind(), and v8::internal::NULL.
Definition at line 2071 of file objects-inl.h.
References Map::HasTransitionArray(), TransitionArray::kNotFound, and TransitionArray::Search().
Referenced by JSObject::DefineFastAccessor(), JSObject::SetLocalPropertyIgnoreAttributes(), JSReceiver::SetProperty(), and JSObject::SetPropertyPostInterceptor().
int NextFreePropertyIndex | ( | ) |
Definition at line 4241 of file objects.cc.
References v8::internal::FIELD, DescriptorArray::GetFieldIndex(), and DescriptorArray::GetType().
Referenced by JSObject::AddFastProperty(), and JSObject::ConvertDescriptorToField().
int NumberOfDescribedProperties | ( | DescriptorFlag | which = OWN_DESCRIPTORS , |
PropertyAttributes | filter = NONE |
||
) |
Definition at line 4217 of file objects.cc.
References v8::internal::ALL_DESCRIPTORS, DescriptorArray::GetDetails(), and DescriptorArray::number_of_descriptors().
Referenced by JSObject::NumberOfLocalProperties().
|
inline |
Definition at line 4944 of file objects.h.
Referenced by JSObject::AddFastPropertyUsingMap(), JSObject::AddProperty(), Map::ClearNonLiveTransitions(), Map::CopyWithPreallocatedFieldDescriptors(), JSObject::DefineFastAccessor(), JSObject::GetLocalPropertyNames(), JSObject::NormalizeProperties(), JSObject::NumberOfLocalProperties(), StringStream::PrintUsingMap(), Map::ShareDescriptor(), and JSObject::SlowReverseLookup().
|
inline |
Definition at line 4908 of file objects.h.
References Smi::cast(), FixedArray::get(), FixedArrayBase::length(), and Smi::value().
Referenced by Map::GetPrototypeTransition(), and Map::PutPrototypeTransition().
|
inline |
Definition at line 3148 of file objects-inl.h.
Referenced by JSObject::ConvertTransitionToMapTransition(), and MarkCompactMarkingVisitor::ObjectStatsTracker< MarkCompactMarkingVisitor::kVisitMap >::Visit().
|
inline |
Definition at line 2949 of file objects-inl.h.
References READ_BYTE_FIELD.
Referenced by Heap::AllocateJSObjectFromMap(), and JSObject::InitializeBody().
int PropertyIndexFor | ( | String * | name | ) |
Definition at line 4231 of file objects.cc.
References String::Equals(), DescriptorArray::GetFieldIndex(), and DescriptorArray::GetKey().
Definition at line 8955 of file objects.cc.
References Heap::AllocateFixedArray(), ASSERT, HeapObject::cast(), FixedArray::get(), HeapObject::GetHeap(), Map::GetPrototypeTransitions(), Map::is_shared(), Map::kMaxCachedPrototypeTransitions, Map::kProtoTransitionElementsPerEntry, Map::kProtoTransitionHeaderSize, Map::kProtoTransitionMapOffset, Map::kProtoTransitionPrototypeOffset, FixedArrayBase::length(), HeapObject::map(), Map::NumberOfProtoTransitions(), FixedArray::set(), Map::SetNumberOfProtoTransitions(), and Map::SetPrototypeTransitions().
Referenced by JSReceiver::SetPrototype().
MaybeObject * RawCopy | ( | int | instance_size | ) |
Definition at line 4889 of file objects.cc.
References Heap::AllocateMap(), HeapObject::GetHeap(), Map::set_bit_field(), Map::set_bit_field2(), and Map::set_bit_field3().
Definition at line 5306 of file objects.cc.
References ASSERT, CodeCache::cast(), and CodeCache::RemoveByIndex().
|
inline |
|
inline |
Definition at line 3100 of file objects-inl.h.
|
inline |
Definition at line 3034 of file objects-inl.h.
References WRITE_BYTE_FIELD.
Referenced by Heap::AllocateMap(), and Map::RawCopy().
|
inline |
Definition at line 3044 of file objects-inl.h.
References WRITE_BYTE_FIELD.
Referenced by Heap::AllocateMap(), SharedFunctionInfo::AttachInitialMap(), SharedFunctionInfo::DetachInitialMap(), and Map::RawCopy().
|
inline |
Referenced by Heap::AllocateMap(), and Map::RawCopy().
|
inline |
Definition at line 3123 of file objects-inl.h.
Referenced by Heap::AllocateGlobalObject(), Map::CopyNormalized(), and StringDictionary::TransformPropertiesToFastFor().
|
inline |
Definition at line 4773 of file objects.h.
References ASSERT, and v8::internal::kElementsKindCount.
Referenced by Heap::AllocateMap(), Map::CopyAsElementsKind(), and Heap::CreateApiObjects().
|
inline |
Definition at line 3712 of file objects-inl.h.
|
inline |
Definition at line 3063 of file objects-inl.h.
Referenced by Heap::ReinitializeJSReceiver().
|
inline |
Definition at line 2995 of file objects-inl.h.
References ASSERT, and WRITE_BYTE_FIELD.
Referenced by Heap::AllocateInitialMap(), Heap::AllocateMap(), Map::CopyDropDescriptors(), and Map::CopyNormalized().
|
inline |
Definition at line 2987 of file objects-inl.h.
References ASSERT, ASSERT_EQ, v8::internal::kPointerSize, v8::internal::kPointerSizeLog2, and WRITE_BYTE_FIELD.
Referenced by Heap::AllocateMap().
|
inline |
Definition at line 3014 of file objects-inl.h.
References WRITE_BYTE_FIELD.
Referenced by Heap::AllocateMap().
|
inline |
Definition at line 3073 of file objects-inl.h.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 3087 of file objects-inl.h.
Referenced by JSObject::PreventExtensions().
|
inline |
Definition at line 3113 of file objects-inl.h.
Referenced by Map::CopyDropDescriptors(), and Map::CopyNormalized().
|
inline |
Definition at line 3049 of file objects-inl.h.
Referenced by JSFunction::SetPrototype().
|
inline |
Definition at line 3143 of file objects-inl.h.
Referenced by JSObject::ConvertTransitionToMapTransition().
|
inline |
Definition at line 3001 of file objects-inl.h.
References ASSERT, and WRITE_BYTE_FIELD.
Referenced by Heap::AllocateInitialMap(), Heap::AllocateMap(), and Map::CopyDropDescriptors().
|
inline |
Definition at line 3024 of file objects-inl.h.
References v8::internal::Min(), and WRITE_BYTE_FIELD.
Referenced by JSObject::AddFastProperty(), Heap::AllocateInitialMap(), Heap::AllocateMap(), JSObject::ConvertDescriptorToField(), Map::CopyDropDescriptors(), and StringDictionary::TransformPropertiesToFastFor().
|
inline |
Definition at line 2933 of file objects-inl.h.
References ASSERT, and WRITE_BYTE_FIELD.
Referenced by Heap::AllocateMap().
|
inline |
Definition at line 3775 of file objects-inl.h.
References ASSERT, TransitionArray::cast(), CONDITIONAL_WRITE_BARRIER, v8::internal::FIRST_JS_RECEIVER_TYPE, HeapObject::GetHeap(), READ_FIELD, TransitionArray::set_back_pointer_storage(), and WRITE_FIELD.
Referenced by JSObject::ConvertTransitionToMapTransition(), Map::CopyAsElementsKind(), and Map::ShareDescriptor().
|
inline |
Definition at line 4959 of file objects.h.
References ASSERT.
Referenced by JSObject::ConvertTransitionToMapTransition().
|
inline |
|
inline |
Definition at line 4915 of file objects.h.
References ASSERT, Smi::FromInt(), FixedArrayBase::length(), and FixedArray::set_unchecked().
Referenced by Map::PutPrototypeTransition().
|
inline |
Definition at line 3729 of file objects-inl.h.
References ASSERT.
Referenced by Map::PutPrototypeTransition().
|
inline |
Definition at line 3702 of file objects-inl.h.
Referenced by JSObject::ConvertTransitionToMapTransition().
MaybeObject * ShareDescriptor | ( | DescriptorArray * | descriptors, |
Descriptor * | descriptor | ||
) |
Definition at line 4954 of file objects.cc.
References DescriptorArray::Allocate(), DescriptorArray::Append(), ASSERT, Map::cast(), DescriptorArray::CopyEnumCacheFrom(), DescriptorArray::CopyFrom(), Map::GetBackPointer(), DescriptorArray::HasEnumCache(), Map::InitializeDescriptors(), HeapObject::map(), DescriptorArray::number_of_descriptors(), Map::NumberOfOwnDescriptors(), DescriptorArray::NumberOfSlackDescriptors(), Map::SetBackPointer(), and v8::internal::SIMPLE_TRANSITION.
STATIC_CHECK | ( | kInstanceTypeOffset | = =Internals::kMapInstanceTypeOffset | ) |
void TraverseTransitionTree | ( | TraverseCallback | callback, |
void * | data | ||
) |
Definition at line 5490 of file objects.cc.
References TraversableMap::ChildIteratorNext(), TraversableMap::ChildIteratorStart(), TraversableMap::GetAndResetParent(), v8::internal::NULL, and TraversableMap::SetParent().
Referenced by SharedFunctionInfo::CompleteInobjectSlackTracking().
|
inline |
Definition at line 3133 of file objects-inl.h.
References READ_FIELD.
|
inline |
Definition at line 3792 of file objects-inl.h.
References Map::kTransitionsOrBackPointerOffset, and HeapObject::RawField().
Referenced by StaticMarkingVisitor< StaticVisitor >::MarkMapContents().
|
inline |
Definition at line 3800 of file objects-inl.h.
References ASSERT.
|
inline |
Definition at line 3019 of file objects-inl.h.
References READ_BYTE_FIELD.
Referenced by JSObject::AddFastProperty(), JSObject::AddFastPropertyUsingMap(), Heap::AllocateJSObjectFromMap(), SharedFunctionInfo::CompleteInobjectSlackTracking(), JSObject::ConvertDescriptorToField(), Heap::ReinitializeJSReceiver(), v8::internal::RUNTIME_FUNCTION(), and SharedFunctionInfo::StartInobjectSlackTracking().
Definition at line 5261 of file objects.cc.
References CALL_HEAP_FUNCTION_VOID.
Referenced by JSObject::UpdateMapCodeCache().
Definition at line 5270 of file objects.cc.
References Heap::AllocateCodeCache(), Code::allowed_in_shared_map_code_cache(), ASSERT, CodeCache::cast(), HeapObject::GetHeap(), and CodeCache::Update().
|
inline |
Definition at line 2928 of file objects-inl.h.
References READ_BYTE_FIELD.
Referenced by VisitorDispatchTable< ScavengingCallback >::GetVisitor().
void ZapPrototypeTransitions | ( | ) |
Definition at line 9006 of file objects.cc.
References FixedArray::data_start(), HeapObject::GetHeap(), Map::GetPrototypeTransitions(), FixedArrayBase::length(), and v8::internal::MemsetPointer().
void ZapTransitions | ( | ) |
Definition at line 8998 of file objects.cc.
References FixedArray::data_start(), HeapObject::GetHeap(), FixedArrayBase::length(), and v8::internal::MemsetPointer().
|
static |
Definition at line 5178 of file objects.h.
Referenced by SharedFunctionInfo::AttachInitialMap(), and SharedFunctionInfo::DetachInitialMap().
|
static |
|
static |
|
static |
|
static |
Definition at line 5136 of file objects.h.
Referenced by Map::ClearCodeCache(), and NormalizedMapCache::Get().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 5158 of file objects.h.
Referenced by MacroAssembler::IsObjectStringType().
|
static |
Definition at line 5121 of file objects.h.
Referenced by Heap::AllocateMap(), Heap::AllocatePartialMap(), JSObject::ConvertTransitionToMapTransition(), v8::internal::GetEnumPropertyKeys(), JSReceiver::IsSimpleEnum(), and JSObject::NumberOfLocalProperties().
|
static |
Definition at line 5176 of file objects.h.
Referenced by Heap::AllocateMap().
|
static |
Definition at line 5111 of file objects.h.
Referenced by Map::PutPrototypeTransition().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 5118 of file objects.h.
Referenced by Heap::AllocateInitialMap().
|
static |
Definition at line 5143 of file objects.h.
Referenced by StaticMarkingVisitor< StaticVisitor >::MarkMapContents(), and StaticMarkingVisitor< StaticVisitor >::VisitMap().
|
static |
Definition at line 5144 of file objects.h.
Referenced by StaticMarkingVisitor< StaticVisitor >::MarkMapContents(), and StaticMarkingVisitor< StaticVisitor >::VisitMap().
|
static |
|
static |
Definition at line 4904 of file objects.h.
Referenced by Map::GetPrototypeTransition(), Map::PutPrototypeTransition(), and TEST().
|
static |
Definition at line 4902 of file objects.h.
Referenced by Map::GetPrototypeTransition(), Map::PutPrototypeTransition(), and TEST().
|
static |
Definition at line 4906 of file objects.h.
Referenced by Map::GetPrototypeTransition(), Map::PutPrototypeTransition(), and TEST().
|
static |
|
static |
Definition at line 4905 of file objects.h.
Referenced by Map::GetPrototypeTransition(), Map::PutPrototypeTransition(), and TEST().
|
static |
|
static |
Definition at line 5139 of file objects.h.
Referenced by NormalizedMapCache::Get(), MapSpace::RoundSizeDownToObjectAlignment(), and TEST().
|
static |
Definition at line 5132 of file objects.h.
Referenced by Map::unchecked_transition_array().
|
static |
|
static |