mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 730144 - Label objects with their mark colors when dumping the heap. r=mccr8
--HG-- extra : rebase_source : 14b88d188875dd2f1fe90b9e16af77ef81018fde
This commit is contained in:
parent
19bc4b9146
commit
fca4458cd8
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user