Superb article about using LLVM to optimize JavaScript on the fly for a 35% speedup over the existing 3-tier JIT engine in WebKit. This can get ASM.js-like performance without the ASM.js limitations.
https://www.webkit.org/blog/3362/introducing-the-webkit-ftl-jit/