Closed
Bug 1884368
Opened 1 year ago
Closed 1 year ago
Retire jit::GetPcScript and PcScriptCache
Categories
(Core :: JavaScript Engine: JIT, task)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
125 Branch
Tracking | Status | |
---|---|---|
firefox125 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
(Whiteboard: [sp3])
Attachments
(1 file)
GetPcScript
used to be very hot and a cache was added for it a long time ago. It no longer is called a lot: the only caller is JSContext::currentScript
which also isn't used a lot and I think we can rewrite it to use FrameIter
.
This lets us remove the custom JIT frame iteration code and also simplifies bug 1884360 because I was running into an edge case with this that doesn't apply with FrameIter
.
The cache is pretty large (73 entries of 24 bytes each) so this is also good for memory usage.
Assignee | ||
Comment 1•1 year ago
|
||
We no longer call GetPcScript
or cx->currentScript()
on hot paths so we
can now try to use FrameIter
instead. This lets us remove the custom frame iteration
code and the fixed-size cache for it.
Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/de0a8ca2b267
Remove GetPcScript and PcScriptCache. r=iain
Comment 3•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox125:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
Updated•1 year ago
|
Whiteboard: [sp3]
Updated•1 year ago
|
See Also: → https://mozilla-hub.atlassian.net/browse/SP3-743
You need to log in
before you can comment on or make changes to this bug.
Description
•