Open
Bug 1346178
Opened 7 years ago
Updated 1 year ago
Consider compiling Ion IC code less eagerly
Categories
(Core :: JavaScript Engine: JIT, enhancement, P2)
Core
JavaScript Engine: JIT
Tracking
()
NEW
Performance Impact | low |
People
(Reporter: jandem, Unassigned)
References
(Blocks 2 open bugs)
Details
(Keywords: perf)
Ion IC code is not shared (unlike Baseline) so compiling Ion IC code sometimes shows up in profiles. With CacheIR we could do the following for Ion ICs: after generating CacheIR, instead of compiling IC code immediately, we could allocate a stub without JIT code (and probably add it to a separate "pending" list). Then we could wait until we see the same lookup a few more times (same IR + stub fields, we already have code to determine that) and at that point we could compile the CacheIR to JIT code. This should be pretty easy to do and might be a nice win for megamorphic sites (we will currently attach a number of specialized stubs that probably won't be used much) or ICs that hit only a few times. We should do some measurements to see how common these cases are.
Reporter | ||
Comment 1•7 years ago
|
||
P2 - we should at least try to do some measurements the coming weeks.
Keywords: perf
Priority: -- → P2
Updated•7 years ago
|
Whiteboard: [qf:p3]
Updated•2 years ago
|
Performance Impact: --- → P3
Whiteboard: [qf:p3]
Updated•1 year ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•