Generate functions as per asm.js specification