Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | type check loop output type properly | Alon Zakai | 2016-05-20 | 3 | -42/+54 |
| | |||||
* | in makeMaybeBlock, alloc a nop if there is nothing | Alon Zakai | 2016-05-20 | 1 | -0/+1 |
| | |||||
* | fix loop s-parsing | Alon Zakai | 2016-05-20 | 1 | -2/+2 |
| | |||||
* | notice only branches out in EffectAnalyzer, internal control flow can be ↵ | Alon Zakai | 2016-05-19 | 1 | -4/+22 |
| | | | | ignored (#530) | ||||
* | Allow implicit function returns. (#529) | Dan Gohman | 2016-05-19 | 1 | -0/+4 |
| | |||||
* | vacuum the top of functions too | Alon Zakai | 2016-05-19 | 1 | -0/+12 |
| | |||||
* | vacuum after passes that create garbage; this makes the total time better | Alon Zakai | 2016-05-19 | 1 | -1/+3 |
| | |||||
* | vacuum away everything not tied down | Alon Zakai | 2016-05-19 | 2 | -10/+112 |
| | |||||
* | Avoid double dollarsigns in s2wasm local names. (#527) | Dan Gohman | 2016-05-19 | 2 | -6/+10 |
| | | | | | | | | | * Avoid double dollarsigns in s2wasm local names. Recognize '$' as part of the .s syntax for register names, and exclude it when forming the wasm local name. This changes names like "$$0" to "$0". * Fix a comment. | ||||
* | Added static_cast to prevent direct conversion from subclasses to void*. (#502) | MI3Guy | 2016-05-19 | 1 | -20/+20 |
| | |||||
* | Merge pull request #526 from WebAssembly/spec-test-update | Alon Zakai | 2016-05-18 | 18 | -637/+1053 |
|\ | | | | | Spec test updates, and many validation fixes | ||||
| * | store locals in a vector in the interpreter and update wasm.js. also fix ↵ | Alon Zakai | 2016-05-18 | 2 | -14/+17 |
| | | | | | | | | address usage in wasm.js | ||||
| * | be more careful with checking total memory limit on 64-bit | Alon Zakai | 2016-05-18 | 1 | -2/+3 |
| | | |||||
| * | finalize s2wasm blocks once at their end, not constantly | Alon Zakai | 2016-05-18 | 1 | -1/+2 |
| | |