Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | handle asm.js globals that are set and the return value used | Alon Zakai | 2016-09-07 | 1 | -1/+4 |
| | |||||
* | fix AutoDrop block handling - the block type might change as we modify its ↵ | Alon Zakai | 2016-09-07 | 1 | -0/+1 |
| | | | | contents | ||||
* | improve full mode printing | Alon Zakai | 2016-09-07 | 1 | -0/+3 |
| | |||||
* | fix ControlFlowWalker handling of ifs when looking for break targets | Alon Zakai | 2016-09-07 | 1 | -1/+2 |
| | |||||
* | asm2wasm debugging asserts | Alon Zakai | 2016-09-07 | 1 | -1/+2 |
| | |||||
* | set type of calls to their target, instead of the previous behavior where ↵ | Alon Zakai | 2016-09-07 | 1 | -4/+10 |
| | | | | the asm.js context informed us. this lets us add drops where necessary | ||||
* | use globals in asm2wasm | Alon Zakai | 2016-09-07 | 10 | -143/+131 |
| | |||||
* | get_global and set_global use a Name instead of an Index, to be more ↵ | Alon Zakai | 2016-09-07 | 7 | -54/+39 |
| | | | | consistent with refering to other global objects; e.g. this avoids ordering issues with imported vs non-imported globals | ||||
* | import type for globals | Alon Zakai | 2016-09-07 | 9 | -25/+36 |
| | |||||
* | import kinds | Alon Zakai | 2016-09-07 | 8 | -28/+84 |
| | |||||
* | export kinds | Alon Zakai | 2016-09-07 | 9 | -33/+96 |
| | |||||
* | support (data .. ..), separate strings in a data() | Alon Zakai | 2016-09-07 | 1 | -7/+7 |
| | |||||
* | add a drop for final elements in blocks if they are not used | Alon Zakai | 2016-09-07 | 1 | -1/+7 |
| | |||||
* | add an ExpressionStack traversal | Alon Zakai | 2016-09-07 | 2 | -20/+44 |
| | |||||
* | grow_memory no longer traps | Alon Zakai | 2016-09-07 | 1 | -3/+4 |
| | |||||
* | interpreter debug and asserts fixing | Alon Zakai | 2016-09-07 | 1 | -29/+5 |
| | |||||
* | globals printing fix, handle the case with no module | Alon Zakai | 2016-09-07 | 1 | -1/+2 |
| | |||||
* | SetGlobal should not return a value | Alon Zakai | 2016-09-07 | 5 | -8/+1 |
| | |||||
* | some additional validations | Alon Zakai | 2016-09-07 | 2 | -0/+16 |
| | |||||
* | support (memory (data ..)) notation | Alon Zakai | 2016-09-07 | 1 | -2/+15 |
| | |||||
* | a table is needed if there is a call_indirect | Alon Zakai | 2016-09-07 | 1 | -0/+1 |
| | |||||
* | call_indirect is now structural, so no need to pass the type name around | Alon Zakai | 2016-09-07 | 3 | -7/+5 |
| | |||||
* | check store value type, and validation printing improvements | Alon Zakai | 2016-09-07 | 2 | -4/+10 |
| | |||||
* | print wasm types in full mode | Alon Zakai | 2016-09-07 | 2 | -16/+17 |
| | |||||
* | parse s-expression quoted strings more carefully | Alon Zakai | 2016-09-07 | 1 | -6/+12 |
| | |||||
* | ignore unused return values in functions | Alon Zakai | 2016-09-07 | 1 | -2/+4 |
| | |||||
* | tolerate returning a nop | Alon Zakai | 2016-09-07 | 1 | -1/+0 |
| | |||||
* | throw a parse error on bad result arities | Alon Zakai | 2016-09-07 | 1 | -1/+4 |
| | |||||
* | wasm-shell improvements: print out which module is built, add option to skip ↵ | Alon Zakai | 2016-09-07 | 1 | -2/+27 |
| | | | | lines | ||||
* | update binary version to 0x0c | Alon Zakai | 2016-09-07 | 1 | -1/+1 |
| | |||||
* | don't depend on order of operations in calls, it varies by compiler | Alon Zakai | 2016-09-07 | 1 | -1/+3 |
| | |||||
* | fix compilation error on recent clang | Alon Zakai | 2016-09-07 | 1 | -2/+2 |
| | |||||
* | select values must be valid | Alon Zakai | 2016-09-07 | 2 | -1/+5 |
| | |||||
* | move drop into blocks, dropping all the breaks as well, when possible | Alon Zakai | 2016-09-07 | 2 | -8/+120 |
| | |||||
* | loops no longer have an out label and other upstream loop updates | Alon Zakai | 2016-09-07 | 18 | -129/+86 |
| | |||||
* | call_indirect now has the target at the end | Alon Zakai | 2016-09-07 | 5 | -29/+30 |
| | |||||
* | it is not cool to return a nop | Alon Zakai | 2016-09-07 | 2 | -1/+2 |
| | |||||
* | add drop and tee expressions | Alon Zakai | 2016-09-07 | 20 | -111/+421 |
| | |||||
* | remove lower-if-else, as it's no longer needed | Alon Zakai | 2016-09-07 | 3 | -69/+0 |
| | |||||
* | remove drop-return-values pass | Alon Zakai | 2016-09-07 | 4 | -86/+0 |
| | |||||
* | make sure to create unique implicit block names in s-parser | Alon Zakai | 2016-09-07 | 1 | -1/+5 |
| | |||||
* | debugging in print | Alon Zakai | 2016-09-07 | 1 | -0/+2 |
| | |||||
* | better printing when assert_invalids fail | Alon Zakai | 2016-09-07 | 1 | -1/+7 |
| | |||||
* | Color support for Windows (#693) | Loo Rong Jie | 2016-09-07 | 2 | -8/+34 |
| | |||||
* | Improvements to build-js.sh and JS API (#679) | Rasmus | 2016-09-02 | 4 | -1/+98 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | Method name fix | aheejin | 2016-08-30 | 1 | -2/+2 |
| | |||||
* | asm.js-style setjmp/longjmp handling for wasm: add handling for | aheejin | 2016-08-30 | 1 | -9/+50 |
| | | | | emscripten_longjmp_jmpbuf name | ||||
* | Asm.js-style setjmp/longjmp support for wasm (#681) | Heejin Ahn | 2016-08-26 | 1 | -6/+9 |
| | | | | | | | This needs to export realloc as well, in addition to malloc and free handled in #4469. To support asm.js style setjmp/longjmp, wasm needs to export realloc as well, in addition to malloc and free handled in #4469. saveSetjmp() uses realloc within it, and realloc is not implemented in JS glue code. | ||||
* | Merge pull request #682 from loganchien/fix-empty-deadlock | Alon Zakai | 2016-08-26 | 6 | -11/+19 |
|\ | | | | | Fix asm2wasm dead lock caused by empty module | ||||
| * | Fix asm2wasm dead lock caused by empty modules. | Logan Chien | 2016-08-26 | 1 | -1/+9 |
| | | | | | | | | | | | | | | | | | | This commit fixes an asm2wasm dead lock when asm2wasm is compiling an empty module, i.e. a module without any functions. Without this commit, worker threads are likely to leave `workerMain()` and decrease `liveWorkers` early. Consequently, `waitUntilAllReady()` will never observe `liveWorkers == numWorkers`. |