4 ms·
Safari doesn't implement an asm.js backend, presumably?
by cjbprime 11y ago
Safari doesn't implement an asm.js backend, presumably?
- brandonbloom 11y agoOr, potentially, does an equally good job optimizing the code with or without the asm.js hint.
- TazeTSchnitzel 11y agoNor does Chrome, but I think Chrome takes the `"use asm";` as a hint to use certain optimisations.
- brendandahl 11y agoChrome should enable turbo fan with the "use asm"; set. Though the only confirmation of this is saying it's tested in beta. https://code.google.com/p/v8/issues/detail?id=2599#c77 https://code.google.com/p/v8/issues/detail?id=2599#c77
- azakai 11y agoIt's in release Chrome currently.
- azakai 11y agoThat's correct, all JS engines except for Safari's detect "use asm". More specifically, Firefox and Edge detect "use asm" and run an asm.js type-checker, while Chrome detects "use asm" and runs TurboFan.