Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | ||||
| * | 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 | 1 | -4/+10 |
| | | | | | | | | (#556) | ||||
* | | Merge pull request #552 from WebAssembly/dup-asm2wasm-exports | Alon Zakai | 2016-06-01 | 2 | -20/+36 |
|\ \ | |/ |/| | asm2wasm regression fixes | ||||
| * | handle stack frames we skip over by jumping up the stack, and update wasm.js | Alon Zakai | 2016-06-01 | 1 | -16/+25 |
| | | |||||
| * | handle duplicate exports in asm2wasm | Alon Zakai | 2016-05-31 | 1 | -4/+11 |
| | | |||||
* | | 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 | 9 | -30/+41 |
| | | | | that is clearer where it should be overridden (#551) | ||||
* | add a pass that eliminates duplicate functions | Alon Zakai | 2016-05-28 | 3 | -0/+182 |
| | |||||
* | 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 | 1 | -5/+14 |
| | | | | ties | ||||
* | note number of functions in metrics | Alon Zakai | 2016-05-28 | 1 | -0/+4 |
| | |||||
* | add getBits and not-equals helper funcs for Literal | Alon Zakai | 2016-05-28 | 1 | -0/+12 |
| | |||||
* | update functions map in RemoveUnusedFunctions (#545) | Alon Zakai | 2016-05-26 | 2 | -0/+9 |
| | |||||
* | Allows parsing of debug information in .S files | Yury Delendik | 2016-05-26 | 2 | -12/+90 |
| | | | | Currently it ignores this information. Also it allows parse files with -asm-verbose=true. | ||||
* | Merge pull request #543 from WebAssembly/fix-merge-blocks | Alon Zakai | 2016-05-25 | 1 | -1/+1 |
|\ | | | | | Fix merge blocks on named blocks | ||||
| * | fix a merge-blocks bug where we merged named blocks | Alon Zakai | 2016-05-25 | 1 | -1/+1 |
| | | |||||
* | | Add remove unused functions pass. (#463) | Michael Bebenita | 2016-05-25 | 3 | -0/+87 |
|/ | |||||
* | move blocks outside in merge-blocks so that they can be merged later | Alon Zakai | 2016-05-24 | 1 | -0/+124 |
| | |||||
* | show a parse error for empty stack | Alon Zakai | 2016-05-24 | 1 | -1/+1 |
| | |||||
* | catch parse exceptions in s-parsing too | Alon Zakai | 2016-05-24 | 1 | -38/+39 |
| | |||||
* | add a pass to drop return values in set_local and store (#539) | Alon Zakai | 2016-05-23 | 2 | -0/+80 |
| | |||||
* | fix isResultUsed bug with ifs | Alon Zakai | 2016-05-23 | 1 | -1/+1 |
| | |||||
* | validate after running passes in shell | Alon Zakai | 2016-05-23 | 1 | -0/+1 |
| | |||||
* | validate in asm2wasm, and fix some validation errors for that | Alon Zakai | 2016-05-23 | 2 | -18/+35 |
| | |||||
* | Avoid a redundant return in dynCall functions. (#533) | Dan Gohman | 2016-05-23 | 1 | -1/+1 |
| | |||||
* | dead code elimination pass (#536) | Alon Zakai | 2016-05-22 | 3 | -0/+353 |
| | |||||
* | don't depend on asm.js type detection in binary formation in asm2wasm, use ↵ | Alon Zakai | 2016-05-22 | 1 | -5/+4 |
| | | | | the full asm global info we have (#535) | ||||
* | Update s2wasm for LLVM changes, and regenerate tests. (#532) | Dan Gohman | 2016-05-20 | 1 | -6/+7 |
| | |||||
* | type check return types fully | Alon Zakai | 2016-05-20 | 1 | -1/+7 |
| |