Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | support parse errors in .fail. tests | Alon Zakai | 2016-06-17 | 1 | -1/+1 |
| | |||||
* | fix an assert to a proper error, in bad func decls | Alon Zakai | 2016-06-17 | 1 | -1/+1 |
| | |||||
* | fix interpreter on indirect calls, do arguments before checking and doing ↵ | Alon Zakai | 2016-06-17 | 1 | -3/+3 |
| | | | | the call (they might flow) | ||||
* | Do not create dyncall thunks for functions with i64 results or params (#586) | Derek Schuff | 2016-06-14 | 5 | -68/+39 |
| | | | | | | Dyncall thunks are meant to be used with emscripten on the web; however on the web, functions with i64 results or params are not allowed to be exported. | ||||
* | Add mode to wasm validator to check for web-environment constraints (#584) | Derek Schuff | 2016-06-14 | 8 | -23/+80 |
| | | | | | | | In the web embedding, modules are not allowed to import or export functions which have i64 params or return values. Add a mode to the validator to check for this, and add flags to s2wasm and wasm-as to enable or disable this check. Also add tests. | ||||
* | Merge pull request #583 from WebAssembly/br-more | Alon Zakai | 2016-06-11 | 16 | -97/+247 |
|\ | | | | | Fix and improve br optimizations | ||||
| * | run remove-unused-brs after simplify-locals | Alon Zakai | 2016-06-11 | 10 | -105/+82 |
| | | |||||
| * | fix br_if with value optimization in remove-unused-brs | Alon Zakai | 2016-06-11 | 8 | -0/+173 |
| | | |||||
* | | s2wasm: Validate the result module (#574) | Derek Schuff | 2016-06-10 | 5 | -18/+41 |
|/ | | | | Add an s2wasm option `--no-validate` to disable validation for debugging purposes. Also fix several validation errors by adding calls to `finalize()` after creating expressions, and ensuring that an import is created earlier in `Linker::getImportThunk`. | ||||
* | use WASM_UNUSED in some places to fix compiler warning/error on unused ↵ | Alon Zakai | 2016-06-08 | 4 | -2/+9 |
| | | | | variables we only use in asserts (#579) | ||||
* | add a pass to remove memory segments (#580) | Alon Zakai | 2016-06-08 | 4 | -0/+44 |
| | |||||
* | Updated .gitignore for VS meta noise (#576) | Peter Jas | 2016-06-06 | 1 | -0/+8 |
| | |||||
* | fix if type; if one is none and the other is concrete, still none (#575) | Alon Zakai | 2016-06-06 | 1 | -1/+9 |
| | |||||
* | handle breaks to the function's implicit block scope (#573) | Alon Zakai | 2016-06-06 | 1 | -7/+23 |
| | |||||
* | Fixed missing type assignment of host operations in s2wasm (#572) | Alexander Meißner | 2016-06-06 | 3 | -0/+23 |
| | |||||
* | if we start to parse an s-string and find it empty, that is invalid #570 (#571) | Alon Zakai | 2016-06-04 | 1 | -0/+1 |
| | |||||
* | make call_indirect type a name, so that it is not a dependency on the ↵ | Alon Zakai | 2016-06-03 | 12 | -26/+26 |
| | | | | module, which would break consistency and make some parallel passes tricky (#568) | ||||
* | Do not generate duplicate import thunks at link time. (#569) | Derek Schuff | 2016-06-03 | 5 | -6/+28 |
| | | | | | Previously every address-take of an import would cause a new thunk to be generated. Now check in getImportThunk if the thunk exists already and just return it if so. | ||||
* | move function parallelism to pass and pass runner, which allows more ↵ | Alon Zakai | 2016-06-03 | 17 | -139/+145 |
| | | | | efficient parallel execution (#564) | ||||
* | Merge pull request #567 from WebAssembly/spec-test-update | Alon Zakai | 2016-06-03 | 3 | -11/+25 |
|\ | | | | | Misc fixes for new spec tests | ||||
| * | check function types in s-parsing | Alon Zakai | 2016-06-03 | 1 | -1/+2 |
| | | |||||
| * | trap on invalid call_indirects with bad arguments when no type provided | Alon Zakai | 2016-06-03 | 1 | -0/+4 |
| | | |||||
| * | improve some parsing error texts | Alon Zakai | 2016-06-03 | 2 | -2/+2 |
| | | |||||
| * | check locals in s-parser | Alon Zakai | 2016-06-03 | 1 | -2/+8 |
| | | |||||
| * | check calls more carefully in validator | Alon Zakai | 2016-06-03 | 1 | -6/+9 |
| | | |||||
* | | Update waterfall to 7268 (#566) | Derek Schuff | 2016-06-03 | 999 | -2503/+4051 |
|/ | | | | | Also update torture-s tests. This brings in the .functype directives and causes 2 more tests to pass. | ||||
* | add nm pass, that prints function names and sizes (#562) | Alon Zakai | 2016-06-03 | 5 | -3/+103 |
| | |||||
* | Fix leak of FunctionType from parseFuncType when not already in the module ↵ | Derek Schuff | 2016-06-03 | 2 | -5/+11 |
| | | | | | (#563) Pass ownership into the wasm module. | ||||
* | Merge pull request #560 from WebAssembly/func-running | Alon Zakai | 2016-06-02 | 10 | -33/+352 |
|\ | | | | | Option to optimize while building modules | ||||
| * | add OptimizingIncrementalModuleBuilder for faster incremental module ↵ | Alon Zakai | 2016-06-02 | 5 | -26/+290 |
| | | | | | | | | building + optimizing | ||||
| * | refactor a getNumCores method | Alon Zakai | 2016-06-02 | 2 | -5/+12 |
| | | |||||
| * | add an option to run passes on individual functions, and to get default ↵ | Alon Zakai | 2016-06-02 | 3 | -2/+50 |
|/ | | | | optimization passes suitable for that, or not. refactor visitFunction/Module for this. | ||||
* | Use clang from the waterfall (#557) | Alon Zakai | 2016-06-02 | 2 | -18/+24 |
| | | | This avoids relying on clang from llvm, which sometimes is down (see #553) | ||||
* | Update waterfall to 7426 (#559) | Derek Schuff | 2016-06-02 | 1045 | -48289/+48823 |
| | | | | | Also update torture tests. This brings in a clang with the compiler-rt libraries, for https://github.com/WebAssembly/binaryen/pull/557 | ||||
* | Generate thunks for address-taken imports (#554) | Derek Schuff | 2016-06-02 | 10 | -22/+324 |
| | | | | | | | | | | | Under emscripten, C code can take the address of a function implemented in Javascript (which is exposed via an import in wasm). Because imports do not have linear memory address in wasm, we need to generate a thunk to be the target of the indirect call; it call the import directly. This is facilited by a new .s directive (.functype) which declares the types of functions which are declared but not defined. Fixes https://github.com/WebAssembly/binaryen/issues/392 | ||||
* | missing test file | Alon Zakai | 2016-06-01 | 1 | -0/+2 |
| | |||||
* | Specify version of python interpreter (#547) | Sven-Hendrik Haase | 2016-06-01 | 1 | -1/+1 |
| | | | Without this, the script won't work on distros that use python3 by default. | ||||
* | Merge pull request #555 from WebAssembly/spec-test-fixes | Alon Zakai | 2016-06-01 | 2 | -3/+3 |
|\ | | | | | Spec test fixes | ||||
| * | invalid break labels are parse errors | Alon Zakai | 2016-06-01 | 1 | -3/+2 |
| | | |||||
| * | note default in type checking of switches | Alon Zakai | 2016-06-01 | 1 | -0/+1 |
| | | |||||
* | | if we use the zero-init value of a local, we cannot coalesce it with a param ↵ | Alon Zakai | 2016-06-01 | 8 | -6/+139 |
| | | | | | | | | (#556) | ||||
* | | Merge pull request #552 from WebAssembly/dup-asm2wasm-exports | Alon Zakai | 2016-06-01 | 8 | -25882/+29758 |
|\ \ | |/ |/| | asm2wasm regression fixes | ||||
| * | handle stack frames we skip over by jumping up the stack, and update wasm.js | Alon Zakai | 2016-06-01 | 2 | -25877/+29723 |
| | | |||||
| * | handle duplicate exports in asm2wasm | Alon Zakai | 2016-05-31 | 6 | -5/+35 |
| | | |||||
* | | fix bugs found using afl (#546) | Dominic Chen | 2016-05-31 | 2 | -4/+12 |
|/ | |||||
* | refactor walk logic into walk* and doWalk* methods, for a more regular API ↵ | Alon Zakai | 2016-05-30 | 10 | -31/+42 |
| | | | | that is clearer where it should be overridden (#551) | ||||
* | Merge pull request #550 from WebAssembly/dfe-nice | Alon Zakai | 2016-05-29 | 22 | -938/+3062 |
|\ | | | | | Duplicate function elimination | ||||
| * | add a pass that eliminates duplicate functions | Alon Zakai | 2016-05-28 | 10 | -79/+1760 |
| | | |||||
| * | add hash utility, and support for hashing and comparing expressions | Alon Zakai | 2016-05-28 | 2 | -0/+417 |
| | | |||||
| * | canonicalize the order in reorder-locals, by using first-appearance to break ↵ | Alon Zakai | 2016-05-28 | 9 | -859/+868 |
| | | | | | | | | ties |