A short overview of how monomorphism and polymorphism affects how compilers optimise JavaScript code.
Links:
- Turbolizer: https://github.com/v8/v8/tree/master/tools/turbolizer
- Franziska's "JavaScript Engines: How Do They Even?" talk: https://www.youtube.com/watch?v=p-iiEDtpy6I
- Matthias' "JavaScript Engine Fundamentals: Shapes & Inline Classes" blogpost: https://mathiasbynens.be/notes/shapes-ics
- Paul's "Debugging Node.js with Chrome DevTools" blogpost: https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27