Changeset 183124 in webkit for trunk/Source/JavaScriptCore/heap/HeapStatistics.cpp
- Timestamp:
- Apr 22, 2015, 1:05:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/HeapStatistics.cpp
r174509 r183124 168 168 StorageStatistics(); 169 169 170 voidoperator()(JSCell*);170 IterationStatus operator()(JSCell*); 171 171 172 172 size_t objectWithOutOfLineStorageCount(); … … 177 177 178 178 private: 179 void visit(JSCell*); 180 179 181 size_t m_objectWithOutOfLineStorageCount; 180 182 size_t m_objectCount; … … 191 193 } 192 194 193 inline void StorageStatistics:: operator()(JSCell* cell)195 inline void StorageStatistics::visit(JSCell* cell) 194 196 { 195 197 if (!cell->isObject()) … … 208 210 m_storageSize += object->structure()->totalStorageSize() * sizeof(WriteBarrierBase<Unknown>); 209 211 m_storageCapacity += object->structure()->totalStorageCapacity() * sizeof(WriteBarrierBase<Unknown>); 212 } 213 214 inline IterationStatus StorageStatistics::operator()(JSCell* cell) 215 { 216 visit(cell); 217 return IterationStatus::Continue; 210 218 } 211 219
Note:
See TracChangeset
for help on using the changeset viewer.