Update Binaryen to latest and regenerate dist files

This commit is contained in:
dcode 2019-02-28 18:26:04 +01:00
parent 1ae7d03e8c
commit 7184db6dde
27 changed files with 1385 additions and 3887 deletions

2
dist/asc.js vendored

File diff suppressed because one or more lines are too long

2
dist/asc.js.map vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

224
package-lock.json generated
View File

@ -82,178 +82,178 @@
}
},
"@webassemblyjs/ast": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.3.tgz",
"integrity": "sha512-xy3m06+Iu4D32+6soz6zLnwznigXJRuFNTovBX2M4GqVqLb0dnyWLbPnpcXvUSdEN+9DVyDeaq2jyH1eIL2LZQ==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz",
"integrity": "sha512-aJMfngIZ65+t71C3y2nBBg5FFG0Okt9m0XEgWZ7Ywgn1oMAT8cNwx00Uv1cQyHtidq0Xn94R4TAywO+LCQ+ZAQ==",
"dev": true,
"requires": {
"@webassemblyjs/helper-module-context": "1.8.3",
"@webassemblyjs/helper-wasm-bytecode": "1.8.3",
"@webassemblyjs/wast-parser": "1.8.3"
"@webassemblyjs/helper-module-context": "1.8.5",
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
"@webassemblyjs/wast-parser": "1.8.5"
}
},
"@webassemblyjs/floating-point-hex-parser": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.8.3.tgz",
"integrity": "sha512-vq1TISG4sts4f0lDwMUM0f3kpe0on+G3YyV5P0IySHFeaLKRYZ++n2fCFfG4TcCMYkqFeTUYFxm75L3ddlk2xA==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.8.5.tgz",
"integrity": "sha512-9p+79WHru1oqBh9ewP9zW95E3XAo+90oth7S5Re3eQnECGq59ly1Ri5tsIipKGpiStHsUYmY3zMLqtk3gTcOtQ==",
"dev": true
},
"@webassemblyjs/helper-api-error": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.8.3.tgz",
"integrity": "sha512-BmWEynI4FnZbjk8CaYZXwcv9a6gIiu+rllRRouQUo73hglanXD3AGFJE7Q4JZCoVE0p5/jeX6kf5eKa3D4JxwQ==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.8.5.tgz",
"integrity": "sha512-Za/tnzsvnqdaSPOUXHyKJ2XI7PDX64kWtURyGiJJZKVEdFOsdKUCPTNEVFZq3zJ2R0G5wc2PZ5gvdTRFgm81zA==",
"dev": true
},
"@webassemblyjs/helper-buffer": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.8.3.tgz",
"integrity": "sha512-iVIMhWnNHoFB94+/2l7LpswfCsXeMRnWfExKtqsZ/E2NxZyUx9nTeKK/MEMKTQNEpyfznIUX06OchBHQ+VKi/Q==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.8.5.tgz",
"integrity": "sha512-Ri2R8nOS0U6G49Q86goFIPNgjyl6+oE1abW1pS84BuhP1Qcr5JqMwRFT3Ah3ADDDYGEgGs1iyb1DGX+kAi/c/Q==",
"dev": true
},
"@webassemblyjs/helper-code-frame": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.8.3.tgz",
"integrity": "sha512-K1UxoJML7GKr1QXR+BG7eXqQkvu+eEeTjlSl5wUFQ6W6vaOc5OwSxTcb3oE9x/3+w4NHhrIKD4JXXCZmLdL2cg==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.8.5.tgz",
"integrity": "sha512-VQAadSubZIhNpH46IR3yWO4kZZjMxN1opDrzePLdVKAZ+DFjkGD/rf4v1jap744uPVU6yjL/smZbRIIJTOUnKQ==",
"dev": true,
"requires": {
"@webassemblyjs/wast-printer": "1.8.3"
"@webassemblyjs/wast-printer": "1.8.5"
}
},
"@webassemblyjs/helper-fsm": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.8.3.tgz",
"integrity": "sha512-387zipfrGyO77/qm7/SDUiZBjQ5KGk4qkrVIyuoubmRNIiqn3g+6ijY8BhnlGqsCCQX5bYKOnttJobT5xoyviA==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.8.5.tgz",
"integrity": "sha512-kRuX/saORcg8se/ft6Q2UbRpZwP4y7YrWsLXPbbmtepKr22i8Z4O3V5QE9DbZK908dh5Xya4Un57SDIKwB9eow==",
"dev": true
},
"@webassemblyjs/helper-module-context": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.8.3.tgz",
"integrity": "sha512-lPLFdQfaRssfnGEJit5Sk785kbBPPPK4ZS6rR5W/8hlUO/5v3F+rN8XuUcMj/Ny9iZiyKhhuinWGTUuYL4VKeQ==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.8.5.tgz",
"integrity": "sha512-/O1B236mN7UNEU4t9X7Pj38i4VoU8CcMHyy3l2cV/kIF4U5KoHXDVqcDuOs1ltkac90IM4vZdHc52t1x8Yfs3g==",
"dev": true,
"requires": {
"@webassemblyjs/ast": "1.8.3",
"@webassemblyjs/ast": "1.8.5",
"mamacro": "^0.0.3"
}
},
"@webassemblyjs/helper-wasm-bytecode": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.8.3.tgz",
"integrity": "sha512-R1nJW7bjyJLjsJQR5t3K/9LJ0QWuZezl8fGa49DZq4IVaejgvkbNlKEQxLYTC579zgT4IIIVHb5JA59uBPHXyw==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.8.5.tgz",
"integrity": "sha512-Cu4YMYG3Ddl72CbmpjU/wbP6SACcOPVbHN1dI4VJNJVgFwaKf1ppeFJrwydOG3NDHxVGuCfPlLZNyEdIYlQ6QQ==",
"dev": true
},
"@webassemblyjs/helper-wasm-section": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.8.3.tgz",
"integrity": "sha512-P6F7D61SJY73Yz+fs49Q3+OzlYAZP86OfSpaSY448KzUy65NdfzDmo2NPVte+Rw4562MxEAacvq/mnDuvRWOcg==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.8.5.tgz",
"integrity": "sha512-VV083zwR+VTrIWWtgIUpqfvVdK4ff38loRmrdDBgBT8ADXYsEZ5mPQ4Nde90N3UYatHdYoDIFb7oHzMncI02tA==",
"dev": true,
"requires": {
"@webassemblyjs/ast": "1.8.3",
"@webassemblyjs/helper-buffer": "1.8.3",
"@webassemblyjs/helper-wasm-bytecode": "1.8.3",
"@webassemblyjs/wasm-gen": "1.8.3"
"@webassemblyjs/ast": "1.8.5",
"@webassemblyjs/helper-buffer": "1.8.5",
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
"@webassemblyjs/wasm-gen": "1.8.5"
}
},
"@webassemblyjs/ieee754": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.8.3.tgz",
"integrity": "sha512-UD4HuLU99hjIvWz1pD68b52qsepWQlYCxDYVFJQfHh3BHyeAyAlBJ+QzLR1nnS5J6hAzjki3I3AoJeobNNSZlg==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.8.5.tgz",
"integrity": "sha512-aaCvQYrvKbY/n6wKHb/ylAJr27GglahUO89CcGXMItrOBqRarUMxWLJgxm9PJNuKULwN5n1csT9bYoMeZOGF3g==",
"dev": true,
"requires": {
"@xtuc/ieee754": "^1.2.0"
}
},
"@webassemblyjs/leb128": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.8.3.tgz",
"integrity": "sha512-XXd3s1BmkC1gpGABuCRLqCGOD6D2L+Ma2BpwpjrQEHeQATKWAQtxAyU9Z14/z8Ryx6IG+L4/NDkIGHrccEhRUg==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.8.5.tgz",
"integrity": "sha512-plYUuUwleLIziknvlP8VpTgO4kqNaH57Y3JnNa6DLpu/sGcP6hbVdfdX5aHAV716pQBKrfuU26BJK29qY37J7A==",
"dev": true,
"requires": {
"@xtuc/long": "4.2.2"
}
},
"@webassemblyjs/utf8": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.8.3.tgz",
"integrity": "sha512-Wv/WH9Zo5h5ZMyfCNpUrjFsLZ3X1amdfEuwdb7MLdG3cPAjRS6yc6ElULlpjLiiBTuzvmLhr3ENsuGyJ3wyCgg==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.8.5.tgz",
"integrity": "sha512-U7zgftmQriw37tfD934UNInokz6yTmn29inT2cAetAsaU9YeVCveWEwhKL1Mg4yS7q//NGdzy79nlXh3bT8Kjw==",
"dev": true
},
"@webassemblyjs/wasm-edit": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.8.3.tgz",
"integrity": "sha512-nB19eUx3Yhi1Vvv3yev5r+bqQixZprMtaoCs1brg9Efyl8Hto3tGaUoZ0Yb4Umn/gQCyoEGFfUxPLp1/8+Jvnw==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.8.5.tgz",
"integrity": "sha512-A41EMy8MWw5yvqj7MQzkDjU29K7UJq1VrX2vWLzfpRHt3ISftOXqrtojn7nlPsZ9Ijhp5NwuODuycSvfAO/26Q==",
"dev": true,
"requires": {
"@webassemblyjs/ast": "1.8.3",
"@webassemblyjs/helper-buffer": "1.8.3",
"@webassemblyjs/helper-wasm-bytecode": "1.8.3",
"@webassemblyjs/helper-wasm-section": "1.8.3",
"@webassemblyjs/wasm-gen": "1.8.3",
"@webassemblyjs/wasm-opt": "1.8.3",
"@webassemblyjs/wasm-parser": "1.8.3",
"@webassemblyjs/wast-printer": "1.8.3"
"@webassemblyjs/ast": "1.8.5",
"@webassemblyjs/helper-buffer": "1.8.5",
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
"@webassemblyjs/helper-wasm-section": "1.8.5",
"@webassemblyjs/wasm-gen": "1.8.5",
"@webassemblyjs/wasm-opt": "1.8.5",
"@webassemblyjs/wasm-parser": "1.8.5",
"@webassemblyjs/wast-printer": "1.8.5"
}
},
"@webassemblyjs/wasm-gen": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.8.3.tgz",
"integrity": "sha512-sDNmu2nLBJZ/huSzlJvd9IK8B1EjCsOl7VeMV9VJPmxKYgTJ47lbkSP+KAXMgZWGcArxmcrznqm7FrAPQ7vVGg==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.8.5.tgz",
"integrity": "sha512-BCZBT0LURC0CXDzj5FXSc2FPTsxwp3nWcqXQdOZE4U7h7i8FqtFK5Egia6f9raQLpEKT1VL7zr4r3+QX6zArWg==",
"dev": true,
"requires": {
"@webassemblyjs/ast": "1.8.3",
"@webassemblyjs/helper-wasm-bytecode": "1.8.3",
"@webassemblyjs/ieee754": "1.8.3",
"@webassemblyjs/leb128": "1.8.3",
"@webassemblyjs/utf8": "1.8.3"
"@webassemblyjs/ast": "1.8.5",
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
"@webassemblyjs/ieee754": "1.8.5",
"@webassemblyjs/leb128": "1.8.5",
"@webassemblyjs/utf8": "1.8.5"
}
},
"@webassemblyjs/wasm-opt": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.8.3.tgz",
"integrity": "sha512-j8lmQVFR+FR4/645VNgV4R/Jz8i50eaPAj93GZyd3EIJondVshE/D9pivpSDIXyaZt+IkCodlzOoZUE4LnQbeA==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.8.5.tgz",
"integrity": "sha512-HKo2mO/Uh9A6ojzu7cjslGaHaUU14LdLbGEKqTR7PBKwT6LdPtLLh9fPY33rmr5wcOMrsWDbbdCHq4hQUdd37Q==",
"dev": true,
"requires": {
"@webassemblyjs/ast": "1.8.3",
"@webassemblyjs/helper-buffer": "1.8.3",
"@webassemblyjs/wasm-gen": "1.8.3",
"@webassemblyjs/wasm-parser": "1.8.3"
"@webassemblyjs/ast": "1.8.5",
"@webassemblyjs/helper-buffer": "1.8.5",
"@webassemblyjs/wasm-gen": "1.8.5",
"@webassemblyjs/wasm-parser": "1.8.5"
}
},
"@webassemblyjs/wasm-parser": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.8.3.tgz",
"integrity": "sha512-NBI3SNNtRoy4T/KBsRZCAWUzE9lI94RH2nneLwa1KKIrt/2zzcTavWg6oY05ArCbb/PZDk3OUi63CD1RYtN65w==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.8.5.tgz",
"integrity": "sha512-pi0SYE9T6tfcMkthwcgCpL0cM9nRYr6/6fjgDtL6q/ZqKHdMWvxitRi5JcZ7RI4SNJJYnYNaWy5UUrHQy998lw==",
"dev": true,
"requires": {
"@webassemblyjs/ast": "1.8.3",
"@webassemblyjs/helper-api-error": "1.8.3",
"@webassemblyjs/helper-wasm-bytecode": "1.8.3",
"@webassemblyjs/ieee754": "1.8.3",
"@webassemblyjs/leb128": "1.8.3",
"@webassemblyjs/utf8": "1.8.3"
"@webassemblyjs/ast": "1.8.5",
"@webassemblyjs/helper-api-error": "1.8.5",
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
"@webassemblyjs/ieee754": "1.8.5",
"@webassemblyjs/leb128": "1.8.5",
"@webassemblyjs/utf8": "1.8.5"
}
},
"@webassemblyjs/wast-parser": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.8.3.tgz",
"integrity": "sha512-gZPst4CNcmGtKC1eYQmgCx6gwQvxk4h/nPjfPBbRoD+Raw3Hs+BS3yhrfgyRKtlYP+BJ8LcY9iFODEQofl2qbg==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.8.5.tgz",
"integrity": "sha512-daXC1FyKWHF1i11obK086QRlsMsY4+tIOKgBqI1lxAnkp9xe9YMcgOxm9kLe+ttjs5aWV2KKE1TWJCN57/Btsg==",
"dev": true,
"requires": {
"@webassemblyjs/ast": "1.8.3",
"@webassemblyjs/floating-point-hex-parser": "1.8.3",
"@webassemblyjs/helper-api-error": "1.8.3",
"@webassemblyjs/helper-code-frame": "1.8.3",
"@webassemblyjs/helper-fsm": "1.8.3",
"@webassemblyjs/ast": "1.8.5",
"@webassemblyjs/floating-point-hex-parser": "1.8.5",
"@webassemblyjs/helper-api-error": "1.8.5",
"@webassemblyjs/helper-code-frame": "1.8.5",
"@webassemblyjs/helper-fsm": "1.8.5",
"@xtuc/long": "4.2.2"
}
},
"@webassemblyjs/wast-printer": {
"version": "1.8.3",
"resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.8.3.tgz",
"integrity": "sha512-DTA6kpXuHK4PHu16yAD9QVuT1WZQRT7079oIFFmFSjqjLWGXS909I/7kiLTn931mcj7wGsaUNungjwNQ2lGQ3Q==",
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.8.5.tgz",
"integrity": "sha512-w0U0pD4EhlnvRyeJzBqaVSJAo9w/ce7/WPogeXLzGkO6hzhr4GnQIZ4W4uUt5b9ooAaXPtnXlj0gzsXEOUNYMg==",
"dev": true,
"requires": {
"@webassemblyjs/ast": "1.8.3",
"@webassemblyjs/wast-parser": "1.8.3",
"@webassemblyjs/ast": "1.8.5",
"@webassemblyjs/wast-parser": "1.8.5",
"@xtuc/long": "4.2.2"
}
},
@ -270,9 +270,9 @@
"dev": true
},
"acorn": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-6.1.0.tgz",
"integrity": "sha512-MW/FjM+IvU9CgBzjO3UIPCE2pyEwUsoFl+VGdczOPEdxfGFjuKny/gN54mOuX7Qxmb9Rg9MCn2oKiSUeW+pjrw==",
"version": "6.1.1",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-6.1.1.tgz",
"integrity": "sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA==",
"dev": true
},
"acorn-dynamic-import": {
@ -282,9 +282,9 @@
"dev": true
},
"ajv": {
"version": "6.9.1",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.9.1.tgz",
"integrity": "sha512-XDN92U311aINL77ieWHmqCcNlwjoP5cHXDxIxbf2MaPYuCXOHS7gHH8jktxeK5omgd52XbSTX6a4Piwd1pQmzA==",
"version": "6.9.2",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.9.2.tgz",
"integrity": "sha512-4UFy0/LgDo7Oa/+wOAlj44tp9K78u38E5/359eSrqEp1Z5PdVfimCcs7SluXMP755RUQu6d2b4AvF0R1C9RZjg==",
"dev": true,
"requires": {
"fast-deep-equal": "^2.0.1",
@ -567,9 +567,9 @@
"dev": true
},
"binaryen": {
"version": "68.0.0-nightly.20190220",
"resolved": "https://registry.npmjs.org/binaryen/-/binaryen-68.0.0-nightly.20190220.tgz",
"integrity": "sha512-NsxXRfk+DsNju2+6OfD+UAkkahesa+Wd09bYlS+6WjxqvYokygSonjaZsvD7YQoIRfz4YLsHXx6SfoDu8uxYPA=="
"version": "69.0.0-nightly.20190228",
"resolved": "https://registry.npmjs.org/binaryen/-/binaryen-69.0.0-nightly.20190228.tgz",
"integrity": "sha512-rF3UuWKyYc0+PX+HteNKB3rl5FIcwIfmCldFp2PShJ9lwUvTLqvMaGfco6/QhFSP0Q0iLdHxBFDn9LHief8FPg=="
},
"bluebird": {
"version": "3.5.3",
@ -3952,9 +3952,9 @@
}
},
"terser-webpack-plugin": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.2.2.tgz",
"integrity": "sha512-1DMkTk286BzmfylAvLXwpJrI7dWa5BnFmscV/2dCr8+c56egFcbaeFAl7+sujAjdmpLam21XRdhA4oifLyiWWg==",
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.2.3.tgz",
"integrity": "sha512-GOK7q85oAb/5kE12fMuLdn2btOS9OBZn4VsecpHDywoUC/jLhSAKOiYo0ezx7ss2EXPMzyEWFoE0s1WLE+4+oA==",
"dev": true,
"requires": {
"cacache": "^11.0.2",
@ -4399,15 +4399,15 @@
}
},
"webpack": {
"version": "4.29.5",
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.29.5.tgz",
"integrity": "sha512-DuWlYUT982c7XVHodrLO9quFbNpVq5FNxLrMUfYUTlgKW0+yPimynYf1kttSQpEneAL1FH3P3OLNgkyImx8qIQ==",
"version": "4.29.6",
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.29.6.tgz",
"integrity": "sha512-MwBwpiE1BQpMDkbnUUaW6K8RFZjljJHArC6tWQJoFm0oQtfoSebtg4Y7/QHnJ/SddtjYLHaKGX64CFjG5rehJw==",
"dev": true,
"requires": {
"@webassemblyjs/ast": "1.8.3",
"@webassemblyjs/helper-module-context": "1.8.3",
"@webassemblyjs/wasm-edit": "1.8.3",
"@webassemblyjs/wasm-parser": "1.8.3",
"@webassemblyjs/ast": "1.8.5",
"@webassemblyjs/helper-module-context": "1.8.5",
"@webassemblyjs/wasm-edit": "1.8.5",
"@webassemblyjs/wasm-parser": "1.8.5",
"acorn": "^6.0.5",
"acorn-dynamic-import": "^4.0.0",
"ajv": "^6.1.0",

View File

@ -12,7 +12,7 @@
},
"dependencies": {
"@protobufjs/utf8": "^1.1.0",
"binaryen": "68.0.0-nightly.20190220",
"binaryen": "69.0.0-nightly.20190228",
"glob": "^7.1.3",
"long": "^4.0.0",
"source-map-support": "^0.5.10"
@ -27,7 +27,7 @@
"typedoc": "^0.14.0",
"typedoc-plugin-external-module-name": "^2.0.0",
"typescript": "^3.3.3333",
"webpack": "^4.29.5",
"webpack": "^4.29.6",
"webpack-cli": "^3.2.3"
},
"main": "index.js",

View File

@ -5,6 +5,7 @@
(type $ii (func (param i32) (result i32)))
(type $ii_ (func (param i32 i32)))
(type $i_ (func (param i32)))
(type $FUNCSIG$i (func (result i32)))
(memory $0 0)
(table $0 1 funcref)
(elem (i32.const 0) $null)
@ -59,39 +60,27 @@
(func $exports/Car.getNumTires (; 2 ;) (type $i) (result i32)
i32.const 4
)
(func $~lib/allocator/arena/__memory_allocate (; 3 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/allocator/arena/__memory_allocate (; 3 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
i32.const 1073741824
i32.gt_u
if
unreachable
end
global.get $~lib/allocator/arena/offset
local.tee $1
local.get $0
i32.const 1
local.get $0
i32.const 1
i32.gt_u
select
i32.add
i32.const 7
local.tee $0
i32.const 11
i32.add
i32.const -8
i32.and
local.tee $2
local.tee $1
current_memory
local.tee $3
local.tee $2
i32.const 16
i32.shl
i32.gt_u
if
local.get $3
local.get $2
local.get $1
local.get $0
i32.sub
i32.const 65535
i32.add
@ -99,16 +88,16 @@
i32.and
i32.const 16
i32.shr_u
local.tee $0
local.tee $3
local.get $2
local.get $3
local.get $0
i32.gt_s
select
grow_memory
i32.const 0
i32.lt_s
if
local.get $0
local.get $3
grow_memory
i32.const 0
i32.lt_s
@ -117,9 +106,9 @@
end
end
end
local.get $2
global.set $~lib/allocator/arena/offset
local.get $1
global.set $~lib/allocator/arena/offset
local.get $0
)
(func $exports/Car#get:numDoors (; 4 ;) (type $ii) (param $0 i32) (result i32)
local.get $0
@ -179,7 +168,6 @@
local.get $0
i32.eqz
if
i32.const 4
call $~lib/allocator/arena/__memory_allocate
local.set $0
end

View File

@ -1,7 +1,7 @@
(module
(type $_ (func))
(type $i (func (result i32)))
(type $ii (func (param i32) (result i32)))
(type $FUNCSIG$i (func (result i32)))
(memory $0 0)
(table $0 2 funcref)
(elem (i32.const 0) $null $getter-call/C#get:x~anonymous|0)
@ -12,39 +12,27 @@
(export "table" (table $0))
(export "test" (func $getter-call/test))
(start $start)
(func $~lib/allocator/arena/__memory_allocate (; 0 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/allocator/arena/__memory_allocate (; 0 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
i32.const 1073741824
i32.gt_u
if
unreachable
end
global.get $~lib/allocator/arena/offset
local.tee $1
local.get $0
i32.const 1
local.get $0
i32.const 1
i32.gt_u
select
i32.add
i32.const 7
local.tee $0
i32.const 8
i32.add
i32.const -8
i32.and
local.tee $2
local.tee $1
current_memory
local.tee $3
local.tee $2
i32.const 16
i32.shl
i32.gt_u
if
local.get $3
local.get $2
local.get $1
local.get $0
i32.sub
i32.const 65535
i32.add
@ -52,16 +40,16 @@
i32.and
i32.const 16
i32.shr_u
local.tee $0
local.tee $3
local.get $2
local.get $3
local.get $0
i32.gt_s
select
grow_memory
i32.const 0
i32.lt_s
if
local.get $0
local.get $3
grow_memory
i32.const 0
i32.lt_s
@ -70,15 +58,14 @@
end
end
end
local.get $2
global.set $~lib/allocator/arena/offset
local.get $1
global.set $~lib/allocator/arena/offset
local.get $0
)
(func $getter-call/C#get:x~anonymous|0 (; 1 ;) (type $i) (result i32)
i32.const 42
)
(func $getter-call/test (; 2 ;) (type $i) (result i32)
i32.const 0
call $~lib/allocator/arena/__memory_allocate
drop
i32.const 0

View File

@ -1,7 +1,7 @@
(module
(type $iiii (func (param i32 i32 i32) (result i32)))
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $_ (func))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\t\00\00\00m\00e\00m\00s\00e\00t\00.\00t\00s")
@ -11,7 +11,7 @@
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $memset/memset (; 1 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $memset/memset (; 1 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i64)
@ -237,10 +237,7 @@
br $continue|0
end
end
local.get $3
return
end
local.get $3
)
(func $start:memset (; 2 ;) (type $_)
i32.const 32
@ -249,7 +246,6 @@
i32.const 1
i32.const 16
call $memset/memset
drop
global.get $memset/dest
i32.load8_u
i32.const 1
@ -282,7 +278,6 @@
i32.const 2
i32.const 14
call $memset/memset
drop
global.get $memset/dest
i32.load8_u
i32.const 1

View File

@ -4,12 +4,12 @@
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $iii_ (func (param i32 i32 i32)))
(type $iii (func (param i32 i32) (result i32)))
(type $Fi (func (param f64) (result i32)))
(type $iFi (func (param i32 f64) (result i32)))
(type $iIiIiIii (func (param i32 i64 i32 i64 i32 i64 i32) (result i32)))
(type $iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$iijijij (func (param i32 i64 i32 i64 i32 i64) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$i (func (result i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\01\00\00\000")
@ -419,9 +419,10 @@
call $~lib/internal/string/compareUnsafe
i32.eqz
)
(func $~lib/internal/number/genDigits (; 8 ;) (type $iIiIiIii) (param $0 i32) (param $1 i64) (param $2 i32) (param $3 i64) (param $4 i32) (param $5 i64) (param $6 i32) (result i32)
(local $7 i32)
(local $8 i64)
(func $~lib/internal/number/genDigits (; 8 ;) (type $FUNCSIG$iijijij) (param $0 i32) (param $1 i64) (param $2 i32) (param $3 i64) (param $4 i32) (param $5 i64) (result i32)
(local $6 i32)
(local $7 i64)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
@ -446,12 +447,12 @@
local.tee $14
local.get $3
i64.and
local.set $8
local.set $7
local.get $3
local.get $1
i64.shr_u
i32.wrap_i64
local.tee $7
local.tee $6
call $~lib/internal/number/decimalCount32
local.set $9
i32.const 2064
@ -462,6 +463,8 @@
i32.const 0
i32.gt_s
if
local.get $9
local.set $2
block $break|1
block $case10|1
block $case9|1
@ -474,7 +477,6 @@
block $case2|1
block $case1|1
local.get $9
local.tee $2
i32.const 10
i32.ne
if
@ -483,114 +485,114 @@
i32.sub
br_table $case9|1 $case8|1 $case7|1 $case6|1 $case5|1 $case4|1 $case3|1 $case2|1 $case1|1 $case10|1
end
local.get $7
local.get $6
i32.const 1000000000
i32.div_u
local.set $4
local.get $7
local.get $6
i32.const 1000000000
i32.rem_u
local.set $7
local.set $6
br $break|1
end
local.get $7
local.get $6
i32.const 100000000
i32.div_u
local.set $4
local.get $7
local.get $6
i32.const 100000000
i32.rem_u
local.set $7
local.set $6
br $break|1
end
local.get $7
local.get $6
i32.const 10000000
i32.div_u
local.set $4
local.get $7
local.get $6
i32.const 10000000
i32.rem_u
local.set $7
local.set $6
br $break|1
end
local.get $7
local.get $6
i32.const 1000000
i32.div_u
local.set $4
local.get $7
local.get $6
i32.const 1000000
i32.rem_u
local.set $7
local.set $6
br $break|1
end
local.get $7
local.get $6
i32.const 100000
i32.div_u
local.set $4
local.get $7
local.get $6
i32.const 100000
i32.rem_u
local.set $7
local.set $6
br $break|1
end
local.get $7
local.get $6
i32.const 10000
i32.div_u
local.set $4
local.get $7
local.get $6
i32.const 10000
i32.rem_u
local.set $7
local.set $6
br $break|1
end
local.get $7
local.get $6
i32.const 1000
i32.div_u
local.set $4
local.get $7
local.get $6
i32.const 1000
i32.rem_u
local.set $7
local.set $6
br $break|1
end
local.get $7
local.get $6
i32.const 100
i32.div_u
local.set $4
local.get $7
local.get $6
i32.const 100
i32.rem_u
local.set $7
local.set $6
br $break|1
end
local.get $7
local.get $6
i32.const 10
i32.div_u
local.set $4
local.get $7
local.get $6
i32.const 10
i32.rem_u
local.set $7
local.set $6
br $break|1
end
local.get $7
local.get $6
local.set $4
i32.const 0
local.set $7
local.set $6
br $break|1
end
i32.const 0
local.set $4
end
local.get $4
local.get $6
local.get $8
i32.or
if
local.get $6
local.get $8
local.tee $2
i32.const 1
i32.add
local.set $6
local.set $8
local.get $2
i32.const 1
i32.shl
@ -607,12 +609,12 @@
i32.const 1
i32.sub
local.set $9
local.get $7
local.get $6
i64.extend_i32_u
local.get $11
i64.extend_i32_s
i64.shl
local.get $8
local.get $7
i64.add
local.tee $1
local.get $5
@ -624,19 +626,19 @@
global.set $~lib/internal/number/_K
local.get $5
local.set $3
local.get $10
local.get $9
i32.const 2
i32.shl
local.get $10
i32.add
i64.load32_u offset=8
local.get $11
i64.extend_i32_s
i64.shl
local.set $8
local.set $7
local.get $12
local.set $5
local.get $6
local.get $8
i32.const 1
i32.sub
i32.const 1
@ -647,48 +649,51 @@
i32.load16_u offset=4
local.set $10
loop $continue|2
local.get $1
local.get $5
i64.lt_u
local.tee $0
if
local.get $3
block (result i32)
local.get $1
i64.sub
local.get $8
i64.ge_u
local.set $0
local.get $5
i64.lt_u
local.tee $0
if
local.get $3
local.get $1
i64.sub
local.get $7
i64.ge_u
local.set $0
end
local.get $0
end
local.get $0
if
if (result i32)
local.get $1
local.get $8
local.get $7
i64.add
local.get $5
i64.lt_u
local.tee $0
i32.eqz
if
if (result i32)
local.get $0
else
local.get $5
local.get $1
i64.sub
local.get $1
local.get $8
local.get $7
i64.add
local.get $5
i64.sub
i64.gt_u
local.set $0
end
else
local.get $0
end
local.get $0
if
local.get $10
i32.const 1
i32.sub
local.set $10
local.get $1
local.get $8
local.get $7
i64.add
local.set $1
br $continue|2
@ -697,36 +702,36 @@
local.get $2
local.get $10
i32.store16 offset=4
local.get $6
local.get $8
return
end
br $continue|0
end
end
loop $continue|3 (result i32)
loop $continue|3
local.get $5
i64.const 10
i64.mul
local.set $5
local.get $8
local.get $7
i64.const 10
i64.mul
local.tee $8
local.tee $7
local.get $11
i64.extend_i32_s
i64.shr_u
local.tee $1
local.get $6
local.get $8
i64.extend_i32_s
i64.or
i64.const 0
i64.ne
if
local.get $6
local.get $8
local.tee $4
i32.const 1
i32.add
local.set $6
local.set $8
local.get $4
i32.const 1
i32.shl
@ -744,94 +749,97 @@
i32.const 1
i32.sub
local.set $9
local.get $8
local.get $7
local.get $14
i64.and
local.tee $8
local.tee $7
local.get $5
i64.ge_u
br_if $continue|3
global.get $~lib/internal/number/_K
local.get $9
i32.add
global.set $~lib/internal/number/_K
local.get $13
local.set $1
local.get $10
i32.const 0
local.get $9
i32.sub
i32.const 2
i32.shl
i32.add
i64.load32_u offset=8
local.get $12
i64.mul
local.set $3
local.get $6
local.tee $10
i32.const 1
i32.sub
i32.const 1
i32.shl
local.get $0
i32.add
local.tee $4
i32.load16_u offset=4
local.set $6
loop $continue|4
local.get $8
end
global.get $~lib/internal/number/_K
local.get $9
i32.add
global.set $~lib/internal/number/_K
local.get $13
local.set $1
i32.const 0
local.get $9
i32.sub
i32.const 2
i32.shl
local.get $10
i32.add
i64.load32_u offset=8
local.get $12
i64.mul
local.set $3
local.get $8
local.tee $10
i32.const 1
i32.sub
i32.const 1
i32.shl
local.get $0
i32.add
local.tee $4
i32.load16_u offset=4
local.set $8
loop $continue|4
block (result i32)
local.get $7
local.get $3
i64.lt_u
local.tee $2
if
local.get $5
local.get $8
local.get $7
i64.sub
local.get $1
i64.ge_u
local.set $2
end
local.get $2
if
end
if (result i32)
local.get $1
local.get $7
i64.add
local.get $3
i64.lt_u
local.tee $2
if (result i32)
local.get $2
else
local.get $3
local.get $7
i64.sub
local.get $1
local.get $8
local.get $7
i64.add
local.get $3
i64.lt_u
local.tee $2
i32.eqz
if
local.get $3
local.get $8
i64.sub
local.get $1
local.get $8
i64.add
local.get $3
i64.sub
i64.gt_u
local.set $2
end
i64.sub
i64.gt_u
end
else
local.get $2
if
local.get $6
i32.const 1
i32.sub
local.set $6
local.get $1
local.get $8
i64.add
local.set $8
br $continue|4
end
end
local.get $4
local.get $6
i32.store16 offset=4
local.get $10
if
local.get $8
i32.const 1
i32.sub
local.set $8
local.get $1
local.get $7
i64.add
local.set $7
br $continue|4
end
end
local.get $4
local.get $8
i32.store16 offset=4
local.get $10
)
(func $~lib/internal/memory/memcpy (; 9 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
@ -2202,126 +2210,52 @@
end
end
)
(func $~lib/internal/number/dtoa_core (; 12 ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
(func $~lib/internal/number/dtoa_core (; 12 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i64)
(local $2 i64)
(local $3 i64)
(local $4 i32)
(local $5 i64)
(local $4 i64)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i64)
(local $10 i64)
(local $11 i64)
(local $7 i64)
(local $8 i64)
(local $9 i32)
(local $10 f64)
(local $11 i32)
(local $12 i64)
(local $13 i32)
(local $14 i64)
local.get $1
f64.const 0
f64.lt
local.tee $13
if (result f64)
local.get $0
i32.const 45
i32.store16 offset=4
local.get $1
f64.neg
else
local.get $1
end
i64.reinterpret_f64
local.tee $14
i64.const 9218868437227405312
i64.and
i64.const 52
i64.shr_u
i32.wrap_i64
local.set $7
local.get $14
i64.const 4503599627370495
i64.and
local.get $7
i32.const 0
i32.ne
local.tee $4
i64.extend_i32_u
i64.const 52
i64.shl
i64.add
local.set $2
local.get $7
i32.const 1
local.get $4
select
i32.const 1075
i32.sub
local.tee $7
i32.const 1
i32.sub
local.set $8
local.get $2
i64.const 1
i64.shl
i64.const 1
i64.add
local.tee $5
i64.clz
i32.wrap_i64
local.set $4
local.get $5
local.get $4
i64.extend_i32_s
i64.shl
(local $13 i64)
i64.const -9223372036854774784
global.set $~lib/internal/number/_frc_plus
local.get $2
local.get $2
i64.const 4503599627370496
i64.eq
i32.const 1
i32.add
local.tee $6
i64.extend_i32_s
i64.shl
i64.const 1
i64.sub
local.get $7
local.get $6
i32.sub
local.get $8
local.get $4
i32.sub
local.tee $8
i32.sub
i64.extend_i32_s
i64.shl
i64.const 9223372036854775296
global.set $~lib/internal/number/_frc_minus
local.get $8
i32.const -62
global.set $~lib/internal/number/_exp
i32.const 348
i32.const -61
global.get $~lib/internal/number/_exp
local.tee $9
i32.sub
f64.convert_i32_s
f64.const 0.30102999566398114
f64.mul
f64.const 347
f64.add
local.tee $1
local.tee $10
i32.trunc_f64_s
local.tee $4
local.get $4
local.tee $5
local.get $5
f64.convert_i32_s
local.get $1
local.get $10
f64.ne
i32.add
i32.const 3
i32.shr_s
i32.const 1
i32.add
local.tee $8
local.tee $11
i32.const 3
i32.shl
local.tee $4
local.tee $5
i32.sub
global.set $~lib/internal/number/_K
i32.const 1992
@ -2329,92 +2263,65 @@
local.set $6
i32.const 1728
i32.load
local.get $4
local.get $5
i32.add
i64.load offset=8
global.set $~lib/internal/number/_frc_pow
local.get $6
local.get $8
local.get $11
i32.const 1
i32.shl
local.get $6
i32.add
i32.load16_s offset=8
global.set $~lib/internal/number/_exp_pow
local.get $2
local.get $2
i64.clz
i32.wrap_i64
local.tee $6
i64.extend_i32_s
i64.shl
local.tee $2
i64.const 4294967295
i64.and
local.tee $9
global.get $~lib/internal/number/_frc_pow
local.tee $5
i64.const 4294967295
i64.and
local.tee $10
i64.mul
local.set $3
local.get $5
i64.const 32
i64.shr_u
local.tee $11
local.get $9
i64.mul
local.get $2
i64.const 32
i64.shr_u
local.tee $2
local.get $10
i64.mul
local.get $3
i64.const 32
i64.shr_u
i64.add
local.tee $3
i64.const 4294967295
i64.and
local.tee $12
local.tee $4
i64.const 2147483648
i64.mul
i64.const 0
i64.add
local.tee $1
i64.const 4294967295
i64.and
i64.const 0
i64.add
i64.const 2147483647
i64.add
i64.const 32
i64.shr_u
local.get $2
local.get $11
i64.mul
local.get $3
i64.const 32
i64.shr_u
local.tee $3
i64.const 2147483648
i64.mul
local.get $1
i64.const 32
i64.shr_u
i64.add
i64.add
local.set $14
local.get $5
i64.const 4294967295
i64.and
local.tee $2
local.set $13
global.get $~lib/internal/number/_frc_plus
local.tee $3
local.tee $1
i64.const 4294967295
i64.and
local.tee $11
local.tee $7
local.get $3
i64.mul
local.set $12
local.get $11
local.get $5
local.get $4
local.tee $2
local.get $1
i64.const 32
i64.shr_u
local.tee $9
local.tee $4
i64.mul
local.get $2
local.get $3
i64.const 32
i64.shr_u
local.tee $10
local.get $7
i64.mul
local.get $12
i64.const 32
i64.shr_u
i64.add
@ -2426,47 +2333,42 @@
i64.add
i64.const 32
i64.shr_u
local.get $9
local.get $10
local.get $3
local.get $4
i64.mul
local.get $2
i64.const 32
i64.shr_u
i64.add
i64.add
local.set $12
local.set $8
global.get $~lib/internal/number/_frc_minus
local.tee $2
i64.const 4294967295
i64.and
local.tee $9
local.get $5
i64.const 4294967295
i64.and
local.tee $10
i64.mul
local.set $3
local.tee $7
local.get $12
local.tee $4
i64.mul
local.set $1
local.get $8
i64.const 1
i64.sub
local.tee $12
local.get $5
i64.const 32
i64.shr_u
local.tee $11
local.get $9
local.tee $8
local.get $3
local.get $7
i64.mul
local.get $4
local.get $2
i64.const 32
i64.shr_u
local.tee $2
local.get $10
i64.mul
local.get $3
local.get $1
i64.const 32
i64.shr_u
i64.add
local.tee $3
local.tee $1
i64.const 4294967295
i64.and
i64.add
@ -2475,9 +2377,9 @@
i64.const 32
i64.shr_u
local.get $2
local.get $11
i64.mul
local.get $3
i64.mul
local.get $1
i64.const 32
i64.shr_u
i64.add
@ -2485,37 +2387,24 @@
i64.const 1
i64.add
i64.sub
local.set $3
local.set $1
local.get $0
local.get $0
local.get $13
i32.const 1
i32.shl
local.get $0
i32.add
local.get $0
local.get $14
local.get $7
local.get $6
i32.sub
global.get $~lib/internal/number/_exp_pow
local.tee $6
i32.const 2
i32.add
i32.const -64
i32.sub
local.get $12
global.get $~lib/internal/number/_exp
local.get $8
local.get $6
local.get $9
i32.add
i32.const -64
i32.sub
local.get $3
local.get $13
local.get $1
call $~lib/internal/number/genDigits
local.get $13
i32.sub
global.get $~lib/internal/number/_K
call $~lib/internal/number/prettify
local.get $13
i32.add
)
(func $~lib/string/String#substring (; 13 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
@ -2607,48 +2496,19 @@
call $~lib/internal/memory/memmove
local.get $2
)
(func $~lib/internal/number/dtoa (; 14 ;) (type $Fi) (param $0 f64) (result i32)
(func $~lib/internal/number/dtoa (; 14 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
local.get $0
f64.const 0
f64.eq
if
i32.const 624
return
end
local.get $0
local.get $0
f64.sub
f64.const 0
f64.ne
if
local.get $0
local.get $0
f64.ne
if
i32.const 640
return
end
i32.const 656
i32.const 680
local.get $0
f64.const 0
f64.lt
select
return
end
i32.const 28
call $~lib/internal/string/allocateUnsafe
local.tee $2
local.get $0
local.tee $1
call $~lib/internal/number/dtoa_core
local.set $1
local.get $2
local.set $0
local.get $1
local.get $0
call $~lib/string/String#substring
local.set $1
local.get $2
local.set $0
local.get $1
i32.eqz
if
i32.const 0
@ -2658,7 +2518,7 @@
call $~lib/env/abort
unreachable
end
local.get $1
local.get $0
)
(func $start:number (; 15 ;) (type $_)
(local $0 i32)
@ -2679,7 +2539,6 @@
call $~lib/env/abort
unreachable
end
f64.const 2
call $~lib/internal/number/dtoa
i32.const 2112
call $~lib/string/String.__eq

View File

@ -3,7 +3,7 @@
(type $ii (func (param i32) (result i32)))
(type $i_ (func (param i32)))
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
@ -78,34 +78,37 @@
global.set $~lib/allocator/arena/offset
local.get $1
)
(func $~lib/internal/string/compareUnsafe (; 2 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/internal/string/compareUnsafe (; 2 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
i32.const 8
local.set $2
loop $continue|0
local.get $2
local.get $1
if (result i32)
local.get $0
i32.load16_u offset=4
local.get $1
local.get $2
i32.load16_u offset=4
i32.sub
local.tee $3
i32.eqz
else
local.get $2
local.get $1
end
if
local.get $2
local.get $1
i32.const 1
i32.sub
local.set $2
local.set $1
local.get $0
i32.const 2
i32.add
local.set $0
local.get $1
local.get $2
i32.const 2
i32.add
local.set $1
local.set $2
br $continue|0
end
end
@ -143,7 +146,6 @@
return
end
local.get $0
i32.const 8
local.get $1
call $~lib/internal/string/compareUnsafe
i32.eqz

View File

@ -1,6 +1,6 @@
(module
(type $ii (func (param i32) (result i32)))
(type $_ (func))
(type $FUNCSIG$i (func (result i32)))
(memory $0 0)
(table $0 1 funcref)
(elem (i32.const 0) $null)
@ -11,39 +11,27 @@
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $~lib/allocator/arena/__memory_allocate (; 0 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/allocator/arena/__memory_allocate (; 0 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
i32.const 1073741824
i32.gt_u
if
unreachable
end
global.get $~lib/allocator/arena/offset
local.tee $1
local.get $0
i32.const 1
local.get $0
i32.const 1
i32.gt_u
select
i32.add
i32.const 7
local.tee $0
i32.const 8
i32.add
i32.const -8
i32.and
local.tee $2
local.tee $1
current_memory
local.tee $3
local.tee $2
i32.const 16
i32.shl
i32.gt_u
if
local.get $3
local.get $2
local.get $1
local.get $0
i32.sub
i32.const 65535
i32.add
@ -51,16 +39,16 @@
i32.and
i32.const 16
i32.shr_u
local.tee $0
local.tee $3
local.get $2
local.get $3
local.get $0
i32.gt_s
select
grow_memory
i32.const 0
i32.lt_s
if
local.get $0
local.get $3
grow_memory
i32.const 0
i32.lt_s
@ -69,19 +57,17 @@
end
end
end
local.get $2
global.set $~lib/allocator/arena/offset
local.get $1
global.set $~lib/allocator/arena/offset
local.get $0
)
(func $start (; 1 ;) (type $_)
i32.const 8
global.set $~lib/allocator/arena/startOffset
global.get $~lib/allocator/arena/startOffset
global.set $~lib/allocator/arena/offset
i32.const 0
call $~lib/allocator/arena/__memory_allocate
global.set $optional-typeparameters/tConcrete
i32.const 0
call $~lib/allocator/arena/__memory_allocate
global.set $optional-typeparameters/tDerived
)

View File

@ -1,7 +1,6 @@
(module
(type $_ (func))
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $iii_ (func (param i32 i32 i32)))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
@ -262,10 +261,13 @@
end
end
)
(func $~lib/internal/memory/memcpy (; 3 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/internal/memory/memcpy (; 3 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
i32.const 42
local.set $2
loop $continue|0
local.get $1
i32.const 3
@ -447,16 +449,13 @@
local.set $5
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.tee $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
@ -780,27 +779,12 @@
if
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -810,9 +794,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -822,9 +804,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -834,9 +814,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -846,9 +824,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -858,9 +834,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -870,9 +844,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -882,9 +854,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -894,9 +864,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -906,9 +874,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -918,9 +884,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -930,9 +894,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -942,9 +904,17 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $0
local.get $1
i32.const 1
i32.add
@ -976,27 +946,12 @@
if
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -1006,9 +961,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -1018,9 +971,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -1030,9 +981,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -1042,9 +991,17 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $0
local.get $1
i32.const 1
i32.add
@ -1076,16 +1033,13 @@
if
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.tee $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
@ -1094,9 +1048,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -1189,7 +1141,6 @@
if
local.get $0
local.get $1
i32.const 42
call $~lib/internal/memory/memcpy
return
end

View File

@ -2,7 +2,7 @@
(type $ii (func (param i32) (result i32)))
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $_ (func))
(type $FUNCSIG$iiiii (func (param i32 i32 i32 i32) (result i32)))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
@ -65,8 +65,11 @@
end
i32.load
)
(func $~lib/internal/string/compareUnsafe (; 3 ;) (type $FUNCSIG$iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(func $~lib/internal/string/compareUnsafe (; 3 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
i32.const 8
local.set $3
local.get $1
i32.const 1
i32.shl
@ -74,31 +77,31 @@
i32.add
local.set $1
loop $continue|0
local.get $3
local.get $2
if (result i32)
local.get $1
i32.load16_u offset=4
local.get $2
local.get $3
i32.load16_u offset=4
i32.sub
local.tee $4
i32.eqz
else
local.get $3
local.get $2
end
if
local.get $3
local.get $2
i32.const 1
i32.sub
local.set $3
local.set $2
local.get $1
i32.const 2
i32.add
local.set $1
local.get $2
local.get $3
i32.const 2
i32.add
local.set $2
local.set $3
br $continue|0
end
end
@ -139,7 +142,6 @@
end
local.get $0
local.get $2
i32.const 8
local.get $3
call $~lib/internal/string/compareUnsafe
i32.eqz

File diff suppressed because it is too large Load Diff

View File

@ -4,8 +4,6 @@
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $ii (func (param i32) (result i32)))
(type $iii_ (func (param i32 i32 i32)))
(type $iii (func (param i32 i32) (result i32)))
(type $iiiii (func (param i32 i32 i32 i32) (result i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
@ -1525,75 +1523,14 @@
local.get $2
call $~lib/arraybuffer/ArrayBuffer#slice
)
(func $~lib/internal/typedarray/TypedArray<u8>#constructor (; 8 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $1
i32.const 1073741816
i32.gt_u
if
i32.const 0
i32.const 160
i32.const 23
i32.const 34
call $~lib/env/abort
unreachable
end
local.get $1
(func $~lib/internal/typedarray/TypedArray<u8>#constructor (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
i32.const 1
call $~lib/internal/arraybuffer/allocateUnsafe
local.tee $2
i32.const 8
i32.add
local.get $1
call $~lib/internal/memory/memset
local.get $0
i32.eqz
if
i32.const 12
call $~lib/allocator/arena/__memory_allocate
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
local.get $2
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
local.get $1
i32.store offset=8
local.get $0
)
(func $~lib/internal/typedarray/TypedArray<i32>#constructor (; 9 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $1
i32.const 268435454
i32.gt_u
if
i32.const 0
i32.const 160
i32.const 23
i32.const 34
call $~lib/env/abort
unreachable
end
local.get $1
i32.const 2
i32.shl
local.tee $1
call $~lib/internal/arraybuffer/allocateUnsafe
local.tee $2
i32.const 8
i32.add
local.get $1
i32.const 1
call $~lib/internal/memory/memset
local.get $0
i32.eqz
@ -1612,41 +1549,67 @@
i32.const 0
i32.store offset=8
local.get $0
local.get $2
local.get $1
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
local.get $1
i32.const 1
i32.store offset=8
local.get $0
)
(func $~lib/dataview/DataView#constructor (; 10 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
local.get $3
i32.const -2147483648
i32.eq
(func $~lib/internal/typedarray/TypedArray<i32>#constructor (; 9 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
i32.const 4
call $~lib/internal/arraybuffer/allocateUnsafe
local.tee $1
i32.const 8
i32.add
i32.const 4
call $~lib/internal/memory/memset
local.get $0
i32.eqz
if
i32.const 12
call $~lib/allocator/arena/__memory_allocate
local.set $0
end
local.get $0
i32.const 0
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 0
i32.store offset=8
local.get $0
local.get $1
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
i32.const 4
i32.store offset=8
local.get $0
)
(func $~lib/dataview/DataView#constructor (; 10 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
block (result i32)
local.get $1
i32.load
local.get $2
i32.sub
local.set $3
i32.const -2147483648
i32.eq
if
local.get $0
i32.load
local.set $1
end
local.get $1
i32.const 1073741816
i32.gt_u
end
local.get $2
i32.const 1073741816
i32.gt_u
if
i32.const 0
i32.const 248
i32.const 14
i32.const 44
call $~lib/env/abort
unreachable
end
local.get $3
i32.const 1073741816
i32.gt_u
if
i32.const 0
i32.const 248
@ -1655,10 +1618,8 @@
call $~lib/env/abort
unreachable
end
local.get $2
local.get $3
i32.add
local.get $1
local.get $0
i32.load
i32.gt_s
if
@ -1669,47 +1630,22 @@
call $~lib/env/abort
unreachable
end
i32.const 12
call $~lib/allocator/arena/__memory_allocate
local.tee $2
local.get $0
i32.eqz
if
i32.const 12
call $~lib/allocator/arena/__memory_allocate
local.set $0
end
local.get $0
local.get $1
i32.store
local.get $0
local.get $2
i32.const 0
i32.store offset=4
local.get $0
local.get $3
i32.store offset=8
local.get $0
)
(func $~lib/dataview/DataView#constructor|trampoline (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
block $2of2
block $1of2
block $outOfRange
global.get $~lib/argc
i32.const 1
i32.sub
br_table $1of2 $1of2 $2of2 $outOfRange
end
unreachable
end
i32.const -2147483648
local.set $1
end
i32.const 0
local.get $0
i32.const 0
local.get $2
local.get $1
call $~lib/dataview/DataView#constructor
i32.store offset=8
local.get $2
)
(func $start:std/arraybuffer (; 12 ;) (type $_)
(func $start:std/arraybuffer (; 11 ;) (type $_)
(local $0 i32)
(local $1 i32)
i32.const 288
global.set $~lib/allocator/arena/startOffset
global.get $~lib/allocator/arena/startOffset
@ -1907,7 +1843,6 @@
end
i32.const 12
call $~lib/allocator/arena/__memory_allocate
i32.const 1
call $~lib/internal/typedarray/TypedArray<u8>#constructor
global.set $std/arraybuffer/arr8
i32.const 1
@ -1927,7 +1862,6 @@
i32.const 0
i32.const 12
call $~lib/allocator/arena/__memory_allocate
i32.const 1
call $~lib/internal/typedarray/TypedArray<i32>#constructor
i32.eqz
br_if $__inlined_func$~lib/arraybuffer/ArrayBuffer.isView<Uint8Array>5
@ -1946,10 +1880,28 @@
i32.const 1
global.set $~lib/argc
block $__inlined_func$~lib/arraybuffer/ArrayBuffer.isView<Uint8Array>6 (result i32)
i32.const 0
global.get $std/arraybuffer/arr8
i32.load
call $~lib/dataview/DataView#constructor|trampoline
local.set $1
i32.const 0
local.set $0
block $2of2
block $1of2
block $outOfRange
global.get $~lib/argc
i32.const 1
i32.sub
br_table $1of2 $1of2 $2of2 $outOfRange
end
unreachable
end
i32.const -2147483648
local.set $0
end
i32.const 0
local.get $1
local.get $0
call $~lib/dataview/DataView#constructor
i32.eqz
br_if $__inlined_func$~lib/arraybuffer/ArrayBuffer.isView<Uint8Array>6
drop
@ -1965,10 +1917,10 @@
unreachable
end
)
(func $start (; 13 ;) (type $_)
(func $start (; 12 ;) (type $_)
call $start:std/arraybuffer
)
(func $null (; 14 ;) (type $_)
(func $null (; 13 ;) (type $_)
nop
)
)

View File

@ -7,12 +7,14 @@
(type $iiif (func (param i32 i32 i32) (result f32)))
(type $II (func (param i64) (result i64)))
(type $iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$dii (func (param i32 i32) (result f64)))
(type $FUNCSIG$jii (func (param i32 i32) (result i64)))
(type $FUNCSIG$vifi (func (param i32 f32 i32)))
(type $FUNCSIG$vidi (func (param i32 f64 i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
(type $FUNCSIG$viji (func (param i32 i64 i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
@ -92,271 +94,60 @@
global.set $~lib/allocator/arena/offset
local.get $1
)
(func $~lib/internal/arraybuffer/allocateUnsafe (; 2 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/internal/memory/memset (; 2 ;) (type $FUNCSIG$vi) (param $0 i32)
(local $1 i32)
local.get $0
i32.const 1073741816
i32.gt_u
if
i32.const 0
i32.const 72
i32.const 26
i32.const 2
call $~lib/env/abort
unreachable
end
i32.const 1
i32.const 32
i32.const 0
i32.store8
local.get $0
i32.const 7
i32.const 8
i32.add
i32.clz
local.tee $1
i32.const 1
i32.sub
i32.shl
i32.const 0
i32.store8
local.get $0
i32.const 1
i32.add
i32.const 0
i32.store8
local.get $0
i32.const 2
i32.add
i32.const 0
i32.store8
local.get $1
i32.const 2
i32.sub
i32.const 0
i32.store8
local.get $1
i32.const 3
i32.sub
i32.const 0
i32.store8
local.get $0
i32.const 3
i32.add
i32.const 0
i32.store8
local.get $1
i32.const 4
i32.sub
i32.const 0
i32.store8
)
(func $~lib/internal/typedarray/TypedArray<u8>#constructor (; 3 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
i32.const 16
call $~lib/allocator/arena/__memory_allocate
local.tee $1
local.get $0
i32.store
local.get $1
)
(func $~lib/internal/memory/memset (; 3 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $1
i32.eqz
if
return
end
local.get $0
i32.const 0
i32.store8
local.get $0
local.get $1
i32.add
i32.const 1
i32.sub
i32.const 0
i32.store8
local.get $1
i32.const 2
i32.le_u
if
return
end
local.get $0
i32.const 1
i32.add
i32.const 0
i32.store8
local.get $0
i32.const 2
i32.add
i32.const 0
i32.store8
local.get $0
local.get $1
i32.add
local.tee $2
i32.const 2
i32.sub
i32.const 0
i32.store8
local.get $2
i32.const 3
i32.sub
i32.const 0
i32.store8
local.get $1
i32.const 6
i32.le_u
if
return
end
local.get $0
i32.const 3
i32.add
i32.const 0
i32.store8
local.get $0
local.get $1
i32.add
i32.const 4
i32.sub
i32.const 0
i32.store8
local.get $1
i32.const 8
i32.le_u
if
return
end
i32.const 0
local.get $0
i32.sub
i32.const 3
i32.and
local.tee $2
local.get $0
i32.add
local.tee $0
i32.const 0
i32.store
local.get $1
local.get $2
i32.sub
i32.const -4
i32.and
local.tee $1
local.get $0
i32.add
i32.const 4
i32.sub
i32.const 0
i32.store
local.get $1
i32.const 8
i32.le_u
if
return
end
local.get $0
i32.const 4
i32.add
i32.const 0
i32.store
local.get $0
i32.const 8
i32.add
i32.const 0
i32.store
local.get $0
local.get $1
i32.add
local.tee $2
i32.const 12
i32.sub
i32.const 0
i32.store
local.get $2
i32.const 8
i32.sub
i32.const 0
i32.store
local.get $1
i32.const 24
i32.le_u
if
return
end
local.get $0
i32.const 12
i32.add
i32.const 0
i32.store
local.get $0
i32.const 16
i32.add
i32.const 0
i32.store
local.get $0
i32.const 20
i32.add
i32.const 0
i32.store
local.get $0
i32.const 24
i32.add
i32.const 0
i32.store
local.get $0
local.get $1
i32.add
local.tee $2
i32.const 28
i32.sub
i32.const 0
i32.store
local.get $2
i32.const 24
i32.sub
i32.const 0
i32.store
local.get $2
i32.const 20
i32.sub
i32.const 0
i32.store
local.get $2
i32.const 16
i32.sub
i32.const 0
i32.store
local.get $0
i32.const 4
i32.and
i32.const 24
i32.add
local.tee $2
local.get $0
i32.add
local.set $0
local.get $1
local.get $2
i32.sub
local.set $1
loop $continue|0
local.get $1
i32.const 32
i32.ge_u
if
local.get $0
i64.const 0
i64.store
local.get $0
i32.const 8
i32.add
i64.const 0
i64.store
local.get $0
i32.const 16
i32.add
i64.const 0
i64.store
local.get $0
i32.const 24
i32.add
i64.const 0
i64.store
local.get $1
i32.const 32
i32.sub
local.set $1
local.get $0
i32.const 32
i32.add
local.set $0
br $continue|0
end
end
)
(func $~lib/internal/typedarray/TypedArray<u8>#constructor (; 4 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $1
i32.const 1073741816
i32.gt_u
if
i32.const 0
i32.const 8
i32.const 23
i32.const 34
call $~lib/env/abort
unreachable
end
local.get $1
call $~lib/internal/arraybuffer/allocateUnsafe
local.tee $2
i32.const 8
i32.add
local.get $1
call $~lib/internal/memory/memset
local.get $0
i32.eqz
@ -375,17 +166,17 @@
i32.const 0
i32.store offset=8
local.get $0
local.get $2
local.get $1
i32.store
local.get $0
i32.const 0
i32.store offset=4
local.get $0
local.get $1
i32.const 8
i32.store offset=8
local.get $0
)
(func $~lib/internal/typedarray/TypedArray<u8>#__set (; 5 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/internal/typedarray/TypedArray<u8>#__set (; 4 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
local.get $1
local.get $0
i32.load offset=8
@ -408,7 +199,7 @@
local.get $2
i32.store8 offset=8
)
(func $~lib/dataview/DataView#constructor (; 6 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/dataview/DataView#constructor (; 5 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
local.get $2
i32.const -2147483648
@ -469,7 +260,7 @@
i32.store offset=8
local.get $3
)
(func $~lib/dataview/DataView#getFloat32 (; 7 ;) (type $iiif) (param $0 i32) (param $1 i32) (param $2 i32) (result f32)
(func $~lib/dataview/DataView#getFloat32 (; 6 ;) (type $iiif) (param $0 i32) (param $1 i32) (param $2 i32) (result f32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -530,7 +321,7 @@
f32.reinterpret_i32
end
)
(func $~lib/polyfills/bswap<u64> (; 8 ;) (type $II) (param $0 i64) (result i64)
(func $~lib/polyfills/bswap<u64> (; 7 ;) (type $II) (param $0 i64) (result i64)
(local $1 i64)
local.get $0
i64.const 8
@ -557,7 +348,7 @@
i64.const 32
i64.rotr
)
(func $~lib/dataview/DataView#getFloat64 (; 9 ;) (type $FUNCSIG$dii) (param $0 i32) (param $1 i32) (result f64)
(func $~lib/dataview/DataView#getFloat64 (; 8 ;) (type $FUNCSIG$dii) (param $0 i32) (param $1 i32) (result f64)
i32.const 8
local.get $0
i32.load offset=8
@ -589,7 +380,7 @@
f64.reinterpret_i64
end
)
(func $~lib/dataview/DataView#getInt8 (; 10 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/dataview/DataView#getInt8 (; 9 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -627,7 +418,7 @@
i32.add
i32.load8_s offset=8
)
(func $~lib/dataview/DataView#getInt16 (; 11 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/dataview/DataView#getInt16 (; 10 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -681,7 +472,7 @@
i32.or
end
)
(func $~lib/dataview/DataView#getInt32 (; 12 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/dataview/DataView#getInt32 (; 11 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -735,7 +526,7 @@
i32.or
end
)
(func $~lib/dataview/DataView#getInt64 (; 13 ;) (type $FUNCSIG$jii) (param $0 i32) (param $1 i32) (result i64)
(func $~lib/dataview/DataView#getInt64 (; 12 ;) (type $FUNCSIG$jii) (param $0 i32) (param $1 i32) (result i64)
(local $2 i64)
i32.const 8
local.get $0
@ -764,7 +555,7 @@
call $~lib/polyfills/bswap<u64>
end
)
(func $~lib/dataview/DataView#getUint8 (; 14 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/dataview/DataView#getUint8 (; 13 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -802,7 +593,7 @@
i32.add
i32.load8_u offset=8
)
(func $~lib/dataview/DataView#getUint16 (; 15 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/dataview/DataView#getUint16 (; 14 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -854,7 +645,7 @@
i32.or
end
)
(func $~lib/dataview/DataView#setFloat32 (; 16 ;) (type $FUNCSIG$vifi) (param $0 i32) (param $1 f32) (param $2 i32)
(func $~lib/dataview/DataView#setFloat32 (; 15 ;) (type $FUNCSIG$vifi) (param $0 i32) (param $1 f32) (param $2 i32)
(local $3 i32)
i32.const 4
local.get $0
@ -899,7 +690,7 @@
i32.store offset=8
end
)
(func $~lib/dataview/DataView#setFloat64 (; 17 ;) (type $FUNCSIG$vidi) (param $0 i32) (param $1 f64) (param $2 i32)
(func $~lib/dataview/DataView#setFloat64 (; 16 ;) (type $FUNCSIG$vidi) (param $0 i32) (param $1 f64) (param $2 i32)
i32.const 8
local.get $0
i32.load offset=8
@ -933,7 +724,7 @@
i64.store offset=8
end
)
(func $~lib/dataview/DataView#setInt8 (; 18 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/dataview/DataView#setInt8 (; 17 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
i32.const 1
local.get $0
i32.load offset=8
@ -954,7 +745,7 @@
local.get $1
i32.store8 offset=8
)
(func $~lib/dataview/DataView#setInt16 (; 19 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/dataview/DataView#setInt16 (; 18 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
i32.const 2
local.get $0
i32.load offset=8
@ -993,7 +784,7 @@
local.get $1
i32.store16 offset=8
)
(func $~lib/dataview/DataView#setInt32 (; 20 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/dataview/DataView#setInt32 (; 19 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
i32.const 4
local.get $0
i32.load offset=8
@ -1032,7 +823,7 @@
local.get $1
i32.store offset=8
)
(func $~lib/dataview/DataView#setInt64 (; 21 ;) (type $FUNCSIG$viji) (param $0 i32) (param $1 i64) (param $2 i32)
(func $~lib/dataview/DataView#setInt64 (; 20 ;) (type $FUNCSIG$viji) (param $0 i32) (param $1 i64) (param $2 i32)
i32.const 8
local.get $0
i32.load offset=8
@ -1059,7 +850,7 @@
end
i64.store offset=8
)
(func $~lib/dataview/DataView#setUint16 (; 22 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/dataview/DataView#setUint16 (; 21 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
i32.const 2
local.get $0
i32.load offset=8
@ -1096,7 +887,7 @@
local.get $1
i32.store16 offset=8
)
(func $start:std/dataview (; 23 ;) (type $_)
(func $start:std/dataview (; 22 ;) (type $_)
(local $0 i32)
i32.const 216
global.set $~lib/allocator/arena/startOffset
@ -1104,7 +895,6 @@
global.set $~lib/allocator/arena/offset
i32.const 12
call $~lib/allocator/arena/__memory_allocate
i32.const 8
call $~lib/internal/typedarray/TypedArray<u8>#constructor
global.set $std/dataview/array
global.get $std/dataview/array
@ -2625,10 +2415,10 @@
unreachable
end
)
(func $start (; 24 ;) (type $_)
(func $start (; 23 ;) (type $_)
call $start:std/dataview
)
(func $null (; 25 ;) (type $_)
(func $null (; 24 ;) (type $_)
nop
)
)

View File

@ -3,7 +3,7 @@
(type $iiiiiiFF (func (param i32 i32 i32 i32 i32 i32 f64) (result f64)))
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $F (func (result f64)))
(type $ii (func (param i32) (result i32)))
(type $FUNCSIG$i (func (result i32)))
(import "Date" "UTC" (func $~lib/bindings/Date/UTC (param i32 i32 i32 i32 i32 i32 f64) (result f64)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(import "Date" "now" (func $~lib/bindings/Date/now (result f64)))
@ -18,39 +18,27 @@
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $~lib/allocator/arena/__memory_allocate (; 3 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/allocator/arena/__memory_allocate (; 3 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
i32.const 1073741824
i32.gt_u
if
unreachable
end
global.get $~lib/allocator/arena/offset
local.tee $1
local.get $0
i32.const 1
local.get $0
i32.const 1
i32.gt_u
select
i32.add
i32.const 7
local.tee $0
i32.const 15
i32.add
i32.const -8
i32.and
local.tee $2
local.tee $1
current_memory
local.tee $3
local.tee $2
i32.const 16
i32.shl
i32.gt_u
if
local.get $3
local.get $2
local.get $1
local.get $0
i32.sub
i32.const 65535
i32.add
@ -58,16 +46,16 @@
i32.and
i32.const 16
i32.shr_u
local.tee $0
local.tee $3
local.get $2
local.get $3
local.get $0
i32.gt_s
select
grow_memory
i32.const 0
i32.lt_s
if
local.get $0
local.get $3
grow_memory
i32.const 0
i32.lt_s
@ -76,9 +64,9 @@
end
end
end
local.get $2
global.set $~lib/allocator/arena/offset
local.get $1
global.set $~lib/allocator/arena/offset
local.get $0
)
(func $start:std/date (; 4 ;) (type $_)
(local $0 i32)
@ -160,7 +148,6 @@
end
global.get $std/date/creationTime
local.set $1
i32.const 8
call $~lib/allocator/arena/__memory_allocate
local.tee $0
i64.const 0

View File

@ -20,6 +20,9 @@
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$vij (func (param i32 i64)))
(type $FUNCSIG$vif (func (param i32 f32)))
(type $FUNCSIG$vid (func (param i32 f64)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\13\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
@ -710,7 +713,7 @@
unreachable
end
)
(func $~lib/map/Map<i8,i32>#delete (; 12 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/map/Map<i8,i32>#delete (; 12 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -727,7 +730,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -759,7 +761,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -769,15 +771,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/map/Map<i8,i32>#rehash
end
i32.const 1
)
(func $std/map/test<i8,i32> (; 13 ;) (type $_)
(local $0 i32)
@ -1003,7 +1004,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i8,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i8,i32>#has
@ -1079,7 +1079,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i8,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i8,i32>#has
@ -1367,7 +1366,7 @@
unreachable
end
)
(func $~lib/map/Map<u8,i32>#delete (; 18 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/map/Map<u8,i32>#delete (; 18 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -1382,7 +1381,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -1414,7 +1412,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -1424,15 +1422,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/map/Map<u8,i32>#rehash
end
i32.const 1
)
(func $std/map/test<u8,i32> (; 19 ;) (type $_)
(local $0 i32)
@ -1646,7 +1643,6 @@
local.get $1
local.get $0
call $~lib/map/Map<u8,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<u8,i32>#has
@ -1720,7 +1716,6 @@
local.get $1
local.get $0
call $~lib/map/Map<u8,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<u8,i32>#has
@ -2096,7 +2091,7 @@
unreachable
end
)
(func $~lib/map/Map<i16,i32>#delete (; 25 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/map/Map<i16,i32>#delete (; 25 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -2122,7 +2117,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -2154,7 +2148,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -2164,15 +2158,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/map/Map<i16,i32>#rehash
end
i32.const 1
)
(func $std/map/test<i16,i32> (; 26 ;) (type $_)
(local $0 i32)
@ -2398,7 +2391,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i16,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i16,i32>#has
@ -2474,7 +2466,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i16,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i16,i32>#has
@ -2799,7 +2790,7 @@
unreachable
end
)
(func $~lib/map/Map<u16,i32>#delete (; 31 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/map/Map<u16,i32>#delete (; 31 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -2823,7 +2814,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -2855,7 +2845,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -2865,15 +2855,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/map/Map<u16,i32>#rehash
end
i32.const 1
)
(func $std/map/test<u16,i32> (; 32 ;) (type $_)
(local $0 i32)
@ -3087,7 +3076,6 @@
local.get $1
local.get $0
call $~lib/map/Map<u16,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<u16,i32>#has
@ -3161,7 +3149,6 @@
local.get $1
local.get $0
call $~lib/map/Map<u16,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<u16,i32>#has
@ -3503,7 +3490,7 @@
unreachable
end
)
(func $~lib/map/Map<i32,i32>#delete (; 39 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/map/Map<i32,i32>#delete (; 39 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -3513,7 +3500,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -3545,7 +3531,7 @@
select
i32.ge_u
local.tee $1
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -3555,15 +3541,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $1
else
local.get $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/map/Map<i32,i32>#rehash
end
i32.const 1
)
(func $std/map/test<i32,i32> (; 40 ;) (type $_)
(local $0 i32)
@ -3765,7 +3750,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#has
@ -3837,7 +3821,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#has
@ -4083,7 +4066,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#has
@ -4155,7 +4137,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i32,i32>#has
@ -4582,7 +4563,7 @@
unreachable
end
)
(func $~lib/map/Map<i64,i32>#delete (; 50 ;) (type $iIi) (param $0 i32) (param $1 i64) (result i32)
(func $~lib/map/Map<i64,i32>#delete (; 50 ;) (type $FUNCSIG$vij) (param $0 i32) (param $1 i64)
(local $2 i32)
(local $3 i32)
local.get $0
@ -4593,7 +4574,6 @@
local.tee $2
i32.eqz
if
i32.const 0
return
end
local.get $2
@ -4625,7 +4605,7 @@
select
i32.ge_u
local.tee $2
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -4635,15 +4615,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $2
else
local.get $2
end
local.get $2
if
local.get $0
local.get $3
call $~lib/map/Map<i64,i32>#rehash
end
i32.const 1
)
(func $std/map/test<i64,i32> (; 51 ;) (type $_)
(local $0 i64)
@ -4851,7 +4830,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#has
@ -4924,7 +4902,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#has
@ -5176,7 +5153,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#has
@ -5249,7 +5225,6 @@
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<i64,i32>#has
@ -5564,7 +5539,7 @@
unreachable
end
)
(func $~lib/map/Map<f32,i32>#delete (; 58 ;) (type $ifi) (param $0 i32) (param $1 f32) (result i32)
(func $~lib/map/Map<f32,i32>#delete (; 58 ;) (type $FUNCSIG$vif) (param $0 i32) (param $1 f32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -5576,7 +5551,6 @@
local.tee $2
i32.eqz
if
i32.const 0
return
end
local.get $2
@ -5608,7 +5582,7 @@
select
i32.ge_u
local.tee $2
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -5618,15 +5592,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $2
else
local.get $2
end
local.get $2
if
local.get $0
local.get $3
call $~lib/map/Map<f32,i32>#rehash
end
i32.const 1
)
(func $std/map/test<f32,i32> (; 59 ;) (type $_)
(local $0 f32)
@ -5834,7 +5807,6 @@
local.get $1
local.get $0
call $~lib/map/Map<f32,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<f32,i32>#has
@ -5907,7 +5879,6 @@
local.get $1
local.get $0
call $~lib/map/Map<f32,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<f32,i32>#has
@ -6222,7 +6193,7 @@
unreachable
end
)
(func $~lib/map/Map<f64,i32>#delete (; 65 ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
(func $~lib/map/Map<f64,i32>#delete (; 65 ;) (type $FUNCSIG$vid) (param $0 i32) (param $1 f64)
(local $2 i32)
(local $3 i32)
local.get $0
@ -6234,7 +6205,6 @@
local.tee $2
i32.eqz
if
i32.const 0
return
end
local.get $2
@ -6266,7 +6236,7 @@
select
i32.ge_u
local.tee $2
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -6276,15 +6246,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $2
else
local.get $2
end
local.get $2
if
local.get $0
local.get $3
call $~lib/map/Map<f64,i32>#rehash
end
i32.const 1
)
(func $std/map/test<f64,i32> (; 66 ;) (type $_)
(local $0 f64)
@ -6492,7 +6461,6 @@
local.get $1
local.get $0
call $~lib/map/Map<f64,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<f64,i32>#has
@ -6565,7 +6533,6 @@
local.get $1
local.get $0
call $~lib/map/Map<f64,i32>#delete
drop
local.get $1
local.get $0
call $~lib/map/Map<f64,i32>#has

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,5 @@
(module
(type $_ (func))
(type $ii (func (param i32) (result i32)))
(type $FUNCSIG$i (func (result i32)))
(memory $0 0)
(table $0 1 funcref)
@ -11,39 +10,27 @@
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $~lib/allocator/arena/__memory_allocate (; 0 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/allocator/arena/__memory_allocate (; 0 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
i32.const 1073741824
i32.gt_u
if
unreachable
end
global.get $~lib/allocator/arena/offset
local.tee $1
local.get $0
i32.const 1
local.get $0
i32.const 1
i32.gt_u
select
i32.add
i32.const 7
local.tee $0
i32.const 15
i32.add
i32.const -8
i32.and
local.tee $2
local.tee $1
current_memory
local.tee $3
local.tee $2
i32.const 16
i32.shl
i32.gt_u
if
local.get $3
local.get $2
local.get $1
local.get $0
i32.sub
i32.const 65535
i32.add
@ -51,16 +38,16 @@
i32.and
i32.const 16
i32.shr_u
local.tee $0
local.tee $3
local.get $2
local.get $3
local.get $0
i32.gt_s
select
grow_memory
i32.const 0
i32.lt_s
if
local.get $0
local.get $3
grow_memory
i32.const 0
i32.lt_s
@ -69,13 +56,12 @@
end
end
end
local.get $2
global.set $~lib/allocator/arena/offset
local.get $1
global.set $~lib/allocator/arena/offset
local.get $0
)
(func $std/new/AClass#constructor (; 1 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
i32.const 8
call $~lib/allocator/arena/__memory_allocate
local.tee $0
i32.const 1

View File

@ -1,10 +1,10 @@
(module
(type $_ (func))
(type $ii (func (param i32) (result i32)))
(type $iii (func (param i32 i32) (result i32)))
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $FFF (func (param f64 f64) (result f64)))
(type $FiF (func (param f64 i32) (result f64)))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
@ -82,39 +82,27 @@
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $FUNCSIG$i) (result i32)
(local $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
local.get $0
i32.const 1073741824
i32.gt_u
if
unreachable
end
global.get $~lib/allocator/arena/offset
local.tee $1
local.get $0
i32.const 1
local.get $0
i32.const 1
i32.gt_u
select
i32.add
i32.const 7
local.tee $0
i32.const 15
i32.add
i32.const -8
i32.and
local.tee $2
local.tee $1
current_memory
local.tee $3
local.tee $2
i32.const 16
i32.shl
i32.gt_u
if
local.get $3
local.get $2
local.get $1
local.get $0
i32.sub
i32.const 65535
i32.add
@ -122,16 +110,16 @@
i32.and
i32.const 16
i32.shr_u
local.tee $0
local.tee $3
local.get $2
local.get $3
local.get $0
i32.gt_s
select
grow_memory
i32.const 0
i32.lt_s
if
local.get $0
local.get $3
grow_memory
i32.const 0
i32.lt_s
@ -140,13 +128,12 @@
end
end
end
local.get $2
global.set $~lib/allocator/arena/offset
local.get $1
global.set $~lib/allocator/arena/offset
local.get $0
)
(func $std/operator-overloading/Tester#constructor (; 2 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
i32.const 8
call $~lib/allocator/arena/__memory_allocate
local.tee $2
local.get $0

View File

@ -1,6 +1,5 @@
(module
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $iii_ (func (param i32 i32 i32)))
(type $_ (func))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
@ -62,10 +61,13 @@
i32.const 0
i32.store8
)
(func $~lib/internal/memory/memcpy (; 2 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/internal/memory/memcpy (; 2 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
i32.const 8
local.set $2
loop $continue|0
local.get $1
i32.const 3
@ -247,16 +249,13 @@
local.set $5
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.tee $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
@ -580,27 +579,12 @@
if
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -610,9 +594,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -622,9 +604,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -634,9 +614,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -646,9 +624,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -658,9 +634,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -670,9 +644,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -682,9 +654,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -694,9 +664,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -706,9 +674,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -718,9 +684,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -730,9 +694,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -742,9 +704,17 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $0
local.get $1
i32.const 1
i32.add
@ -776,27 +746,12 @@
if
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -806,9 +761,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -818,9 +771,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -830,9 +781,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -842,9 +791,17 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
local.tee $1
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $0
local.get $1
i32.const 1
i32.add
@ -876,16 +833,13 @@
if
local.get $0
local.get $1
local.tee $3
i32.load8_u
i32.store8
local.get $0
i32.const 1
i32.add
local.tee $1
local.set $0
local.tee $0
local.get $1
local.get $3
i32.const 1
i32.add
local.tee $1
@ -894,9 +848,7 @@
local.get $0
i32.const 1
i32.add
local.tee $3
local.set $0
local.get $3
local.tee $0
local.get $1
i32.const 1
i32.add
@ -989,7 +941,6 @@
if
local.get $0
local.get $1
i32.const 8
call $~lib/internal/memory/memcpy
return
end

View File

@ -21,6 +21,9 @@
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$vij (func (param i32 i64)))
(type $FUNCSIG$vif (func (param i32 f32)))
(type $FUNCSIG$vid (func (param i32 f64)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\13\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
@ -679,7 +682,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<i8>#delete (; 11 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<i8>#delete (; 11 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -696,7 +699,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -728,7 +730,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -738,15 +740,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/set/Set<i8>#rehash
end
i32.const 1
)
(func $std/set/test<i8> (; 12 ;) (type $_)
(local $0 i32)
@ -880,7 +881,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i8>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i8>#has
@ -949,7 +949,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i8>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i8>#has
@ -1207,7 +1206,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<u8>#delete (; 16 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<u8>#delete (; 16 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -1222,7 +1221,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -1254,7 +1252,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -1264,15 +1262,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/set/Set<u8>#rehash
end
i32.const 1
)
(func $std/set/test<u8> (; 17 ;) (type $_)
(local $0 i32)
@ -1406,7 +1403,6 @@
local.get $1
local.get $0
call $~lib/set/Set<u8>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<u8>#has
@ -1475,7 +1471,6 @@
local.get $1
local.get $0
call $~lib/set/Set<u8>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<u8>#has
@ -1810,7 +1805,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<i16>#delete (; 22 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<i16>#delete (; 22 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -1836,7 +1831,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -1868,7 +1862,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -1878,15 +1872,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/set/Set<i16>#rehash
end
i32.const 1
)
(func $std/set/test<i16> (; 23 ;) (type $_)
(local $0 i32)
@ -2020,7 +2013,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i16>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i16>#has
@ -2089,7 +2081,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i16>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i16>#has
@ -2375,7 +2366,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<u16>#delete (; 27 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<u16>#delete (; 27 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -2399,7 +2390,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -2431,7 +2421,7 @@
select
i32.ge_u
local.tee $1
if (result i32)
if
local.get $0
i32.load offset=20
local.get $0
@ -2441,15 +2431,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
else
local.get $1
local.set $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/set/Set<u16>#rehash
end
i32.const 1
)
(func $std/set/test<u16> (; 28 ;) (type $_)
(local $0 i32)
@ -2583,7 +2572,6 @@
local.get $1
local.get $0
call $~lib/set/Set<u16>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<u16>#has
@ -2652,7 +2640,6 @@
local.get $1
local.get $0
call $~lib/set/Set<u16>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<u16>#has
@ -2971,7 +2958,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<i32>#delete (; 34 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/set/Set<i32>#delete (; 34 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $0
local.get $1
@ -2981,7 +2968,6 @@
local.tee $1
i32.eqz
if
i32.const 0
return
end
local.get $1
@ -3013,7 +2999,7 @@
select
i32.ge_u
local.tee $1
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -3023,15 +3009,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $1
else
local.get $1
end
local.get $1
if
local.get $0
local.get $2
call $~lib/set/Set<i32>#rehash
end
i32.const 1
)
(func $std/set/test<i32> (; 35 ;) (type $_)
(local $0 i32)
@ -3165,7 +3150,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i32>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
@ -3234,7 +3218,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i32>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
@ -3412,7 +3395,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i32>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
@ -3481,7 +3463,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i32>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i32>#has
@ -3885,7 +3866,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<i64>#delete (; 44 ;) (type $iIi) (param $0 i32) (param $1 i64) (result i32)
(func $~lib/set/Set<i64>#delete (; 44 ;) (type $FUNCSIG$vij) (param $0 i32) (param $1 i64)
(local $2 i32)
(local $3 i32)
local.get $0
@ -3896,7 +3877,6 @@
local.tee $2
i32.eqz
if
i32.const 0
return
end
local.get $2
@ -3928,7 +3908,7 @@
select
i32.ge_u
local.tee $2
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -3938,15 +3918,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $2
else
local.get $2
end
local.get $2
if
local.get $0
local.get $3
call $~lib/set/Set<i64>#rehash
end
i32.const 1
)
(func $std/set/test<i64> (; 45 ;) (type $_)
(local $0 i64)
@ -4080,7 +4059,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i64>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i64>#has
@ -4149,7 +4127,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i64>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i64>#has
@ -4327,7 +4304,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i64>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i64>#has
@ -4396,7 +4372,6 @@
local.get $1
local.get $0
call $~lib/set/Set<i64>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<i64>#has
@ -4688,7 +4663,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<f32>#delete (; 52 ;) (type $ifi) (param $0 i32) (param $1 f32) (result i32)
(func $~lib/set/Set<f32>#delete (; 52 ;) (type $FUNCSIG$vif) (param $0 i32) (param $1 f32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -4700,7 +4675,6 @@
local.tee $2
i32.eqz
if
i32.const 0
return
end
local.get $2
@ -4732,7 +4706,7 @@
select
i32.ge_u
local.tee $2
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -4742,15 +4716,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $2
else
local.get $2
end
local.get $2
if
local.get $0
local.get $3
call $~lib/set/Set<f32>#rehash
end
i32.const 1
)
(func $std/set/test<f32> (; 53 ;) (type $_)
(local $0 f32)
@ -4884,7 +4857,6 @@
local.get $1
local.get $0
call $~lib/set/Set<f32>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<f32>#has
@ -4953,7 +4925,6 @@
local.get $1
local.get $0
call $~lib/set/Set<f32>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<f32>#has
@ -5245,7 +5216,7 @@
i32.store offset=8
end
)
(func $~lib/set/Set<f64>#delete (; 59 ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
(func $~lib/set/Set<f64>#delete (; 59 ;) (type $FUNCSIG$vid) (param $0 i32) (param $1 f64)
(local $2 i32)
(local $3 i32)
local.get $0
@ -5257,7 +5228,6 @@
local.tee $2
i32.eqz
if
i32.const 0
return
end
local.get $2
@ -5289,7 +5259,7 @@
select
i32.ge_u
local.tee $2
if
if (result i32)
local.get $0
i32.load offset=20
local.get $0
@ -5299,15 +5269,14 @@
f64.mul
i32.trunc_f64_s
i32.lt_s
local.set $2
else
local.get $2
end
local.get $2
if
local.get $0
local.get $3
call $~lib/set/Set<f64>#rehash
end
i32.const 1
)
(func $std/set/test<f64> (; 60 ;) (type $_)
(local $0 f64)
@ -5441,7 +5410,6 @@
local.get $1
local.get $0
call $~lib/set/Set<f64>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<f64>#has
@ -5510,7 +5478,6 @@
local.get $1
local.get $0
call $~lib/set/Set<f64>#delete
drop
local.get $1
local.get $0
call $~lib/set/Set<f64>#has

View File

@ -6,7 +6,6 @@
(type $iiii (func (param i32 i32 i32) (result i32)))
(type $iii_ (func (param i32 i32 i32)))
(type $iiiii_ (func (param i32 i32 i32 i32 i32)))
(type $iiF (func (param i32 i32) (result f64)))
(type $iF (func (param i32) (result f64)))
(type $Ii (func (param i64) (result i32)))
(type $iIi_ (func (param i32 i64 i32)))
@ -493,8 +492,8 @@
call $~lib/internal/string/compareUnsafe
i32.eqz
)
(func $~lib/string/String#endsWith (; 9 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(func $~lib/string/String#endsWith (; 9 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
local.get $0
i32.eqz
if
@ -506,30 +505,24 @@
unreachable
end
local.get $1
i32.eqz
if
i32.const 0
return
end
local.get $2
i32.const 0
local.get $2
local.get $1
i32.const 0
i32.gt_s
select
local.tee $2
local.tee $1
local.get $0
i32.load
local.tee $3
local.tee $2
local.get $1
local.get $2
local.get $3
i32.lt_s
select
local.get $1
i32.const 216
i32.load
local.tee $2
local.tee $1
i32.sub
local.tee $3
local.tee $2
i32.const 0
i32.lt_s
if
@ -537,9 +530,9 @@
return
end
local.get $0
local.get $3
local.get $1
local.get $2
i32.const 216
local.get $1
call $~lib/internal/string/compareUnsafe
i32.eqz
)
@ -2258,7 +2251,8 @@
local.get $2
call $~lib/string/String#lastIndexOf
)
(func $~lib/internal/string/parse<f64> (; 21 ;) (type $iiF) (param $0 i32) (param $1 i32) (result f64)
(func $~lib/internal/string/parse<f64> (; 21 ;) (type $FUNCSIG$di) (param $0 i32) (result f64)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -2266,242 +2260,222 @@
(local $6 f64)
local.get $0
i32.load
local.tee $4
local.tee $3
i32.eqz
if
f64.const nan:0x8000000000000
return
end
local.get $0
local.tee $3
i32.load16_u offset=4
local.tee $2
i32.load16_u offset=4
local.tee $1
i32.const 45
i32.eq
if (result f64)
local.get $4
local.get $3
i32.const 1
i32.sub
local.tee $4
local.tee $3
i32.eqz
if
f64.const nan:0x8000000000000
return
end
local.get $3
local.get $2
i32.const 2
i32.add
local.tee $3
local.tee $2
i32.load16_u offset=4
local.set $2
local.set $1
f64.const -1
else
local.get $2
local.get $1
i32.const 43
i32.eq
if
local.get $4
local.get $3
i32.const 1
i32.sub
local.tee $4
local.tee $3
i32.eqz
if
f64.const nan:0x8000000000000
return
end
local.get $3
local.get $2
i32.const 2
i32.add
local.tee $3
local.tee $2
i32.load16_u offset=4
local.set $2
local.set $1
end
f64.const 1
end
local.set $6
local.get $1
if
local.get $1
i32.const 48
i32.eq
local.tee $0
if (result i32)
local.get $3
i32.const 2
i32.lt_s
local.tee $0
i32.eqz
if
local.get $1
i32.const 36
i32.gt_s
local.set $0
end
local.get $0
if
f64.const nan:0x8000000000000
return
end
i32.gt_s
else
local.get $2
i32.const 48
i32.eq
local.tee $0
if
local.get $4
i32.const 2
i32.gt_s
local.set $0
end
local.get $0
if (result i32)
block $break|0 (result i32)
block $case6|0
block $case5|0
block $case3|0
block $case1|0
local.get $3
i32.const 2
i32.add
i32.load16_u offset=4
local.tee $0
i32.const 66
i32.eq
br_if $case1|0
local.get $0
i32.const 98
i32.eq
br_if $case1|0
local.get $0
i32.const 79
i32.eq
br_if $case3|0
local.get $0
i32.const 111
i32.eq
br_if $case3|0
local.get $0
i32.const 88
i32.eq
br_if $case5|0
local.get $0
i32.const 120
i32.eq
br_if $case5|0
br $case6|0
end
local.get $3
i32.const 4
end
if (result i32)
block $break|0 (result i32)
block $case6|0
block $case5|0
block $case3|0
block $case1|0
local.get $2
i32.const 2
i32.add
local.set $3
local.get $4
i32.const 2
i32.sub
local.set $4
i32.const 2
br $break|0
i32.load16_u offset=4
local.tee $0
i32.const 66
i32.eq
br_if $case1|0
local.get $0
i32.const 98
i32.eq
br_if $case1|0
local.get $0
i32.const 79
i32.eq
br_if $case3|0
local.get $0
i32.const 111
i32.eq
br_if $case3|0
local.get $0
i32.const 88
i32.eq
br_if $case5|0
local.get $0
i32.const 120
i32.eq
br_if $case5|0
br $case6|0
end
local.get $3
local.get $2
i32.const 4
i32.add
local.set $3
local.get $4
local.set $2
local.get $3
i32.const 2
i32.sub
local.set $4
i32.const 8
local.set $3
i32.const 2
br $break|0
end
local.get $3
local.get $2
i32.const 4
i32.add
local.set $3
local.get $4
local.set $2
local.get $3
i32.const 2
i32.sub
local.set $4
i32.const 16
local.set $3
i32.const 8
br $break|0
end
i32.const 10
local.get $2
i32.const 4
i32.add
local.set $2
local.get $3
i32.const 2
i32.sub
local.set $3
i32.const 16
br $break|0
end
else
i32.const 10
end
local.set $1
else
i32.const 10
end
local.set $4
loop $continue|1
block $break|1
local.get $4
local.get $3
local.tee $0
i32.const 1
i32.sub
local.set $4
local.set $3
local.get $0
if
local.get $3
local.get $2
i32.load16_u offset=4
local.tee $2
local.tee $1
i32.const 48
i32.ge_s
local.tee $0
if
local.get $2
if (result i32)
local.get $1
i32.const 57
i32.le_s
local.set $0
else
local.get $0
end
local.get $0
if (result i32)
local.get $2
local.get $1
i32.const 48
i32.sub
else
local.get $2
local.get $1
i32.const 65
i32.ge_s
local.tee $0
if
local.get $2
if (result i32)
local.get $1
i32.const 90
i32.le_s
local.set $0
else
local.get $0
end
local.get $0
if (result i32)
local.get $2
local.get $1
i32.const 55
i32.sub
else
local.get $2
local.get $1
i32.const 97
i32.ge_s
local.tee $0
if
local.get $2
if (result i32)
local.get $1
i32.const 122
i32.le_s
local.set $0
else
local.get $0
end
local.get $0
i32.eqz
br_if $break|1
local.get $2
local.get $1
i32.const 87
i32.sub
end
end
local.tee $2
local.get $1
local.tee $1
local.get $4
i32.ge_s
br_if $break|1
local.get $5
local.get $1
local.get $4
f64.convert_i32_s
f64.mul
local.get $2
local.get $1
f64.convert_i32_s
f64.add
local.set $5
local.get $3
local.get $2
i32.const 2
i32.add
local.set $3
local.set $2
br $continue|1
end
end
@ -2510,12 +2484,7 @@
local.get $5
f64.mul
)
(func $~lib/string/parseInt (; 22 ;) (type $FUNCSIG$di) (param $0 i32) (result f64)
local.get $0
i32.const 0
call $~lib/internal/string/parse<f64>
)
(func $~lib/string/parseFloat (; 23 ;) (type $iF) (param $0 i32) (result f64)
(func $~lib/string/parseFloat (; 22 ;) (type $iF) (param $0 i32) (result f64)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -2683,7 +2652,7 @@
local.get $4
f64.mul
)
(func $~lib/string/String#concat (; 24 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String#concat (; 23 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -2730,7 +2699,7 @@
call $~lib/internal/string/copyUnsafe
local.get $2
)
(func $~lib/string/String.__concat (; 25 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String.__concat (; 24 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
local.get $0
i32.const 200
local.get $0
@ -2738,13 +2707,13 @@
local.get $1
call $~lib/string/String#concat
)
(func $~lib/string/String.__ne (; 26 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String.__ne (; 25 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
local.get $0
local.get $1
call $~lib/string/String.__eq
i32.eqz
)
(func $~lib/string/String.__gt (; 27 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String.__gt (; 26 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -2799,7 +2768,7 @@
i32.const 0
i32.gt_s
)
(func $~lib/string/String.__lt (; 28 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String.__lt (; 27 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -2854,19 +2823,19 @@
i32.const 0
i32.lt_s
)
(func $~lib/string/String.__gte (; 29 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String.__gte (; 28 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
local.get $0
local.get $1
call $~lib/string/String.__lt
i32.eqz
)
(func $~lib/string/String.__lte (; 30 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/string/String.__lte (; 29 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
i32.const 256
local.get $0
call $~lib/string/String.__gt
i32.eqz
)
(func $~lib/string/String#repeat (; 31 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String#repeat (; 30 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -2936,7 +2905,7 @@
call $~lib/internal/string/repeatUnsafe
local.get $2
)
(func $~lib/string/String#slice (; 32 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/string/String#slice (; 31 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
local.get $0
@ -3005,7 +2974,7 @@
call $~lib/internal/string/copyUnsafe
local.get $1
)
(func $~lib/string/String#slice|trampoline (; 33 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String#slice|trampoline (; 32 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
block $1of1
block $0of1
@ -3025,7 +2994,7 @@
local.get $2
call $~lib/string/String#slice
)
(func $~lib/internal/arraybuffer/allocateUnsafe (; 34 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/internal/arraybuffer/allocateUnsafe (; 33 ;) (type $ii) (param $0 i32) (result i32)
(local $1 i32)
local.get $0
i32.const 1073741816
@ -3052,7 +3021,7 @@
i32.store
local.get $1
)
(func $~lib/internal/memory/memset (; 35 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(func $~lib/internal/memory/memset (; 34 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
local.get $1
i32.eqz
@ -3271,7 +3240,7 @@
end
end
)
(func $~lib/array/Array<String>#constructor (; 36 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $~lib/array/Array<String>#constructor (; 35 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -3313,7 +3282,7 @@
call $~lib/internal/memory/memset
local.get $1
)
(func $~lib/internal/arraybuffer/reallocateUnsafe (; 37 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/internal/arraybuffer/reallocateUnsafe (; 36 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $1
@ -3395,7 +3364,7 @@
end
local.get $0
)
(func $~lib/array/Array<String>#push (; 38 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/array/Array<String>#push (; 37 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -3404,11 +3373,11 @@
local.tee $2
i32.const 1
i32.add
local.set $3
local.set $4
local.get $2
local.get $0
i32.load
local.tee $4
local.tee $3
i32.load
i32.const 2
i32.shr_u
@ -3426,27 +3395,26 @@
unreachable
end
local.get $0
local.get $4
local.get $3
local.get $4
i32.const 2
i32.shl
call $~lib/internal/arraybuffer/reallocateUnsafe
local.tee $4
local.tee $3
i32.store
end
local.get $0
local.get $3
i32.store offset=4
local.get $4
i32.store offset=4
local.get $2
i32.const 2
i32.shl
local.get $3
i32.add
local.get $1
i32.store offset=8
local.get $3
)
(func $~lib/string/String#split (; 39 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/string/String#split (; 38 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@ -3594,12 +3562,10 @@
local.get $6
local.get $3
call $~lib/array/Array<String>#push
drop
else
local.get $6
i32.const 256
call $~lib/array/Array<String>#push
drop
end
local.get $10
i32.const 1
@ -3647,12 +3613,10 @@
local.get $6
local.get $5
call $~lib/array/Array<String>#push
drop
else
local.get $6
i32.const 256
call $~lib/array/Array<String>#push
drop
end
local.get $6
return
@ -3663,7 +3627,7 @@
drop
local.get $3
)
(func $~lib/string/String#split|trampoline (; 40 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String#split|trampoline (; 39 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
block $2of2
block $1of2
@ -3685,7 +3649,7 @@
local.get $2
call $~lib/string/String#split
)
(func $~lib/internal/number/decimalCount32 (; 41 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/internal/number/decimalCount32 (; 40 ;) (type $ii) (param $0 i32) (result i32)
local.get $0
i32.const 100000
i32.lt_u
@ -3739,7 +3703,7 @@
end
end
)
(func $~lib/internal/number/utoa32_lut (; 42 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/internal/number/utoa32_lut (; 41 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
i32.const 1816
@ -3849,7 +3813,7 @@
i32.store16 offset=4
end
)
(func $~lib/internal/number/itoa32 (; 43 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/internal/number/itoa32 (; 42 ;) (type $ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -3887,7 +3851,7 @@
end
local.get $2
)
(func $~lib/internal/number/utoa32 (; 44 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/internal/number/utoa32 (; 43 ;) (type $ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
local.get $0
@ -3906,7 +3870,7 @@
call $~lib/internal/number/utoa32_lut
local.get $2
)
(func $~lib/internal/number/decimalCount64 (; 45 ;) (type $Ii) (param $0 i64) (result i32)
(func $~lib/internal/number/decimalCount64 (; 44 ;) (type $Ii) (param $0 i64) (result i32)
local.get $0
i64.const 1000000000000000
i64.lt_u
@ -3960,7 +3924,7 @@
end
end
)
(func $~lib/internal/number/utoa64_lut (; 46 ;) (type $iIi_) (param $0 i32) (param $1 i64) (param $2 i32)
(func $~lib/internal/number/utoa64_lut (; 45 ;) (type $iIi_) (param $0 i32) (param $1 i64) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@ -4057,7 +4021,7 @@
local.get $2
call $~lib/internal/number/utoa32_lut
)
(func $~lib/internal/number/utoa64 (; 47 ;) (type $Ii) (param $0 i64) (result i32)
(func $~lib/internal/number/utoa64 (; 46 ;) (type $Ii) (param $0 i64) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -4093,7 +4057,7 @@
end
local.get $2
)
(func $~lib/internal/number/itoa64 (; 48 ;) (type $Ii) (param $0 i64) (result i32)
(func $~lib/internal/number/itoa64 (; 47 ;) (type $Ii) (param $0 i64) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -4152,7 +4116,7 @@
end
local.get $3
)
(func $~lib/internal/number/genDigits (; 49 ;) (type $iIiIiIii) (param $0 i32) (param $1 i64) (param $2 i32) (param $3 i64) (param $4 i32) (param $5 i64) (param $6 i32) (result i32)
(func $~lib/internal/number/genDigits (; 48 ;) (type $iIiIiIii) (param $0 i32) (param $1 i64) (param $2 i32) (param $3 i64) (param $4 i32) (param $5 i64) (param $6 i32) (result i32)
(local $7 i32)
(local $8 i64)
(local $9 i32)
@ -4566,7 +4530,7 @@
local.get $10
end
)
(func $~lib/internal/number/prettify (; 50 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/internal/number/prettify (; 49 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
@ -4840,7 +4804,7 @@
end
end
)
(func $~lib/internal/number/dtoa_core (; 51 ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
(func $~lib/internal/number/dtoa_core (; 50 ;) (type $iFi) (param $0 i32) (param $1 f64) (result i32)
(local $2 i64)
(local $3 i64)
(local $4 i32)
@ -5155,7 +5119,7 @@
local.get $13
i32.add
)
(func $~lib/string/String#substring (; 52 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String#substring (; 51 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -5237,7 +5201,7 @@
call $~lib/internal/string/copyUnsafe
local.get $2
)
(func $~lib/internal/number/dtoa (; 53 ;) (type $Fi) (param $0 f64) (result i32)
(func $~lib/internal/number/dtoa (; 52 ;) (type $Fi) (param $0 f64) (result i32)
(local $1 i32)
(local $2 i32)
local.get $0
@ -5290,7 +5254,7 @@
end
local.get $1
)
(func $start:std/string (; 54 ;) (type $_)
(func $start:std/string (; 53 ;) (type $_)
(local $0 i32)
(local $1 i32)
i32.const 5360
@ -5437,7 +5401,6 @@
local.set $0
end
local.get $1
i32.const 216
local.get $0
call $~lib/string/String#endsWith
i32.eqz
@ -6002,7 +5965,7 @@
unreachable
end
i32.const 480
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 0
f64.ne
if
@ -6014,7 +5977,7 @@
unreachable
end
i32.const 488
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 1
f64.ne
if
@ -6026,7 +5989,7 @@
unreachable
end
i32.const 496
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 5
f64.ne
if
@ -6038,7 +6001,7 @@
unreachable
end
i32.const 512
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 455
f64.ne
if
@ -6050,7 +6013,7 @@
unreachable
end
i32.const 528
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 3855
f64.ne
if
@ -6062,7 +6025,7 @@
unreachable
end
i32.const 544
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 3855
f64.ne
if
@ -6074,7 +6037,7 @@
unreachable
end
i32.const 560
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 11
f64.ne
if
@ -6086,7 +6049,7 @@
unreachable
end
i32.const 576
call $~lib/string/parseInt
call $~lib/internal/string/parse<f64>
f64.const 1
f64.ne
if
@ -9067,13 +9030,13 @@
unreachable
end
)
(func $std/string/getString (; 55 ;) (type $i) (result i32)
(func $std/string/getString (; 54 ;) (type $i) (result i32)
global.get $std/string/str
)
(func $start (; 56 ;) (type $_)
(func $start (; 55 ;) (type $_)
call $start:std/string
)
(func $null (; 57 ;) (type $_)
(func $null (; 56 ;) (type $_)
nop
)
)

View File

@ -550,44 +550,44 @@
call $~lib/internal/string/compareUnsafe
i32.eqz
)
(func $~lib/map/Map<String,usize>#find (; 10 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/map/Map<String,usize>#find (; 10 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
local.get $0
i32.load
local.get $0
i32.load offset=4
local.get $2
local.get $1
i32.and
i32.const 2
i32.shl
i32.add
i32.load offset=8
local.set $2
local.set $1
loop $continue|0
local.get $2
local.get $1
if
local.get $2
local.get $1
i32.load offset=8
i32.const 1
i32.and
i32.eqz
local.tee $0
if
local.get $2
i32.load
if (result i32)
local.get $1
i32.load
i32.const 8
call $~lib/string/String.__eq
local.set $0
else
local.get $0
end
local.get $0
if
local.get $2
local.get $1
return
end
local.get $2
local.get $1
i32.load offset=8
i32.const -2
i32.and
local.set $2
local.set $1
br $continue|0
end
end
@ -700,20 +700,19 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/map/Map<String,usize>#set (; 12 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/map/Map<String,usize>#set (; 12 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
local.get $1
local.get $1
i32.const 8
call $~lib/internal/hash/hashStr
local.tee $5
local.tee $4
call $~lib/map/Map<String,usize>#find
local.tee $3
local.tee $2
if
local.get $3
local.get $2
local.get $1
i32.store offset=4
else
local.get $0
@ -747,26 +746,26 @@
end
local.get $0
i32.load offset=8
local.set $3
local.set $2
local.get $0
local.get $0
i32.load offset=16
local.tee $4
local.tee $3
i32.const 1
i32.add
i32.store offset=16
local.get $3
local.get $2
i32.const 8
i32.add
local.get $4
local.get $3
i32.const 12
i32.mul
i32.add
local.tee $3
local.get $1
local.tee $2
i32.const 8
i32.store
local.get $3
local.get $2
local.get $1
i32.store offset=4
local.get $0
local.get $0
@ -774,21 +773,21 @@
i32.const 1
i32.add
i32.store offset=20
local.get $3
local.get $2
local.get $0
i32.load
local.get $0
i32.load offset=4
local.get $5
local.get $4
i32.and
i32.const 2
i32.shl
i32.add
local.tee $4
local.tee $3
i32.load offset=8
i32.store offset=8
local.get $4
local.get $3
local.get $2
i32.store offset=8
end
)
@ -973,20 +972,20 @@
i32.load offset=20
i32.store offset=16
)
(func $~lib/map/Map<usize,String>#set (; 16 ;) (type $iii_) (param $0 i32) (param $1 i32) (param $2 i32)
(func $~lib/map/Map<usize,String>#set (; 16 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
local.get $0
local.get $1
local.get $1
call $~lib/internal/hash/hash32
local.tee $5
local.tee $4
call $~lib/map/Map<usize,String>#find
local.tee $3
local.tee $2
if
local.get $3
local.get $2
i32.const 8
i32.store offset=4
else
local.get $0
@ -1020,26 +1019,26 @@
end
local.get $0
i32.load offset=8
local.set $3
local.set $2
local.get $0
local.get $0
i32.load offset=16
local.tee $4
local.tee $3
i32.const 1
i32.add
i32.store offset=16
local.get $3
local.get $2
i32.const 8
i32.add
local.get $4
local.get $3
i32.const 12
i32.mul
i32.add
local.tee $3
local.tee $2
local.get $1
i32.store
local.get $3
local.get $2
i32.const 8
i32.store offset=4
local.get $0
local.get $0
@ -1047,21 +1046,21 @@
i32.const 1
i32.add
i32.store offset=20
local.get $3
local.get $2
local.get $0
i32.load
local.get $0
i32.load offset=4
local.get $5
local.get $4
i32.and
i32.const 2
i32.shl
i32.add
local.tee $4
local.tee $3
i32.load offset=8
i32.store offset=8
local.get $4
local.get $3
local.get $2
i32.store offset=8
end
)
@ -1071,13 +1070,11 @@
if
global.get $~lib/symbol/stringToId
i32.const 8
i32.const 8
call $~lib/internal/hash/hashStr
call $~lib/map/Map<String,usize>#find
if
global.get $~lib/symbol/stringToId
i32.const 8
i32.const 8
call $~lib/internal/hash/hashStr
call $~lib/map/Map<String,usize>#find
local.tee $0
@ -1106,12 +1103,10 @@
unreachable
end
global.get $~lib/symbol/stringToId
i32.const 8
local.get $0
call $~lib/map/Map<String,usize>#set
global.get $~lib/symbol/idToString
local.get $0
i32.const 8
call $~lib/map/Map<usize,String>#set
local.get $0
)

View File

@ -25,7 +25,9 @@
(type $Fiii (func (param f64 i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
(type $FUNCSIG$jii (func (param i32 i32) (result i64)))
(type $FUNCSIG$fi (func (param i32) (result f32)))
(type $FUNCSIG$di (func (param i32) (result f64)))
@ -1648,52 +1650,51 @@
local.get $6
f64.store offset=8
)
(func $~lib/typedarray/Float64Array#sort (; 21 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/typedarray/Float64Array#sort (; 21 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $5 f64)
(local $6 f64)
(local $7 f64)
local.get $1
local.set $4
local.set $3
local.get $0
i32.load offset=4
local.set $3
local.set $2
block $~lib/internal/typedarray/SORT<Float64Array,f64>|inlined.0
local.get $0
i32.load offset=8
i32.const 3
i32.shr_u
local.tee $5
local.tee $4
i32.const 1
i32.le_s
br_if $~lib/internal/typedarray/SORT<Float64Array,f64>|inlined.0
local.get $0
i32.load
local.set $1
local.get $5
local.get $4
i32.const 2
i32.eq
if
local.get $1
i32.const 8
i32.add
local.get $3
local.get $2
i32.add
f64.load offset=8
local.set $5
local.get $2
local.tee $0
local.get $1
i32.add
f64.load offset=8
local.set $6
local.get $1
local.get $3
local.tee $2
i32.add
f64.load offset=8
local.set $7
i32.const 2
global.set $~lib/argc
local.get $5
local.get $6
local.get $7
local.get $4
local.get $3
call_indirect (type $FFi)
i32.const 0
i32.lt_s
@ -1701,39 +1702,38 @@
local.get $1
i32.const 8
i32.add
local.get $2
i32.add
local.get $7
f64.store offset=8
local.get $1
local.get $2
local.get $0
i32.add
local.get $6
f64.store offset=8
local.get $0
local.get $1
i32.add
local.get $5
f64.store offset=8
end
br $~lib/internal/typedarray/SORT<Float64Array,f64>|inlined.0
end
local.get $1
local.set $2
local.get $5
local.set $0
local.get $4
local.tee $1
i32.const 256
i32.lt_s
if
local.get $0
local.get $2
local.get $3
local.get $1
local.get $4
local.get $3
call $~lib/internal/sort/insertionSort<f64>
else
local.get $0
local.get $2
local.get $3
local.get $1
local.get $4
local.get $3
call $~lib/internal/sort/weakHeapSort<f64>
end
end
local.get $0
)
(func $~lib/internal/sort/COMPARATOR<f64>~anonymous|0 (; 22 ;) (type $FFi) (param $0 f64) (param $1 f64) (result i32)
(local $2 i64)
@ -1853,18 +1853,16 @@
i32.add
i32.load8_u offset=8
)
(func $~lib/typedarray/Int8Array#fill (; 27 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(func $~lib/typedarray/Int8Array#fill (; 27 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
local.get $0
local.tee $5
i32.load
local.set $6
local.set $5
local.get $0
i32.load offset=4
local.set $7
local.set $6
local.get $0
i32.load offset=8
local.set $4
@ -1917,9 +1915,9 @@
i32.lt_s
if
local.get $2
local.get $6
local.get $5
i32.add
local.get $7
local.get $6
i32.add
i32.const 8
i32.add
@ -1929,7 +1927,6 @@
i32.sub
call $~lib/internal/memory/memset
end
local.get $5
)
(func $~lib/internal/typedarray/TypedArray<i8>#__get (; 28 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
local.get $1
@ -2011,7 +2008,7 @@
end
i32.const 1
)
(func $~lib/typedarray/Int8Array#fill|trampoline (; 30 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/typedarray/Int8Array#fill|trampoline (; 30 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
block $2of2
block $1of2
@ -2095,20 +2092,18 @@
i32.store offset=8
local.get $2
)
(func $~lib/typedarray/Int32Array#fill (; 32 ;) (type $iiiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(func $~lib/typedarray/Int32Array#fill (; 32 ;) (type $FUNCSIG$viiii) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
local.get $1
local.set $5
local.get $0
local.tee $6
i32.load
local.set $1
local.get $0
i32.load offset=4
local.set $7
local.set $6
local.get $0
i32.load offset=8
i32.const 2
@ -2163,15 +2158,14 @@
loop $repeat|0
local.get $2
local.get $3
i32.ge_s
i32.eqz
i32.lt_s
if
local.get $2
i32.const 2
i32.shl
local.get $1
i32.add
local.get $7
local.get $6
i32.add
local.get $5
i32.store offset=8
@ -2182,7 +2176,6 @@
br $repeat|0
end
end
local.get $6
)
(func $std/typedarray/isInt32ArrayEqual (; 33 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
@ -2246,7 +2239,7 @@
end
i32.const 1
)
(func $~lib/typedarray/Int32Array#fill|trampoline (; 34 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/typedarray/Int32Array#fill|trampoline (; 34 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
block $2of2
block $1of2
@ -8370,7 +8363,6 @@
local.get $1
local.get $0
call $~lib/typedarray/Float64Array#sort
drop
block (result i32)
block (result i32)
global.get $std/typedarray/af64
@ -8504,7 +8496,6 @@
i32.const 1
i32.const 3
call $~lib/typedarray/Int8Array#fill
drop
global.get $std/typedarray/arr8
i32.const 192
call $std/typedarray/isInt8ArrayEqual
@ -8523,7 +8514,6 @@
i32.const 0
i32.const 0
call $~lib/typedarray/Int8Array#fill|trampoline
drop
global.get $std/typedarray/arr8
i32.const 216
call $std/typedarray/isInt8ArrayEqual
@ -8541,7 +8531,6 @@
i32.const 0
i32.const -3
call $~lib/typedarray/Int8Array#fill
drop
global.get $std/typedarray/arr8
i32.const 240
call $std/typedarray/isInt8ArrayEqual
@ -8560,7 +8549,6 @@
i32.const 2
i32.const -2
call $~lib/typedarray/Int8Array#fill|trampoline
drop
global.get $std/typedarray/arr8
i32.const 264
call $std/typedarray/isInt8ArrayEqual
@ -8578,7 +8566,6 @@
i32.const 1
i32.const 0
call $~lib/typedarray/Int8Array#fill
drop
global.get $std/typedarray/arr8
i32.const 288
call $std/typedarray/isInt8ArrayEqual
@ -8601,7 +8588,6 @@
i32.const 0
i32.const 0
call $~lib/typedarray/Int8Array#fill|trampoline
drop
global.get $std/typedarray/sub8
i32.load offset=8
i32.const 3
@ -8690,7 +8676,6 @@
i32.const 1
i32.const 3
call $~lib/typedarray/Int32Array#fill
drop
global.get $std/typedarray/arr32
i32.const 376
call $std/typedarray/isInt32ArrayEqual
@ -8709,7 +8694,6 @@
i32.const 0
i32.const 0
call $~lib/typedarray/Int32Array#fill|trampoline
drop
global.get $std/typedarray/arr32
i32.const 416
call $std/typedarray/isInt32ArrayEqual
@ -8727,7 +8711,6 @@
i32.const 0
i32.const -3
call $~lib/typedarray/Int32Array#fill
drop
global.get $std/typedarray/arr32
i32.const 456
call $std/typedarray/isInt32ArrayEqual
@ -8746,7 +8729,6 @@
i32.const 2
i32.const -2
call $~lib/typedarray/Int32Array#fill|trampoline
drop
global.get $std/typedarray/arr32
i32.const 496
call $std/typedarray/isInt32ArrayEqual
@ -8764,7 +8746,6 @@
i32.const 1
i32.const 0
call $~lib/typedarray/Int32Array#fill
drop
global.get $std/typedarray/arr32
i32.const 536
call $std/typedarray/isInt32ArrayEqual
@ -8787,7 +8768,6 @@
i32.const 0
i32.const 0
call $~lib/typedarray/Int32Array#fill|trampoline
drop
global.get $std/typedarray/sub32
i32.load offset=8
i32.const 2