Re:Bringing Asm.js to Chakra and Microsoft Edge
by Sephr on Sunday May 10, 2015 @03:09AM
(#9519152)
That's quite an impressive implementation! I didn't realize hand-written asm.js could be that readable.
[ Parent
| on HN ]
Re:Bringing Asm.js to Chakra and Microsoft Edge
by s-macke on Wednesday May 13, 2015 @03:36PM
(#9541416)
Yes, more or less.
Every operation must be written, that the type is obvious for the compiler. And you have one array, the heap with some special index rules. For example:
(r[((ins >> 9) & 0x7C)>>2]|0
The >>2 and |0 is necessary.