mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 881902 follow-up - Mark StackFrame callee and |this|, should fix GGC build. r=terrence on IRC
This commit is contained in:
parent
db386996f5
commit
fa33d67667
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user