mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 684344 - Remove a reinterpret_cast in delayMarkingChildren; r=billm
All of the types we call this with derive from js::gc::Cell, so there is no need for this to take a void*. --HG-- extra : rebase_source : 206c2ef1ae304a0c7f6346f38cfb00bd4eab5a43
This commit is contained in:
parent
673da87302
commit
1ec766c60b
@ -1572,9 +1572,8 @@ GCMarker::~GCMarker()
|
||||
}
|
||||
|
||||
void
|
||||
GCMarker::delayMarkingChildren(const void *thing)
|
||||
GCMarker::delayMarkingChildren(const Cell *cell)
|
||||
{
|
||||
const Cell *cell = reinterpret_cast<const Cell *>(thing);
|
||||
ArenaHeader *aheader = cell->arenaHeader();
|
||||
if (aheader->getMarkingDelay()->link) {
|
||||
/* Arena already scheduled to be marked later */
|
||||
|
@ -58,12 +58,10 @@
|
||||
#include "jsfun.h"
|
||||
#include "jsgcstats.h"
|
||||
#include "jscell.h"
|
||||
#include "jsxml.h"
|
||||
|
||||
struct JSCompartment;
|
||||
|
||||
extern "C" void
|
||||
js_TraceXML(JSTracer *trc, JSXML* thing);
|
||||
|
||||
#if JS_STACK_GROWTH_DIRECTION > 0
|
||||
# define JS_CHECK_STACK_SIZE(limit, lval) ((jsuword)(lval) < limit)
|
||||
#else
|
||||
@ -1513,7 +1511,7 @@ struct GCMarker : public JSTracer {
|
||||
color = newColor;
|
||||
}
|
||||
|
||||
void delayMarkingChildren(const void *thing);
|
||||
void delayMarkingChildren(const js::gc::Cell *cell);
|
||||
|
||||
void markDelayedChildren();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user