asm.js is currently only a usable target if you use C.
You also can't compile JS to asm.js, for example.
You get C-like performance by writing C.
You also can't compile JS to asm.js, for example.
You get C-like performance by writing C.
If you ported a VM with a JIT, and added an asm.js backend for that JIT, it could be a very fast way to run basically any language in asm.js.