mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-02 21:37:32 +09:00
[js] Fix invalid early return in BaselineFrame::trace.
We were not tracing debugger environments for Baseline frames without any local/expression slots.
This commit is contained in:
parent
859208a201
commit
9c3495379f
1 changed files with 14 additions and 14 deletions
|
|
@ -62,8 +62,7 @@ BaselineFrame::trace(JSTracer* trc, JitFrameIterator& frameIterator)
|
||||||
|
|
||||||
// NB: It is possible that numValueSlots() could be zero, even if nfixed is
|
// 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.
|
// nonzero. This is the case if the function has an early stack check.
|
||||||
if (numValueSlots() == 0)
|
if (numValueSlots > 0) {
|
||||||
return;
|
|
||||||
|
|
||||||
MOZ_ASSERT(nfixed <= numValueSlots());
|
MOZ_ASSERT(nfixed <= numValueSlots());
|
||||||
|
|
||||||
|
|
@ -81,6 +80,7 @@ BaselineFrame::trace(JSTracer* trc, JitFrameIterator& frameIterator)
|
||||||
// Mark live locals.
|
// Mark live locals.
|
||||||
MarkLocals(this, trc, 0, nlivefixed);
|
MarkLocals(this, trc, 0, nlivefixed);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (script->compartment()->debugEnvs)
|
if (script->compartment()->debugEnvs)
|
||||||
script->compartment()->debugEnvs->markLiveFrame(trc, this);
|
script->compartment()->debugEnvs->markLiveFrame(trc, this);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue