Rebase SIMD.js patches to M40

BUG=XWALK-3210