Hidden Inheritance: An Inline Caching Design for TypeScript Performance
summary
Claims a new inline-caching scheme called hidden inheritance that uses TypeScript’s static class/interface hierarchy to treat parent and descendant hidden classes as cache-compatible, implemented by a transpiler-plus-compiler stack STSC on Google V8 that embeds type annotations as JSON and generates hidden-inheritance trees and guarded IC checks. Builds bytecode and native modes; benchmarks (JetStream2 and apps) show up to ~20% speedups in bytecode mode and 6–67% reductions in native-mode tests, with smaller gains where few classes/interfaces exist.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 0:33Context and motivation
- 1:34Hidden classes and V8
- 2:58Inline caching limitations
- 5:08Hidden inheritance design
- 8:51Implementation details
- 10:21Code generation algorithm
- 12:43Performance evaluation
- 15:34Conclusion and future work
related talks
36mFast and Dynamic
29mJavaScript in JavaScript: Inception
31mProfile Guided Offline Optimization of Hidden Class Graphs for JavaScript VMs in Embedded
28mJavaScript inheritance: beyond the basics
33mJavaScript: The V8 Engine optimization tips (...)
25mJavaScript engines how do they even?
03mTalking about NodeJS
20mCacheIR: The Benefits of a Structured Representation for Inline Caches
