summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* more RemoveUnusedName opts: merge names when possible, and do block/loop ↵Alon Zakai2016-07-208-5407/+5403
| | | | merging based on their names
* remove unused labels from loops too, and general clean ups for RemoveUnusedNamesAlon Zakai2016-07-2010-5520/+5560
|
* avoid label variable usage in relooper for forward branches, just use a ↵Alon Zakai2016-07-204-977/+841
| | | | stack of blocks for them. after this change, only irreducible control flow should cause label variable usage
* add more relooper testing and improve existingAlon Zakai2016-07-207-342/+2562
|
* try natural and reverse order in coalese-localsAlon Zakai2016-07-172-2868/+2938
|
* optimize to remove as many copies as possible in coalesce-localsAlon Zakai2016-07-168-6960/+6086
|
* fix dce bug in non-parallel mode, which happens in debug mode, and add debug ↵Alon Zakai2016-07-162-0/+13
| | | | testing
* eq/ne are ok to optimize even if they are nans (#640)Alon Zakai2016-07-154-34/+47
|
* don't simplify using de-morgan's rules on floats, because of nans (#638)Alon Zakai2016-07-154-26/+91
|
* emit safe calls for i32 div/rem when in precise mode in asm2wasm, as they ↵Alon Zakai2016-07-148-53/+84
| | | | can trap (#637)
* Fix waterfall submodule (#634)Dominic Chen2016-07-141-0/+0
| | | This brings in the updates for the renaming of the binaries from 5936f05
* Merge pull request #632 from WebAssembly/tooAlon Zakai2016-07-131-0/+0
|\ | | | | Tool renaming and refactoring
| * separate wasm-opt out from wasm-shell: opt optimizes, shell runs wast shell ↵Alon Zakai2016-07-131-0/+0
| | | | | | | | tests
* | Don't emit empty array literals in trace output (#631)Alon Zakai2016-07-131-39/+39
|/ | | | * don't emit empty array literals in trace output
* Handle aliases without size (e.g. weak symbol), add redefinition warnings (#630)Dominic Chen2016-07-131-6/+10
|
* handle param overloading in asm2wasm ffis (#629)Alon Zakai2016-07-125-16/+62
|
* relooper tracing + fixesAlon Zakai2016-07-123-236/+1369
|
* allow multiple tracesAlon Zakai2016-07-122-9/+6
|
* add a tracing option to the c api, which logs out a runnable program from c ↵Alon Zakai2016-07-124-0/+1070
| | | | api calls
* add support for symbol assignments, closes #4422 (#615)Dominic Chen2016-07-112-9/+36
| | | Adds support for aliases to objects, to go along with the existing support for aliases to functions.
* add a relooper test for duff's device, showing irreducible control flow and ↵Alon Zakai2016-07-072-0/+106
| | | | helper var use
* update spec tests, and handle some flux in call_indirect in upstreamAlon Zakai2016-07-061-0/+0
|
* validate set_local types against the function #618 (#620)Alon Zakai2016-07-062-1/+33
|
* quote names in s-format that need itAlon Zakai2016-07-052-7/+7
|
* Relooper switch support (#617)Alon Zakai2016-07-022-2/+52
| | | | | | * support switches in relooper and c api * update relooper fuzzer for switches
* update emscripten submoduleAlon Zakai2016-06-291-0/+0
|
* add c api method to interpret a module, calling its start method (#601)Alon Zakai2016-06-252-0/+34
|
* finalize blocks properly in relooper (#600)Alon Zakai2016-06-242-0/+25
|
* add BinaryenExpressionPrint to c api (#599)Alon Zakai2016-06-242-0/+5
|
* test only c api examples; c++ api is internal and unstable, it is tested by ↵Alon Zakai2016-06-212-67/+0
| | | | our own codebase
* run precompute after every optimize-instructionsAlon Zakai2016-06-182-264/+48
|
* add a precompute passAlon Zakai2016-06-1812-296/+117
|
* Do not create dyncall thunks for functions with i64 results or params (#586)Derek Schuff2016-06-144-68/+30
| | | | | | 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 Schuff2016-06-143-0/+4
| | | | | | | 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-moreAlon Zakai2016-06-1113-96/+238
|\ | | | | Fix and improve br optimizations
| * run remove-unused-brs after simplify-localsAlon Zakai2016-06-118-104/+80
| |
| * fix br_if with value optimization in remove-unused-brsAlon Zakai2016-06-117-0/+166
| |
* | s2wasm: Validate the result module (#574)Derek Schuff2016-06-101-0/+3
|/ | | | 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`.
* add a pass to remove memory segments (#580)Alon Zakai2016-06-082-0/+9
|
* Fixed missing type assignment of host operations in s2wasm (#572)Alexander Meißner2016-06-062-0/+22
|
* make call_indirect type a name, so that it is not a dependency on the ↵Alon Zakai2016-06-031-1/+1
| | | | module, which would break consistency and make some parallel passes tricky (#568)
* Do not generate duplicate import thunks at link time. (#569)Derek Schuff2016-06-033-2/+22
| | | | | 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.
* Update waterfall to 7268 (#566)Derek Schuff2016-06-03999-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 Zakai2016-06-032-0/+61
|
* Fix leak of FunctionType from parseFuncType when not already in the module ↵Derek Schuff2016-06-031-3/+3
| | | | | (#563) Pass ownership into the wasm module.
* add OptimizingIncrementalModuleBuilder for faster incremental module ↵Alon Zakai2016-06-022-4/+4
| | | | building + optimizing
* Update waterfall to 7426 (#559)Derek Schuff2016-06-021045-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 Schuff2016-06-023-0/+229
| | | | | | | | | | | 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 fileAlon Zakai2016-06-011-0/+2
|
* if we use the zero-init value of a local, we cannot coalesce it with a param ↵Alon Zakai2016-06-017-2/+129
| | | | (#556)