summaryrefslogtreecommitdiff
path: root/test/binaryen.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Running passes on a single function in binaryen-c/.js (#1295)Daniel Wirtz2017-11-212-0/+39
| | | * Also other function utilities in C and JS APIs
* Add atomic load/store to binaryen-c/.js (#1298)Daniel Wirtz2017-11-202-0/+112
|
* Flatten tee (#1296)Alon Zakai2017-11-172-3/+3
| | | | | * flatten tee_local in flatten, as it leads to more-optimizable code (tee_local, when nested, can introduce side effects in bad places). * also fix some test stuff from recent merges
* Add const expression utilities to binaryen-c/.js (#1288)Daniel Wirtz2017-11-152-14/+35
|
* Run binaryen.js tests using node, and on travis (#1275)Alon Zakai2017-11-141-1/+1
|
* fix some tests that broke due to recent merges (#1287)Alon Zakai2017-11-143-20/+6
|
* Added expression utility functions to binaryen-c/.js (#1269)Daniel Wirtz2017-11-112-1/+65
|
* Fix binaryen.js's wasm2asm (#1257)Alon Zakai2017-11-014-53/+57
| | | | * fix wasm2asm in binaryen.js, the function locals may not all have names, so add them as necessary
* Added the ability to run specific optimization passes to binaryen-c/.js (#1252)Daniel Wirtz2017-10-302-0/+9
|
* Safe heap pass (#1145)Alon Zakai2017-08-282-2/+2
| | | Adds --safe-heap which instruments the code to check heap loads and stores for validity (null pointer derefs, within range of valid sbrk memory, and alignment). Used in SAFE_HEAP in emscripten.
* Initial asm.js output for binaryen-c / binaryen.js (#1136)Daniel Wirtz2017-08-242-0/+73
| | | | * Added BinaryenModulePrintAsmjs (using wasm2asm) + Module#emitAsmjs JS binding
* add docs and error hints when a Call should be a CallImport (#1081)Alon Zakai2017-07-112-0/+35
| | | | | | * add docs and error hints when a Call should be a CallImport * fix binaryen API docs in docs/
* S-expression parsing in C API and binaryen.js (#1050)Alon Zakai2017-06-132-6/+49
| | | | | | * add C API and binaryen.js support for parsing s-expressions * update js builds and tests
* Support new result syntax for if/loop/block (#1047)Sam Clegg2017-06-121-8/+8
| | | | | | Support both syntax formats in input since the old spec tests still need to be parsable.
* C API fixes (#1042)Alon Zakai2017-06-071-12/+12
| | | | | | * fix mutex usage in C API, and some minor cleanup around it too * update testcase that was forgotten to be updated before
* update wasm.js and binaryen.js (#977)Alon Zakai2017-04-191-1/+1
| | | | | | * update wasm.js and binaryen.js * update test output for new names section
* New binaryen.js (#922)Alon Zakai2017-03-248-216/+3519
| | | New binaryen.js implementation, based on the C API underneath and with a JS-friendly API on top. See docs under docs/ for API details.
* Improvements to build-js.sh and JS API (#679)Rasmus2016-09-022-0/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adds command-line argument to build-js.sh for specifying the location of Emscripten. Also spreads out program arguments on separate lines * Exposes WasmBinaryWriter and BufferWithRandomAccess in the JS API to allow writing WASM modules and access the produced bytes via the JS API * Updates bin/binaryen.js and bin/wasm.js from changes to build-js.sh * Adds exclude patterns to .gitignore for some files generated by build-js.sh and .DS_Store for macOS * Changes build-js.sh to use EMSCRIPTEN env var instead of a command-line argument to provide the path to emscripten * Improvements to JS builds - Adds -g flag to build-js.sh that will build unoptimized and unmangled versions of binaryen.js and wasm.js (output has a "-g.js" suffix to allow co-existence with regular optimized builds). - Enables closure compiler for non-debug builds - Adds browser test for s-expression parser + WASM code gen (requires wasm to be enabled in the browser.) - Adds iterator interface to BufferWithRandomAccess (when Symbol.iterator is available) - Adds toArrayBuffer to BufferWithRandomAccess (when TypedArray is available) - Adds compileWast(sourceText :string) :ArrayBuffer to the module, parsing & compiling s-expression code to a WASM module - Changes the way binaryen.js is exported to allow usage in CommonJS, AMD and UMD envionments. * Expose "Binaryen" global in a better way to work with a.js generated by check.py * Fix to binaryen.js to only export a global variable when running the test (a.js) while inside a module (avoids polluting global in e.g. nodejs). Also fixes a spelling mistake. * Better "no WASM detected" message in test/binaryen.js/browser.html * Small change to error message in build-js.sh where $EMSCRIPTEN does not point to a directory * Changes emcc args in build-js.sh after investingating a large number of argument combinations. Also adds a browser benchmark. The result of emcc arguments and the effect on performance is summarized in this doc: https://gist.github.com/rsms/e33c61a25a31c08260161a087be03169 * Enable inferring emscripten path by looking in PATH when EMSCRIPTEN is not set in env
* Use Module instead of AllocatingModule in binaryen.js tests (#391)Jan Wolski2016-04-251-1/+1
| | | | | | * Use Module instead of AllocatingModule in binaryen.js tests * include compiled binaryen.js, too
* add testing for binaryen.jsAlon Zakai2016-04-041-0/+1
|
* more idl additions fix idl testAlon Zakai2016-04-041-1/+2
|
* idl test fixesAlon Zakai2016-04-041-2/+2
|
* more idlAlon Zakai2016-04-041-1/+15
|
* add necessary idl constructorsAlon Zakai2016-04-041-0/+2
|
* add simpler constructor for SExpressionWasmBuilderAlon Zakai2016-04-041-0/+27