Re:Nectar: A Native JavaScript Compiler Inspired by Crystal ...
by MikeHolman on Saturday December 31, 2016 @12:46AM
(#13289701)
Register allocation isn't super important in JS. Type inference is most important, and it is impossible to do that AOT for JS. With PGO I bet you could do decently for some specific scenarios, but you will necessarily fall off a cliff if execution deviates from your profile.
Indeed the performance benefits of JITing have been difficult to measure: https://arxiv.org/abs/1602.00602