Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | asm2wasm debuginfo (#895) | Alon Zakai | 2017-02-07 | 7 | -0/+288 |
| | | | | | | | | | | | | * parse file/line comments in asm.js into debug intrinsics * convert debug intrinsics into annotations, and print them * ignore --debuginfo if not emitting text, as wasm binaries don't support that yet * emit full debug info when -g and emitting text; when -g and emitting binary, all we can do is the Names section * update wasm.js | ||||
* | Improve handling of implicit traps (#898) | Alon Zakai | 2017-02-06 | 11 | -102/+357 |
| | | | | | | | | * add --ignore-implicit-traps option, and by default do not ignore them, to properly preserve semantics * implicit traps can be reordered, but are side effects and should not be removed * add testing for --ignore-implicit-traps | ||||
* | code-pushing fix: we cannot push a set_local with side effects, as it may ↵ | Alon Zakai | 2017-01-26 | 2 | -8/+88 |
| | | | | not execute any more (#890) | ||||
* | Export memalign along with malloc and friends (#888) | Derek Schuff | 2017-01-24 | 2 | -1/+26 |
| | | | Emscripten's mmap2 syscall started using memalign instead of malloc with kripken/emscripten#4874, so we need to export that as well. | ||||
* | fix bustage caused by conflict between last two landings (#886) | Alon Zakai | 2017-01-19 | 2 | -2/+0 |
| | |||||
* | DCE even in -O0 (#884) | Alon Zakai | 2017-01-19 | 8 | -68/+2 |
| | |||||
* | handle an unreachable param to an export in asm2wasm, which is ignorable (#885) | Alon Zakai | 2017-01-19 | 5 | -0/+318 |
| | |||||
* | asm2wasm: when a switch is too big, create an if-else chain instead (#877) | Alon Zakai | 2017-01-12 | 3 | -0/+300 |
| | |||||
* | add a dce at the end of asm2wasm, so it handles code changes from ↵ | Alon Zakai (kripken) | 2017-01-12 | 4 | -6/+0 |
| | | | | intermediate optimization passes | ||||
* | add a test showing unreachable code after a return | Alon Zakai (kripken) | 2017-01-12 | 5 | -0/+165 |
| | |||||
* | Merge pull request #865 from WebAssembly/fix-ab | Alon Zakai | 2017-01-10 | 2 | -0/+16 |
|\ | | | | | Fix AngryBots parsing | ||||
| * | handle a binary that breaks to return | Alon Zakai (kripken) | 2017-01-04 | 2 | -0/+16 |
| | | |||||
* | | Merge pull request #863 from WebAssembly/linking-fix | Alon Zakai | 2017-01-05 | 31 | -31/+708 |
|\ \ | | | | | | | Linking cleanups | ||||
| * | | memoryBase and tableBase should not be mutable, as we need to use them in ↵ | Alon Zakai | 2016-12-30 | 5 | -0/+677 |
| | | | | | | | | | | | | segment/element offsets | ||||
| * | | emit globals before table and memory, because they may use a global for ↵ | Alon Zakai | 2016-12-30 | 26 | -31/+31 |
| | | | | | | | | | | | | their element/segment offsets | ||||
* | | | Merge pull request #871 from WebAssembly/fix-c-api-unused-mem | Alon Zakai | 2017-01-05 | 2 | -0/+194 |
|\ \ \ | |_|/ |/| | | Mark memory as existing when it is created in the C API | ||||
| * | | mark memory as existing when it is created in the C API | Alon Zakai (kripken) | 2017-01-04 | 2 | -0/+194 |
| |/ | |||||
* / | Handle stacky code (#868) | Alon Zakai | 2017-01-04 | 2 | -0/+21 |
|/ | | | | * handle stacky code in binaries, using a block+local | ||||
* | properly legalize imported table elements | Alon Zakai | 2016-12-07 | 5 | -9/+81 |
| | |||||
* | fix legalization issues with f32s | Alon Zakai | 2016-12-07 | 5 | -9/+81 |
| | |||||
* | verify we don't legalize table elements | Alon Zakai | 2016-12-07 | 5 | -4/+10 |
| | |||||
* | lower min and max in asm2wasm in wasm f*.min/max | Alon Zakai | 2016-12-07 | 3 | -0/+69 |
| | |||||
* | make legalizeJSInterface handle f32s as well, which are not valid in asm.js ffis | Alon Zakai | 2016-12-07 | 9 | -25/+288 |
| | |||||
* | convert ftCall_* and mftCall_* into table calls | Alon Zakai | 2016-12-07 | 5 | -1/+75 |
| | |||||
* | support asm.js numeric exports by creating a global and exporting that | Alon Zakai | 2016-12-07 | 5 | -1/+9 |
| | |||||
* | add a RemoveUnusedModuleElements pass, and make LegalizeJSInterface create ↵ | Alon Zakai | 2016-12-07 | 20 | -288/+223 |
| | | | | TempRet0 if needed (otherwise we might remove it before we use it) | ||||
* | use tableBase for the table segments | Alon Zakai | 2016-12-07 | 16 | -16/+16 |
| | |||||
* | fix table import size when no maximum is provided | Alon Zakai | 2016-12-07 | 6 | -0/+6 |
| | |||||
* | Update known test failures and waterfall revision (#854) | jgravelle-google | 2016-12-01 | 8 | -18/+20 |
| | |||||
* | Handle importing globals in s2wasm (#843) | jgravelle-google | 2016-11-30 | 2 | -0/+153 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle importing globals in s2wasm * Make importedGlobals a set of Names, make Names hashable * Revert "Make importedGlobals a set of Names, make Names hashable" This reverts commit 1d0ca7a5e3839b15ca60593330979864c9c3ed60. * Refactor relocation parsing to handle expressions directly * PR Feedback - Move comment where it belongs - Add comment about ownership to addRelocation - Remove do-nothing parseImportGlobal * Reword "imported globals" to "imported objects" - Flip isObjectImported to isObjectImplemented, for consistency * Add tests for s2wasm globals. Also implement import relocation expression handling * Simplify globals.s test * Fix memory leak of relocation * Use unique_ptr instead of delete in getRelocatableExpression | ||||
* | Fix regression from #850 (#851) | Alon Zakai | 2016-11-30 | 7 | -322/+556 |
| | | | | | | * fix regression from #850 - it is not always safe to fold added offsets into load/store offsets, as the add wraps but offset does not * small refactoring to simplify asm2wasm pass invocation | ||||
* | Optimize added factors into load/store offsets (#850) | Alon Zakai | 2016-11-29 | 6 | -332/+476 |
| | | | | | * optimize added factors into load/store offsets, removing the add * optimize offset of load/store of a constant into the constant | ||||
* | increase limit in RelooperJumpThreading (#847) | Alon Zakai | 2016-11-28 | 4 | -324/+324 |
| | |||||
* | fix a reordering bug in merge-blocks (#846) | Alon Zakai | 2016-11-25 | 2 | -16/+92 |
| | |||||
* | support assigns of f32 to HEAP64 in asm2wasm (#830) | Alon Zakai | 2016-11-07 | 5 | -1/+50 |
| | |||||
* | handle a label setting inside the if-body of a label value in ↵ | Alon Zakai | 2016-11-06 | 7 | -3073/+3182 |
| | | | | RelooperJumpThreading | ||||
* | improve local simplication: simplify without if/block structure values ↵ | Alon Zakai | 2016-11-06 | 18 | -9314/+9454 |
| | | | | before coalesce, so that coalesce can remove all copies, then do another pass of full simplification after it | ||||
* | add variants of simplify-locals with and without teeing and structural opts | Alon Zakai | 2016-11-05 | 8 | -0/+197 |
| | |||||
* | optimize booleans through i32.or | Alon Zakai | 2016-11-04 | 4 | -24/+46 |
| | |||||
* | remove-unused-brs after coalesce-locals | Alon Zakai | 2016-11-04 | 6 | -418/+360 |
| | |||||
* | Fixes fround of an unsigned integer (#821) | Alon Zakai | 2016-11-04 | 10 | -469/+215 |
| | | | | | | | | * fix fround of unsigned * add testing for f32 ops, and remove a duplicate test (now that f32 is on by default in wasm, we don't need to check with and without PRECISE_F32) * update wasm.js and binaryen.js | ||||
* | Merge pull request #819 from WebAssembly/optimize-memory | Alon Zakai | 2016-11-01 | 5 | -3/+43 |
|\ | | | | | Pack memory segments | ||||
| * | add a pass to optimize memory segments, and pack memory in asm2wasm | Alon Zakai | 2016-11-01 | 2 | -0/+40 |
| | | |||||
| * | add a --memory-base options to asm2wasm, to fix the memory base instead of ↵ | Alon Zakai | 2016-10-31 | 3 | -3/+3 |
| | | | | | | | | depending on an import | ||||
* | | fix large f32 consts, fixes #817 (#820) | Alon Zakai | 2016-11-01 | 3 | -0/+14 |
| | | |||||
* | | Work around dot quirks related to updating node styles. Remove indirect call ↵ | Michael Bebenita | 2016-11-01 | 1 | -108/+77 |
|/ | | | | edges as they greatly increase the size of the graph. (#818) | ||||
* | Optimize away copies through an if (#816) | Alon Zakai | 2016-10-31 | 8 | -1928/+2097 |
| | |||||
* | add an inlining pass (#814) | Alon Zakai | 2016-10-29 | 2 | -0/+189 |
| | |||||
* | optimize child blocks in merge-blocks when we drop values in them, they may ↵ | Alon Zakai | 2016-10-29 | 2 | -12/+44 |
| | | | | have new subchild blocks | ||||
* | fix break value removal in merge-blocks: a br_if's type changes without a ↵ | Alon Zakai | 2016-10-29 | 1 | -8/+6 |
| | | | | value, so finalize the node, and remove the drop |