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

--HG--
extra : rebase_source : 0eb7c558ec255cb26784522137a8b80746cbe140
This commit is contained in:
Steve Fink 2012-02-23 18:47:59 -08:00
parent b701543656
commit b293326077

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)
{