Bug 980384 - Fix frame marker for half-constructed stack frames r=jandem

--HG--
extra : amend_source : 9e5b971388ede7bd4a9f4a405b2b91f4c4882ebc
This commit is contained in:
Andy Wingo 2014-03-11 09:26:05 +01:00
parent b67b727eca
commit 4539a9ee78

View File

@ -77,6 +77,13 @@ BaselineFrame::trace(JSTracer *trc, IonFrameIterator &frameIterator)
JS_ASSERT(nlivefixed <= nfixed);
JS_ASSERT(nlivefixed >= script->nfixedvars());
// NB: It is possible that numValueSlots() could be zero, even if nfixed is
// nonzero. This is the case if the function has an early stack check.
if (numValueSlots() == 0)
return;
JS_ASSERT(nfixed <= numValueSlots());
if (nfixed == nlivefixed) {
// All locals are live.
MarkLocals(this, trc, 0, numValueSlots());