summaryrefslogtreecommitdiff
path: root/test/wasm2js/emscripten.2asm.js
Commit message (Collapse)AuthorAgeFilesLines
* wasm2js: emit quoted properties for the exports, to support closure compiler ↵Alon Zakai2019-04-231-3/+3
| | | | (#2043)
* wasm2js: emit calls for memory growth helper only if memory growth is used ↵Alon Zakai2019-04-231-1/+1
| | | | (#2042)
* wasm2js: avoid non-ES5 stuff like "let" (#2041)Alon Zakai2019-04-231-6/+6
| | | Also fix the fuzzer's handling of feature flags so that wasm2js can work.
* wasm2js: get rid of some non-flat code assumptions (#2036)Alon Zakai2019-04-221-2/+1
| | | We run flatten there, which lets us simplify things a lot. Turns out that for assertions we didn't run it, which is why we still needed the old non-flat code paths. This adds flatten there and removes that old code and assumptions.
* wasm2js2 import fixes (#2031)Alon Zakai2019-04-191-2/+0
| | | | | | * Don't assume function types exist in legalize-js-interface. * Properly handle (ignore) imports in RemoveNonJSOps - do not try to recurse into them. * Run legalize-js-interface and remove-unused-module-elements in wasm2js, the first is necessary, the last is nice to have.
* wasm2js: remove "use asm", we are not asm.js anymore (#2020)Alon Zakai2019-04-181-26/+0
| | | Also emit the memory growth code based on memory growth, and not whether we are "use asm" or not.
* wasm2js: support memory imports properly, updating their buffer too (#2013)Alon Zakai2019-04-161-2/+35
| | | | | * Emit an import statement for the memory. * Update the imported memory's buffer when we grow.
* Use a single table in wasm2js (#2005)Alon Zakai2019-04-151-3/+4
| | | | | This replaces the multiple asm.js tables (of power-of-2 size) with a single simple table. Also supports importing the table.
* Wasm2js memory fixes (#2003)Alon Zakai2019-04-121-16/+13
| | | | | | | | * I64ToI32Lowering - don't assume address 0 is a hardcoded location for scratch memory. Import __tempMemory__ for that. * RemoveNonJSOps - also use __tempMemory__. Oddly here the address was a hardcoded 1024 (perhaps where the rust program put a static global?). * Support imported ints in wasm2js, coercing them as needed. * Add "env" import support in the tests, since now we emit imports from there. * Make wasm2js tests split out multi-module tests using split_wast which is more robust and avoids emitting multiple outputs in one file (which makes no sense for ES6 modules)
* wasm2js memory improvements (#2002)Alon Zakai2019-04-121-0/+18
| | | | | * Refactor memory code to share it between the two emitting modes. * Get memory emitting set up in the emscripten mode.
* wasm2js: emscripten glue option (#2000)Alon Zakai2019-04-111-0/+78
Add a wasm2js option for the glue to be in emscripten-compatible format (as opposed to ES6). This does a few things so far: * Emit START_FUNCTIONS, END_FUNCTIONS markers in the code, for future use in the optimizer. * Emit the glue as a function to be called from emscripten.