mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 12:27:29 +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
|
||||
// nonzero. This is the case if the function has an early stack check.
|
||||
if (numValueSlots() == 0)
|
||||
return;
|
||||
if (numValueSlots > 0) {
|
||||
|
||||
MOZ_ASSERT(nfixed <= numValueSlots());
|
||||
|
||||
|
|
@ -81,6 +80,7 @@ BaselineFrame::trace(JSTracer* trc, JitFrameIterator& frameIterator)
|
|||
// Mark live locals.
|
||||
MarkLocals(this, trc, 0, nlivefixed);
|
||||
}
|
||||
}
|
||||
|
||||
if (script->compartment()->debugEnvs)
|
||||
script->compartment()->debugEnvs->markLiveFrame(trc, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue