Lines Matching defs:object

6 #include "src/heap/object-stats.h"
20 #include "src/objects/heap-object.h"
152 // Stop on first out-of-object field.
417 bool ShouldRecordObject(HeapObject object, CowMode check_cow_array);
426 HeapObject parent, HeapObject object,
437 void RecordVirtualJSGlobalObjectDetails(JSGlobalObject object);
438 void RecordVirtualJSObjectDetails(JSObject object);
571 JSGlobalObject object) {
573 GlobalDictionary properties = object.global_dictionary(kAcquireLoad);
574 RecordHashTableVirtualObjectStats(object, properties,
577 FixedArrayBase elements = object.elements();
578 RecordSimpleVirtualObjectStats(object, elements,
582 void ObjectStatsCollectorImpl::RecordVirtualJSObjectDetails(JSObject object) {
584 if (object.IsJSGlobalObject()) return;
587 if (object.IsJSFunction() && !JSFunction::cast(object).is_compiled()) {
588 RecordSimpleVirtualObjectStats(HeapObject(), object,
593 if (object.HasFastProperties()) {
594 PropertyArray properties = object.property_array();
596 size_t over_allocated = object.map().UnusedPropertyFields() * kTaggedSize;
597 RecordVirtualObjectStats(object, properties,
598 object.map().is_prototype_map()
604 NameDictionary properties = object.property_dictionary();
606 object, properties,
607 object.map().is_prototype_map()
613 FixedArrayBase elements = object.elements();
614 if (object.HasDictionaryElements()) {
616 object, NumberDictionary::cast(elements),
617 object.IsJSArray() ? ObjectStats::ARRAY_DICTIONARY_ELEMENTS_TYPE
619 } else if (object.IsJSArray()) {
623 uint32_t length = JSArray::cast(object).length().Number();
625 RecordVirtualObjectStats(object, elements,
630 RecordSimpleVirtualObjectStats(object, elements,
635 if (object.IsJSCollection()) {
638 object, FixedArray::cast(JSCollection::cast(object).table()),
689 // Manually insert the feedback vector into the virtual object list, since
717 HeapObject object;
718 if (raw_object->GetHeapObject(&object)) {
719 if (object.IsCell(cage_base()) ||
720 object.IsWeakFixedArray(cage_base())) {
722 vector, object, ObjectStats::FEEDBACK_VECTOR_ENTRY_TYPE);
924 // them manually. The on-heap String object is recorded indepentendely in
977 HeapObject parent, HeapObject object,
979 if (!RecordSimpleVirtualObjectStats(parent, object, type)) return;
980 if (object.IsFixedArrayExact(cage_base())) {
981 FixedArray array = FixedArray::cast(object);
1113 // We don't perform a GC while collecting object stats but need this scope for