summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* asm2wasm debuginfo (#895)Alon Zakai2017-02-077-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 Zakai2017-02-0611-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 Zakai2017-01-262-8/+88
| | | | not execute any more (#890)
* Export memalign along with malloc and friends (#888)Derek Schuff2017-01-242-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 Zakai2017-01-192-2/+0
|
* DCE even in -O0 (#884)Alon Zakai2017-01-198-68/+2
|
* handle an unreachable param to an export in asm2wasm, which is ignorable (#885)Alon Zakai2017-01-195-0/+318
|
* asm2wasm: when a switch is too big, create an if-else chain instead (#877)Alon Zakai2017-01-123-0/+300
|
* add a dce at the end of asm2wasm, so it handles code changes from ↵Alon Zakai (kripken)2017-01-124-6/+0
| | | | intermediate optimization passes
* add a test showing unreachable code after a returnAlon Zakai (kripken)2017-01-125-0/+165
|
* Merge pull request #865 from WebAssembly/fix-abAlon Zakai2017-01-102-0/+16
|\ | | | | Fix AngryBots parsing
| * handle a binary that breaks to returnAlon Zakai (kripken)2017-01-042-0/+16
| |
* | Merge pull request #863 from WebAssembly/linking-fixAlon Zakai2017-01-0531-31/+708
|\ \ | | | | | | Linking cleanups
| * | memoryBase and tableBase should not be mutable, as we need to use them in ↵Alon Zakai2016-12-305-0/+677
| | | | | | | | | | | | segment/element offsets
| * | emit globals before table and memory, because they may use a global for ↵Alon Zakai2016-12-3026-31/+31
| | | | | | | | | | | | their element/segment offsets
* | | Merge pull request #871 from WebAssembly/fix-c-api-unused-memAlon Zakai2017-01-052-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 APIAlon Zakai (kripken)2017-01-042-0/+194
| |/
* / Handle stacky code (#868)Alon Zakai2017-01-042-0/+21
|/ | | | * handle stacky code in binaries, using a block+local
* properly legalize imported table elementsAlon Zakai2016-12-075-9/+81
|
* fix legalization issues with f32sAlon Zakai2016-12-075-9/+81
|
* verify we don't legalize table elementsAlon Zakai2016-12-075-4/+10
|
* lower min and max in asm2wasm in wasm f*.min/maxAlon Zakai2016-12-073-0/+69
|
* make legalizeJSInterface handle f32s as well, which are not valid in asm.js ffisAlon Zakai2016-12-079-25/+288
|
* convert ftCall_* and mftCall_* into table callsAlon Zakai2016-12-075-1/+75
|
* support asm.js numeric exports by creating a global and exporting thatAlon Zakai2016-12-075-1/+9
|
* add a RemoveUnusedModuleElements pass, and make LegalizeJSInterface create ↵Alon Zakai2016-12-0720-288/+223
| | | | TempRet0 if needed (otherwise we might remove it before we use it)
* use tableBase for the table segmentsAlon Zakai2016-12-0716-16/+16
|
* fix table import size when no maximum is providedAlon Zakai2016-12-076-0/+6
|
* Update known test failures and waterfall revision (#854)jgravelle-google2016-12-018-18/+20
|
* Handle importing globals in s2wasm (#843)jgravelle-google2016-11-302-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 Zakai2016-11-307-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 Zakai2016-11-296-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 Zakai2016-11-284-324/+324
|
* fix a reordering bug in merge-blocks (#846)Alon Zakai2016-11-252-16/+92
|
* support assigns of f32 to HEAP64 in asm2wasm (#830)Alon Zakai2016-11-075-1/+50
|
* handle a label setting inside the if-body of a label value in ↵Alon Zakai2016-11-067-3073/+3182
| | | | RelooperJumpThreading
* improve local simplication: simplify without if/block structure values ↵Alon Zakai2016-11-0618-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 optsAlon Zakai2016-11-058-0/+197
|
* optimize booleans through i32.orAlon Zakai2016-11-044-24/+46
|
* remove-unused-brs after coalesce-localsAlon Zakai2016-11-046-418/+360
|
* Fixes fround of an unsigned integer (#821)Alon Zakai2016-11-0410-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-memoryAlon Zakai2016-11-015-3/+43
|\ | | | | Pack memory segments
| * add a pass to optimize memory segments, and pack memory in asm2wasmAlon Zakai2016-11-012-0/+40
| |
| * add a --memory-base options to asm2wasm, to fix the memory base instead of ↵Alon Zakai2016-10-313-3/+3
| | | | | | | | depending on an import
* | fix large f32 consts, fixes #817 (#820)Alon Zakai2016-11-013-0/+14
| |
* | Work around dot quirks related to updating node styles. Remove indirect call ↵Michael Bebenita2016-11-011-108/+77
|/ | | | edges as they greatly increase the size of the graph. (#818)
* Optimize away copies through an if (#816)Alon Zakai2016-10-318-1928/+2097
|
* add an inlining pass (#814)Alon Zakai2016-10-292-0/+189
|
* optimize child blocks in merge-blocks when we drop values in them, they may ↵Alon Zakai2016-10-292-12/+44
| | | | have new subchild blocks
* fix break value removal in merge-blocks: a br_if's type changes without a ↵Alon Zakai2016-10-291-8/+6
| | | | value, so finalize the node, and remove the drop