Some more loop cleanups
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox73 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(4 files)
A few things not covered by other bugs.
| Assignee | ||
Comment 1•6 years ago
|
||
No longer used since bug 1598548.
| Assignee | ||
Comment 2•6 years ago
|
||
This ensures all loops handle this the same way.
For JSTRY_FOR_IN some places asserted the try note ends at the
JSOP_ENDITER and includes the JSOP_JUMPTARGET and JSOP_POP, but
I don't think we need to preserve that invariant.
The next patch will improve HasLiveStackValueAtDepth because
I think there might be a (pre-existing) issue with emitSpread.
Depends on D56171
| Assignee | ||
Comment 3•6 years ago
|
||
Instead of depending on the meaning of specific for-in/for-of stack slots it's
simpler, safer and more robust to keep all loop stack slots alive when we have
a debugger exception bailout.
Depends on D56172
| Assignee | ||
Comment 4•6 years ago
|
||
This way we don't need a separate JSOP_POP.
Updated•6 years ago
|
Comment 6•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/7a9ab8423e85
https://hg.mozilla.org/mozilla-central/rev/7a3a4207c55b
https://hg.mozilla.org/mozilla-central/rev/0d4e8d749b8d
https://hg.mozilla.org/mozilla-central/rev/8b5fbd3c4347
Description
•