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:
Terrence Cole 2011-09-02 17:58:10 -07:00
parent 673da87302
commit 1ec766c60b
2 changed files with 3 additions and 6 deletions

View File

@ -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 */

View File

@ -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();