enable a form of safe heap in asm, using js optimizer pass to ensure full coverage and support for fastcomp