summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * check locals in s-parserAlon Zakai2016-06-031-2/+8
| |
| * check calls more carefully in validatorAlon Zakai2016-06-031-6/+9
| |
* | 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-035-3/+103
|
* Fix leak of FunctionType from parseFuncType when not already in the module ↵Derek Schuff2016-06-032-5/+11
| | | | | (#563) Pass ownership into the wasm module.
* Merge pull request #560 from WebAssembly/func-runningAlon Zakai2016-06-0210-33/+352
|\ | | | | Option to optimize while building modules
| * add OptimizingIncrementalModuleBuilder for faster incremental module ↵Alon Zakai2016-06-025-26/+290
| | | | | | | | building + optimizing
| * refactor a getNumCores methodAlon Zakai2016-06-022-5/+12
| |
| * add an option to run passes on individual functions, and to get default ↵Alon Zakai2016-06-023-2/+50
|/ | | | optimization passes suitable for that, or not. refactor visitFunction/Module for this.
* Use clang from the waterfall (#557)Alon Zakai2016-06-022-18/+24
| | | This avoids relying on clang from llvm, which sometimes is down (see #553)
* 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-0210-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 fileAlon Zakai2016-06-011-0/+2
|
* Specify version of python interpreter (#547)Sven-Hendrik Haase2016-06-011-1/+1
| | | Without this, the script won't work on distros that use python3 by default.
* Merge pull request #555 from WebAssembly/spec-test-fixesAlon Zakai2016-06-012-3/+3
|\ | | | | Spec test fixes
| * invalid break labels are parse errorsAlon Zakai2016-06-011-3/+2
| |
| * note default in type checking of switchesAlon Zakai2016-06-011-0/+1
| |
* | if we use the zero-init value of a local, we cannot coalesce it with a param ↵Alon Zakai2016-06-018-6/+139
| | | | | | | | (#556)
* | Merge pull request #552 from WebAssembly/dup-asm2wasm-exportsAlon Zakai2016-06-018-25882/+29758
|\ \ | |/ |/| asm2wasm regression fixes
| * handle stack frames we skip over by jumping up the stack, and update wasm.jsAlon Zakai2016-06-012-25877/+29723
| |
| * handle duplicate exports in asm2wasmAlon Zakai2016-05-316-5/+35
| |
* | fix bugs found using afl (#546)Dominic Chen2016-05-312-4/+12
|/
* refactor walk logic into walk* and doWalk* methods, for a more regular API ↵Alon Zakai2016-05-3010-31/+42
| | | | that is clearer where it should be overridden (#551)
* Merge pull request #550 from WebAssembly/dfe-niceAlon Zakai2016-05-2922-938/+3062
|\ | | | | Duplicate function elimination
| * add a pass that eliminates duplicate functionsAlon Zakai2016-05-2810-79/+1760
| |
| * add hash utility, and support for hashing and comparing expressionsAlon Zakai2016-05-282-0/+417
| |
| * canonicalize the order in reorder-locals, by using first-appearance to break ↵Alon Zakai2016-05-289-859/+868
| | | | | | | | ties
| * note number of functions in metricsAlon Zakai2016-05-282-0/+5
| |
| * add getBits and not-equals helper funcs for LiteralAlon Zakai2016-05-281-0/+12
|/
* update functions map in RemoveUnusedFunctions (#545)Alon Zakai2016-05-262-0/+9
|
* Merge pull request #544 from yurydelendik/parse-debugYury Delendik2016-05-264-12/+448
|\ | | | | Allows parsing debug information in the .S files
| * Allows parsing of debug information in .S filesYury Delendik2016-05-264-12/+448
|/ | | | Currently it ignores this information. Also it allows parse files with -asm-verbose=true.
* Merge pull request #543 from WebAssembly/fix-merge-blocksAlon Zakai2016-05-256-541/+458
|\ | | | | Fix merge blocks on named blocks
| * add a merge-block testAlon Zakai2016-05-252-0/+28
| |
| * fix a merge-blocks bug where we merged named blocksAlon Zakai2016-05-254-538/+426
| |
| * allow passes tests with more than one passAlon Zakai2016-05-252-3/+4
| |
* | Add remove unused functions pass. (#463)Michael Bebenita2016-05-255-0/+164
|/
* update spec tests, and handle the new .fail. tests (#541)Alon Zakai2016-05-252-3/+14
|
* Merge pull request #540 from WebAssembly/merge-blocksAlon Zakai2016-05-2414-258/+1657
|\ | | | | Merge blocks improvements
| * move blocks outside in merge-blocks so that they can be merged laterAlon Zakai2016-05-2412-219/+1617
| |
| * show a parse error for empty stackAlon Zakai2016-05-241-1/+1
| |
| * catch parse exceptions in s-parsing tooAlon Zakai2016-05-241-38/+39
|/
* add a pass to drop return values in set_local and store (#539)Alon Zakai2016-05-234-0/+120
|
* Merge pull request #538 from WebAssembly/asm2wasm-validationAlon Zakai2016-05-2310-6204/+8623
|\ | | | | More validation
| * fix isResultUsed bug with ifsAlon Zakai2016-05-235-159/+304
| |
| * update wasm.jsAlon Zakai2016-05-232-6027/+8283
| |
| * validate after running passes in shellAlon Zakai2016-05-231-0/+1
| |
| * validate in asm2wasm, and fix some validation errors for thatAlon Zakai2016-05-232-18/+35
|/
* Avoid a redundant return in dynCall functions. (#533)Dan Gohman2016-05-235-38/+24
|
* dead code elimination pass (#536)Alon Zakai2016-05-229-654/+1419
|