mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 980384 - Fix frame marker for half-constructed stack frames r=jandem
--HG-- extra : amend_source : 9e5b971388ede7bd4a9f4a405b2b91f4c4882ebc
This commit is contained in:
parent
b67b727eca
commit
4539a9ee78
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user