Closed Bug 1773971 Opened 3 years ago Closed 3 years ago

Use frame pointers in more places

Categories

(Core :: JavaScript Engine: JIT, task, P3)

task

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox103 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(7 files)

I have a patch stack that fixes various places to take advantage of frame pointers. With these changes, we can also assert in JSJitFrameIter that the frame pointers match the frame descriptors.

This ensures we'll store the correct frame pointer in the exit frame for the
FinishBailoutToBaseline call with later patches.

Depends on D149058

This is simpler and also ensures we have the correct frame pointer value for the exception
path in the bailout tail code.

Depends on D149059

Now all frames have the saved frame pointer.

Depends on D149060

Fix the exception handler to restore the frame pointer for this case too,
then in EnterJit use the frame pointer to restore the stack pointer.

Depends on D149062

Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4d32dfc7ad4a part 1 - Use frame pointer instead of frame descriptor to restore SP for apply calls. r=iain https://hg.mozilla.org/integration/autoland/rev/a64867189f7a part 2 - Restore frame pointer before FinishBailoutToBaseline call. r=iain https://hg.mozilla.org/integration/autoland/rev/1c86926688dd part 3 - Use frame pointer after calls to Bailout and InvalidationBailout. r=iain https://hg.mozilla.org/integration/autoland/rev/a0a1431a88e8 part 4 - Add frame pointer to exit frames. r=iain https://hg.mozilla.org/integration/autoland/rev/599b71051df9 part 5 - Ensure Wasm exit frames have the correct frame pointer value. r=iain https://hg.mozilla.org/integration/autoland/rev/bffd69d47ed4 part 6 - Use frame pointer instead of frame descriptor in EnterJit trampoline. r=iain https://hg.mozilla.org/integration/autoland/rev/747c5d43a388 part 7 - Assert frame pointers match frame descriptors. r=iain
Regressions: 1775140
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: