Changeset 54672 in webkit for trunk/JavaScriptCore/runtime/Collector.cpp
- Timestamp:
- Feb 11, 2010, 1:28:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Collector.cpp
r53572 r54672 1198 1198 #endif 1199 1199 if (cell->isGetterSetter()) 1200 return " gettersetter";1200 return "Getter-Setter"; 1201 1201 if (cell->isAPIValueWrapper()) 1202 return " valuewrapper";1202 return "API wrapper"; 1203 1203 if (cell->isPropertyNameIterator()) 1204 return "for-in iterator"; 1205 ASSERT(cell->isObject()); 1204 return "For-in iterator"; 1205 if (!cell->isObject()) 1206 return "[empty cell]"; 1206 1207 const ClassInfo* info = cell->classInfo(); 1207 1208 return info ? info->className : "Object"; … … 1215 1216 for (ProtectCountSet::iterator it = m_protectedValues.begin(); it != end; ++it) 1216 1217 counts->add(typeName(it->first)); 1218 1219 return counts; 1220 } 1221 1222 HashCountedSet<const char*>* Heap::objectTypeCounts() 1223 { 1224 HashCountedSet<const char*>* counts = new HashCountedSet<const char*>; 1225 1226 LiveObjectIterator it = primaryHeapBegin(); 1227 LiveObjectIterator heapEnd = primaryHeapEnd(); 1228 for ( ; it != heapEnd; ++it) 1229 counts->add(typeName(*it)); 1217 1230 1218 1231 return counts;
Note:
See TracChangeset
for help on using the changeset viewer.