Rewrite the profiler exit-frame-stub to use frame pointers
Categories
(Core :: JavaScript Engine: JIT, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox103 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(2 files)
JitRuntime::generateProfilerExitFrameTailStub
can be greatly simplified now that we have frame pointers. This also gets us closer to removing the frame size from the frame descriptor.
The new implementation is also shared instead of mostly-duplicated for each platform:
12 files changed, 246 insertions(+), 2584 deletions(-)
Assignee | ||
Comment 2•3 years ago
|
||
This is required for the next patch, and gets us one step closer to having the caller's
frame pointer in every JIT frame.
Assignee | ||
Comment 3•3 years ago
|
||
This is a lot simpler and gets rid of another dependency on the frame descriptor's
frame size. Once the frame pointer is stored in the frame layout, this can be simplified
more because we still have to add FPOffset
in a number of places.
A lot of complexity in the old version came from supporting rectifier frames. The
new approach is to "unwrap" the rectifier frame and then restart at the next frame.
This also de-duplicates the implementation.
Depends on D148895
Assignee | ||
Updated•3 years ago
|
Comment 5•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e28d9c44359c
https://hg.mozilla.org/mozilla-central/rev/df60cd30dfe9
Description
•