infrastructure for supporting exceptions in asm.js, by going through invoke_* calls