Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | clean up import if not passed to wasm module in asm2wasm | Alon Zakai | 2016-04-27 | 1 | -0/+1 |
| | |||||
* | clean up in emscripten-optimizer arenas | Alon Zakai | 2016-04-27 | 2 | -0/+10 |
| | |||||
* | use an arena vector for switch targets | Alon Zakai | 2016-04-27 | 1 | -3/+2 |
| | |||||
* | allocate only expressions in arenas - functions, imports, exports, function ↵ | Alon Zakai | 2016-04-27 | 13 | -82/+82 |
| | | | | types, can more simply be held by unique_ptrs on the owning module. this avoids need to coordinate arena allocation for their elements, and only the far more plentiful expression nodes are a perf factor anyhow | ||||
* | don't leak when running tests in shell | Alon Zakai | 2016-04-27 | 1 | -6/+6 |
| | |||||
* | use arena allocation for s-expr Elements | Alon Zakai | 2016-04-27 | 1 | -3/+2 |
| | |||||
* | Merge pull request #406 from WebAssembly/i64.load32_u | Alon Zakai | 2016-04-27 | 16 | -13154/+12148 |
|\ | | | | | Fix zero-extension in i64.load32_u. | ||||
| * | use ONLY hack only for _only files in test/wasm_backend | Alon Zakai | 2016-04-27 | 11 | -1/+1 |
| | | |||||
| * | update wasm.js | Alon Zakai | 2016-04-27 | 2 | -13149/+12126 |
| | | |||||
| * | Add a testcase. | Dan Gohman | 2016-04-27 | 2 | -0/+17 |
| | | |||||
| * | Fix zero-extension in i64.load32_u. | Dan Gohman | 2016-04-27 | 1 | -4/+4 |
| | | |||||
* | | Remove UB (#405) | JF Bastien | 2016-04-27 | 1 | -8/+6 |
|/ | | | | | ubsan fails with: wasm-binary.h:97:32: runtime error: left shift of negative value -1 Also use type_traits for is_signed. | ||||
* | Split construction, scanning, and building phases of S2WasmBuilder (#400) | Derek Schuff | 2016-04-27 | 13 | -80/+250 |
| | | | | | | | | | | | Instead of doing all of the S2Wasm work in the constructor, split construction, scanning (to determine implemented functions) and building of the wasm module. This allows the linker to get the symbol information (e.g. implemented functions) without having to build an entire module (which will be useful for archives) and to allow the linker to link a new object into the existing one by building the wasm module in place on the existing module. | ||||
* | Prep for arena vectors | Alon Zakai | 2016-04-26 | 17 | -297/+478 |
|\ | | | | | Arena vectors | ||||
| * | add an ArenaVector for internal array allocations in expression nodes | Alon Zakai | 2016-04-26 | 15 | -278/+456 |
| | | |||||
| * | do not ignore stderr in binary format check tests | Alon Zakai | 2016-04-26 | 1 | -3/+3 |
| | | |||||
| * | make chunk size flexible in arenas | Alon Zakai | 2016-04-26 | 1 | -5/+9 |
| | | |||||
| * | refactor arena to allow allocating space directly | Alon Zakai | 2016-04-26 | 1 | -8/+13 |
| | | |||||
| * | remove old globalAllocator | Alon Zakai | 2016-04-26 | 2 | -6/+0 |
|/ | |||||
* | ast_utils improvements (#399) | Alon Zakai | 2016-04-26 | 3 | -13/+25 |
| | | | | | | | | | * make EffectAnalyzer a little more fun to use * create a convert() method that can turn a node into a smaller node, reusing its memory, and use that in nop() * use convert in wasm-linker | ||||
* | Update waterfall and LLVM torture tests build to 5780 (#398) | Derek Schuff | 2016-04-26 | 302 | -6230/+6274 |
| | | | This brings in the fix from LLVM r267511 | ||||
* | Defer creation of CallImports to link time (#395) | Derek Schuff | 2016-04-26 | 10 | -47/+67 |
| | | | s2wasm currently creates a Call AST node if the target is implemented in the current object (thus far assumed to be the final executable) and a CallImport node if not. In preparation for adding additional objects to the link before layout time, we make only Call nodes until link time, and then convert them to CallImport if they are undefined at that time. | ||||
* | Merge pull request #397 from WebAssembly/binary-opts | Alon Zakai | 2016-04-26 | 2 | -2/+22 |
|\ | | | | | Improve emitting of ifs in binary format | ||||
| * | emit ifs in an optimized way in binary format | Alon Zakai | 2016-04-26 | 1 | -2/+16 |
| | | |||||
| * | BreakSeeker needs to look at br_table too | Alon Zakai | 2016-04-26 | 1 | -0/+6 |
|/ | |||||
* | Merge pull request #393 from WebAssembly/arities | Alon Zakai | 2016-04-26 | 2 | -4252/+4400 |
|\ | | | | | Arities | ||||
| * | update wasm.js | Alon Zakai | 2016-04-25 | 1 | -4237/+4377 |
| | | |||||
| * | use arities in calls | Alon Zakai | 2016-04-25 | 1 | -3/+9 |
| | | |||||
| * | use arities on switch | Alon Zakai | 2016-04-25 | 1 | -4/+4 |
| | | |||||
| * | use arities on returns | Alon Zakai | 2016-04-25 | 1 | -4/+6 |
| | | |||||
| * | use arities on breaks | Alon Zakai | 2016-04-25 | 1 | -4/+4 |
| | | |||||
* | | Merge pull request #396 from WebAssembly/more-opts | Alon Zakai | 2016-04-25 | 10 | -4155/+3903 |
|\ \ | | | | | | | Selectify if-elses with no side effects | ||||
| * | | selectify if-elses with no control flow in them | Alon Zakai | 2016-04-25 | 10 | -4155/+3903 |
|/ / | |||||
* | | Merge pull request #394 from WebAssembly/more-br-opts | Alon Zakai | 2016-04-25 | 17 | -3059/+2627 |
|\ \ | |/ |/| | More control flow optimization | ||||
| * | optimize returns that flow out | Alon Zakai | 2016-04-25 | 17 | -3015/+2593 |
| | | |||||
| * | optimize breaks with values in RemoveUnusedBrs, check if their value can ↵ | Alon Zakai | 2016-04-25 | 2 | -47/+37 |
|/ | | | | flow to the target anyhow | ||||
* | Separate LinkerObject from Linker (#383) | Derek Schuff | 2016-04-25 | 4 | -141/+171 |
| | | | | | Create the LinkerObject class, which has a wasm Module and represents the module plus the information needed to relocate and lay it out. Each Linker owns a "main executable" LinkerObject, and S2WasmBuilder requires a LinkerObject instead of just a Module because LLVM asm files require relocation/linking before they represent a full wasm module. No merging support yet, but the real functionality for #370 is coming soon. | ||||
* | Use Module instead of AllocatingModule in binaryen.js tests (#391) | Jan Wolski | 2016-04-25 | 3 | -11017/+22473 |
| | | | | | | * Use Module instead of AllocatingModule in binaryen.js tests * include compiled binaryen.js, too | ||||
* | update build-js.sh | Alon Zakai | 2016-04-24 | 1 | -1/+1 |
| | |||||
* | Merge pull request #387 from WebAssembly/block-returns-nice | Alon Zakai | 2016-04-24 | 13 | -24872/+27531 |
|\ | | | | | Optimize block and if returns | ||||
| * | update wasm.js | Alon Zakai | 2016-04-24 | 2 | -5592/+8856 |
| | | |||||
| * | optimize block and if returns, by merging set_locals that flow out of them | Alon Zakai | 2016-04-24 | 9 | -19275/+18669 |
| | | |||||
| * | comment on replaceCurrent | Alon Zakai | 2016-04-24 | 1 | -1/+4 |
| | | |||||
| * | provide the current expression to noteNonLinear | Alon Zakai | 2016-04-24 | 1 | -2/+2 |
| | | |||||
| * | fix EffectAnalyzer, blocks and loops do not branch by themselves | Alon Zakai | 2016-04-24 | 1 | -2/+0 |
|/ | |||||
* | Merge pull request #389 from WebAssembly/fixes | Alon Zakai | 2016-04-24 | 2 | -21/+13 |
|\ | | | | | Thread fix | ||||
| * | make optimized build optimized again | Alon Zakai | 2016-04-24 | 1 | -2/+1 |
| | | |||||
| * | go back to using a mutex in mixed arena, until we get the atomics working | Alon Zakai | 2016-04-24 | 1 | -19/+12 |
|/ | |||||
* | Merge pull request #386 from WebAssembly/improve-remove-brs | Alon Zakai | 2016-04-24 | 15 | -4331/+3930 |
|\ | | | | | Improve RemoveBrs | ||||
| * | run multiple cycles of RemoveUnusedBrs | Alon Zakai | 2016-04-24 | 4 | -7/+19 |
| | |