Bug 730144 - Label objects with their mark colors when dumping the heap. r=mccr8

--HG--
extra : rebase_source : 14b88d188875dd2f1fe90b9e16af77ef81018fde
This commit is contained in:
Steve Fink 2012-02-23 18:47:59 -08:00
parent 19bc4b9146
commit fca4458cd8

View File

@ -485,6 +485,16 @@ struct JSDumpHeapTracer : public JSTracer {
static void
DumpHeapVisitChild(JSTracer *trc, void **thingp, JSGCTraceKind kind);
static char
MarkDescriptor(void *thing)
{
gc::Cell *cell = static_cast<gc::Cell*>(thing);
if (cell->isMarked(gc::BLACK))
return cell->isMarked(gc::GRAY) ? 'G' : 'B';
else
return cell->isMarked(gc::GRAY) ? 'X' : 'W';
}
static void
DumpHeapPushIfNew(JSTracer *trc, void **thingp, JSGCTraceKind kind)
{