~/talk

CacheIR: The Benefits of a Structured Representation for Inline Caches

Talkat MPLR 2023 · on Sunday, 2023-10-22· [javascript, compilers-and-language-design]
links:none on file
links:none on file
links:none on file
links:none on file
slides:none on file

CacheIR is an IR for inline caches that stores dynamic data in stub fields so native code can be reused across different stubs; the engine generates linear stub chains ending in a C++ fallback and compiles them into machine code, enabling monomorphic IC lowering and trial inlining (per-callsite private ICs). WarpBuilder lowers CacheIR into a top-tier JIT, adds stub folding and bailout-loop detection, reduces memory/metadata overhead and speeds warm-up, and produces measurable gains on Speedometer while initially regressing on JetStream before targeted improvements.

AI-written summary · about

  1. 0:00CacheIR and inline caching intro
  2. 1:46Traditional inline cache limits
  3. 2:29SpiderMonkey’s cache architecture
  4. 3:36Why CacheIR was introduced
  5. 5:44Advantages of intermediate representation
  6. 6:45WarpBuilder JIT on CacheIR
  7. 7:27WarpBuilder optimization with CacheIR
  8. 9:59WarpBuilder vs IonBuilder benefits
  9. 11:01Peak performance vs warm-up trade-offs
  10. 11:21CacheIR trial inlining
  11. 13:08Stub folding and bailout detection
  12. 13:51Benchmark improvements results
  13. 14:54Future research opportunities
  14. 15:14Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.