Extract portable AS to its own definition and polyfill; Try running flatten/ssa before default optimizations, see WebAssembly/binaryen#1331

This commit is contained in:
dcodeIO
2017-12-08 19:08:03 +01:00
parent d6b94d4c33
commit 0ebb99a33c
23 changed files with 1515 additions and 1231 deletions

View File

@ -42,7 +42,7 @@ class Heap {
let w: u32, x: u32;
// copy 1 byte each until src is aligned to 4 bytes
while (n != 0 && src % 4 != 0) {
while (n && src % 4) {
store<u8>(dst++, load<u8>(src++));
n--;
}