Lines Matching refs:object
28 bool ContextMeasure::IsShared(HeapObject* object) { in IsShared() argument
29 if (object->IsScript()) return true; in IsShared()
30 if (object->IsSharedFunctionInfo()) return true; in IsShared()
31 if (object->IsScopeInfo()) return true; in IsShared()
32 if (object->IsCode() && !Code::cast(object)->is_optimized_code()) return true; in IsShared()
33 if (object->IsAccessorInfo()) return true; in IsShared()
34 if (object->IsWeakCell()) return true; in IsShared()
39 void ContextMeasure::MeasureObject(HeapObject* object) { in MeasureObject() argument
40 if (reference_map_.Lookup(object).is_valid()) return; in MeasureObject()
41 if (root_index_map_.Lookup(object) != RootIndexMap::kInvalidRootIndex) return; in MeasureObject()
42 if (IsShared(object)) return; in MeasureObject()
43 reference_map_.Add(object, SerializerReference::DummyReference()); in MeasureObject()
46 deferred_objects_.Add(object); in MeasureObject()
48 MeasureAndRecurse(object); in MeasureObject()
61 void ContextMeasure::MeasureAndRecurse(HeapObject* object) { in MeasureAndRecurse() argument
62 int size = object->Size(); in MeasureAndRecurse()
65 Map* map = object->map(); in MeasureAndRecurse()
67 object->IterateBody(map->instance_type(), size, this); in MeasureAndRecurse()