Bug 806283 - Split up and add native iterators to "object/misc" memory reports. r=jorendorff.

This commit is contained in:
Nicholas Nethercote
2012-11-01 16:51:04 -07:00
parent 1ad906e07d
commit b9828a3747
8 changed files with 83 additions and 41 deletions

View File

@@ -821,6 +821,12 @@ iterator_iteratorObject(JSContext *cx, HandleObject obj, JSBool keysonly)
return obj;
}
size_t
PropertyIteratorObject::sizeOfMisc(JSMallocSizeOfFun mallocSizeOf) const
{
return mallocSizeOf(getPrivate());
}
void
PropertyIteratorObject::trace(JSTracer *trc, RawObject obj)
{