Bug 881902 follow-up - Mark StackFrame callee and |this|, should fix GGC build. r=terrence on IRC

This commit is contained in:
Jan de Mooij 2013-06-22 01:58:36 +02:00
parent db386996f5
commit fa33d67667

View File

@ -432,8 +432,11 @@ StackFrame::markValues(JSTracer *trc, Value *sp)
{
JS_ASSERT(sp >= slots());
gc::MarkValueRootRange(trc, sp - slots(), slots(), "vm_stack");
if (hasArgs())
gc::MarkValueRootRange(trc, js::Max(numActualArgs(), numFormalArgs()), argv_, "fp argv");
if (hasArgs()) {
// Mark callee, |this| and arguments.
unsigned argc = Max(numActualArgs(), numFormalArgs());
gc::MarkValueRootRange(trc, argc + 2, argv_ - 2, "fp argv");
}
}
static void