Optimizing JavaScript code for JITs

Here is an awesome article about optimizing JavaScript code for JIT compilers. Describes techniques on how to extract information on where V8 spends time, and most of them are surprisingly accessible to someone with little optimizing-compiler skills.

Then Shu-yu Guo retweeted it with a link to their paper about Optimization Coaching in devtools. There is an experimental and unfinished feature (hidden under the devtools.performance.ui.show-jit-optimizations pref) in Firefox that implements these ideas.