Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Improve handling of implicit traps (#898) | Alon Zakai | 2017-02-06 | 22 | -164/+480 | |
| | | | | | | | | * 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 | |||||
* | Remove unused captures to fix warnings/errors when compiling with Clang (#896) | Eric Holk | 2017-02-03 | 3 | -5/+3 | |
| | ||||||
* | only read first 4 bytes to check if a file is a wasm binary (#894) | Alon Zakai | 2017-02-02 | 1 | -3/+8 | |
| | ||||||
* | Merge pull request #893 from WebAssembly/shrink-asm-parser | Alon Zakai | 2017-02-01 | 10 | -1088/+521 | |
|\ | | | | | Shrink asm.js ast | |||||
| * | refactor asm.js ast to use an AssignName node, for the common case of ↵ | Alon Zakai (kripken) | 2017-01-31 | 3 | -61/+100 | |
| | | | | | | | | assigning to a name and not an arbitrary ast node | |||||
| * | refactor asm.js ast to not use STAT nodes - we don't need to print the ↵ | Alon Zakai (kripken) | 2017-01-31 | 6 | -651/+7 | |
| | | | | | | | | asm.js anyhow, so knowing where ;s are is unnecessary bloat | |||||
| * | refactor asm.js ast to use an Assign node | Alon Zakai (kripken) | 2017-01-31 | 5 | -180/+216 | |
| | | ||||||
| * | use MixedArena in asm.js ast | Alon Zakai (kripken) | 2017-01-31 | 5 | -107/+99 | |
| | | ||||||
| * | refactor asm.js ast to use a string node directly instead of [NAME, string] | Alon Zakai (kripken) | 2017-01-31 | 6 | -108/+107 | |
| | | ||||||
| * | refactor asm.js ast to use a number node directly instead of [NUM, number] | Alon Zakai (kripken) | 2017-01-30 | 6 | -75/+86 | |
| | | ||||||
* | | Make ast_utils into a library (#892) | Derek Schuff | 2017-01-31 | 7 | -658/+725 | |
|/ | | | | Split ExpressionAnalyzer and ExpressionManipulator into cpp files, and turn their giant template functions into simple functions which take a callback. More organization, fewer mammoth headers, makes the build a few seconds faster, and the binaries a couple MB smaller. | |||||
* | Read/Write Abstraction (#889) | Alon Zakai | 2017-01-26 | 8 | -30/+231 | |
| | | | | | * Added ModuleReader/Writer classes that support text and binary I/O * Use them in wasm-opt and asm2wasm | |||||
* | code-pushing fix: we cannot push a set_local with side effects, as it may ↵ | Alon Zakai | 2017-01-26 | 3 | -9/+96 | |
| | | | | not execute any more (#890) | |||||
* | Export memalign along with malloc and friends (#888) | Derek Schuff | 2017-01-24 | 3 | -10/+31 | |
| | | | 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 | 9 | -69/+5 | |
| | ||||||
* | handle an unreachable param to an export in asm2wasm, which is ignorable (#885) | Alon Zakai | 2017-01-19 | 6 | -1/+321 | |
| | ||||||
* | Allow release builds with asserts on windows (#882) | Derek Schuff | 2017-01-13 | 1 | -3/+21 | |
| | | | | | | | | | | | | | | | The posix build enables assertions on release builds with ADD_NONDEBUG_COMPILE_FLAG("-UNDEBUG") but the windows build does not. This PR adds /UNDEBUG to the release build flags but has the additional complication that /DNDEBUG is added to CFLAGS by CMake by default, and MSVC will warn about having /UFOO after /DFOO on the command line. So we scrub DNDEBUG from CFLAGS as well. Additional windows build cleanups: Disable conversion/truncation warnings Canonicalize flag style to use slashes everywhere instead of mixing MSVC uses /Od (not /O0) to disable optimization | |||||
* | asm2wasm: when a switch is too big, create an if-else chain instead (#877) | Alon Zakai | 2017-01-12 | 4 | -52/+412 | |
| | ||||||
* | Merge pull request #880 from WebAssembly/dce-moar | Alon Zakai | 2017-01-12 | 8 | -4/+164 | |
|\ | | | | | DCE at the end of asm2wasm | |||||
| * | add a dce at the end of asm2wasm, so it handles code changes from ↵ | Alon Zakai (kripken) | 2017-01-12 | 5 | -6/+1 | |
| | | | | | | | | 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 | 4 | -7/+46 | |
|\ | | | | | Fix AngryBots parsing | |||||
| * | handle a binary that breaks to return | Alon Zakai (kripken) | 2017-01-04 | 4 | -6/+44 | |
| | | ||||||
| * | handle a module which has no globals at all | Alon Zakai (kripken) | 2017-01-04 | 1 | -1/+2 | |
| | | ||||||
* | | Merge pull request #863 from WebAssembly/linking-fix | Alon Zakai | 2017-01-05 | 33 | -49/+731 | |
|\ \ | | | | | | | Linking cleanups | |||||
| * | | do not add memoryBase/tableBase if already there | Alon Zakai | 2016-12-30 | 1 | -4/+4 | |
| | | | ||||||
| * | | memoryBase and tableBase should not be mutable, as we need to use them in ↵ | Alon Zakai | 2016-12-30 | 6 | -10/+692 | |
| | | | | | | | | | | | | segment/element offsets | |||||
| * | | emit globals before table and memory, because they may use a global for ↵ | Alon Zakai | 2016-12-30 | 27 | -35/+35 | |
| | | | | | | | | | | | | their element/segment offsets | |||||
* | | | Merge pull request #871 from WebAssembly/fix-c-api-unused-mem | Alon Zakai | 2017-01-05 | 5 | -4/+201 | |
|\ \ \ | |_|/ |/| | | 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 | 3 | -0/+195 | |
| | | | ||||||
| * | | ensure exports are added deterministically from binaries | Alon Zakai (kripken) | 2017-01-04 | 2 | -4/+6 | |
| |/ | ||||||
* | | Handle stacky code (#868) | Alon Zakai | 2017-01-04 | 6 | -23/+96 | |
| | | | | | | | | * handle stacky code in binaries, using a block+local | |||||
* | | Print long string in one call (#864) | Loo Rong Jie | 2017-01-03 | 2 | -23/+23 | |
|/ | ||||||
* | Merge pull request #859 from WebAssembly/linking | Alon Zakai | 2016-12-27 | 55 | -497/+1218 | |
|\ | | | | | Dynamic linking | |||||
| * | handle imports in tables in interpreter | Alon Zakai | 2016-12-07 | 3 | -13/+23 | |
| | | ||||||
| * | properly legalize imported table elements | Alon Zakai | 2016-12-07 | 6 | -9/+90 | |
| | | ||||||
| * | fix legalization issues with f32s | Alon Zakai | 2016-12-07 | 6 | -11/+83 | |
| | | ||||||
| * | verify we don't legalize table elements | Alon Zakai | 2016-12-07 | 5 | -4/+10 | |
| | | ||||||
| * | comment | Alon Zakai | 2016-12-07 | 1 | -1/+1 | |
| | | ||||||
| * | lower min and max in asm2wasm in wasm f*.min/max | Alon Zakai | 2016-12-07 | 4 | -1/+98 | |
| | | ||||||
| * | make legalizeJSInterface handle f32s as well, which are not valid in asm.js ffis | Alon Zakai | 2016-12-07 | 11 | -31/+307 | |
| | | ||||||
| * | convert ftCall_* and mftCall_* into table calls | Alon Zakai | 2016-12-07 | 6 | -8/+111 | |
| | | ||||||
| * | support asm.js numeric exports by creating a global and exporting that | Alon Zakai | 2016-12-07 | 6 | -17/+44 | |
| | | ||||||
| * | add a RemoveUnusedModuleElements pass, and make LegalizeJSInterface create ↵ | Alon Zakai | 2016-12-07 | 29 | -403/+421 | |
| | | | | | | | | TempRet0 if needed (otherwise we might remove it before we use it) | |||||
| * | use tableBase for the table segments | Alon Zakai | 2016-12-07 | 17 | -17/+17 | |
| | | ||||||
| * | export the wasm table on Module | Alon Zakai | 2016-12-07 | 1 | -0/+1 | |
| | | ||||||
| * | use wasmMaxTableSize | Alon Zakai | 2016-12-07 | 1 | -1/+6 | |
| | | ||||||
| * | fix the order of emitting the start section | Alon Zakai | 2016-12-07 | 1 | -1/+1 | |
| | | ||||||
| * | fix table import size when no maximum is provided | Alon Zakai | 2016-12-07 | 7 | -1/+7 | |
| | |