Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | simplify wasm-builder: it has an allocator, and should never need to access ↵ | Alon Zakai | 2016-06-27 | 1 | -23/+24 | |
| | | | | a module (#605) | |||||
* | make creating functions and types parallelizable in c api (#603) | Alon Zakai | 2016-06-26 | 2 | -2/+35 | |
| | ||||||
* | Merge pull request #602 from WebAssembly/dsl-nice | Alon Zakai | 2016-06-26 | 15 | -150/+736 | |
|\ | | | | | Use a DSL in OptimizeInstructions | |||||
| * | rewrite OptimizeInstructions to use a dsl of patterns | Alon Zakai | 2016-06-26 | 3 | -50/+440 | |
| | | ||||||
| * | make makeCallImport more similar to makeCall; do not assume all imports ↵ | Alon Zakai | 2016-06-26 | 3 | -4/+4 | |
| | | | | | | | | exist, let functions be created in a way independent from global state | |||||
| * | expression copying utility | Alon Zakai | 2016-06-26 | 2 | -7/+149 | |
| | | ||||||
| * | add ExpressionAnalyzer::flexibleEquals | Alon Zakai | 2016-06-26 | 1 | -1/+13 | |
| | | ||||||
| * | add shared-constants.h for wasm constants | Alon Zakai | 2016-06-26 | 10 | -89/+131 | |
| | | ||||||
* | | add c api method to interpret a module, calling its start method (#601) | Alon Zakai | 2016-06-25 | 2 | -0/+13 | |
|/ | ||||||
* | finalize blocks properly in relooper (#600) | Alon Zakai | 2016-06-24 | 1 | -1/+7 | |
| | ||||||
* | add BinaryenExpressionPrint to c api (#599) | Alon Zakai | 2016-06-24 | 2 | -1/+9 | |
| | ||||||
* | prefix make_unique in binaryen_shell for visual studio workarounds (#595) | Alon Zakai | 2016-06-23 | 1 | -4/+4 | |
| | ||||||
* | make assertion error more useful (#597) | Dominic Chen | 2016-06-23 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #593 from WebAssembly/remove-div0 | Alon Zakai | 2016-06-21 | 27 | -43/+175 | |
|\ | | | | | Explicit registering of passes | |||||
| * | Add initialization functions for passes to avoid missing pass registration ↵ | Jukka Jylänki | 2016-06-21 | 27 | -43/+175 | |
| | | | | | | | | due to linker dead code elimination. Fixes #577. | |||||
* | | Build fixes/workarounds to support Visual Studio 2013 build, which has ↵ | juj | 2016-06-21 | 5 | -6/+7 | |
|/ | | | | trouble with some new C++11 constructs. (#581) | |||||
* | support -o in binaryen-shell (#592) | Alon Zakai | 2016-06-18 | 1 | -0/+9 | |
| | ||||||
* | Merge pull request #590 from WebAssembly/precompute | Alon Zakai | 2016-06-18 | 8 | -416/+544 | |
|\ | | | | | Precompute expressions at compile time when possible | |||||
| * | run precompute after every optimize-instructions | Alon Zakai | 2016-06-18 | 1 | -0/+2 | |
| | | ||||||
| * | add a precompute pass | Alon Zakai | 2016-06-18 | 6 | -37/+111 | |
| | | ||||||
| * | refactor interpreter code to provide expression executors for both ↵ | Alon Zakai | 2016-06-18 | 3 | -414/+466 | |
| | | | | | | | | standalone and full funtime execution | |||||
* | | 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 | 1 | -0/+9 | |
| | | | | | | 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 | 4 | -21/+61 | |
| | | | | | | | 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 | 3 | -1/+9 | |
|\ | | | | | Fix and improve br optimizations | |||||
| * | run remove-unused-brs after simplify-locals | Alon Zakai | 2016-06-11 | 2 | -1/+2 | |
| | | ||||||
| * | fix br_if with value optimization in remove-unused-brs | Alon Zakai | 2016-06-11 | 1 | -0/+7 | |
| | | ||||||
* | | s2wasm: Validate the result module (#574) | Derek Schuff | 2016-06-10 | 4 | -18/+38 | |
|/ | | | | 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 | 2 | -0/+35 | |
| | ||||||
* | 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 | 1 | -0/+1 | |
| | ||||||
* | 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 | 11 | -25/+25 | |
| | | | | 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 | 2 | -4/+6 | |
| | | | | | 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) | |||||
* | 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 | |
| | ||||||
* | add nm pass, that prints function names and sizes (#562) | Alon Zakai | 2016-06-03 | 3 | -3/+42 | |
| | ||||||
* | Fix leak of FunctionType from parseFuncType when not already in the module ↵ | Derek Schuff | 2016-06-03 | 1 | -2/+8 | |
| | | | | | (#563) Pass ownership into the wasm module. | |||||
* | add OptimizingIncrementalModuleBuilder for faster incremental module ↵ | Alon Zakai | 2016-06-02 | 3 | -22/+286 | |
| | | | | 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. | |||||
* | Generate thunks for address-taken imports (#554) | Derek Schuff | 2016-06-02 | 7 | -22/+95 | |
| | | | | | | | | | | | 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 | |||||
* | Merge pull request #555 from WebAssembly/spec-test-fixes | Alon Zakai | 2016-06-01 | 2 | -3/+3 | |
|\ | | | | | Spec test fixes |