summaryrefslogtreecommitdiff
path: root/src/emscripten-optimizer/optimizer-shared.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix build with gcc 7 (#957)Morris Hafner2017-03-291-2/+1
| | | | 1. Add a missing <functional> include 2. Put the // fallthrough comment after the closing bracket so the compiler does not emit a implicit fallthrough warning.
* refactor asm.js ast to use a string node directly instead of [NAME, string]Alon Zakai (kripken)2017-01-311-24/+22
|
* refactor asm.js ast to use a number node directly instead of [NUM, number]Alon Zakai (kripken)2017-01-301-10/+12
|
* asm2wasm i64 support (#723)Alon Zakai2016-09-301-5/+6
| | | | | | | | | | | | * support i64 intrinsics from fastcomp, adding --wasm-only flag * refactor callImport logic in asm2wasm to avoid recomputing wasm types again * legalize illegal i64 params in exports and imports * do safe i64 binary ops depending on precision * fix addVar, only assert on names if we are using a name
* Add Travis builds with sanitizersJF Bastien2016-01-101-16/+5
| | | | | | | | | | | | | | | | This triggers 5 independent build / test runs: - clang, no sanitizer; - clang, UB sanitizer; - clang, address sanitizer (disabled for now); - clang, thread sanitizer (disabled for now); - GCC. Enabling UBSan led to these changes: - Fix a bunch of undefined behavior throughout the code base. - Fix some tests that relied on that undefined behavior. - Make some of the tests easier to debug by printing their command line. - Add ubsan blacklist to work around libstdc++ bug. - Example testcase also needs sanitizer because libsupport.a uses it.
* Fix the license headersJF Bastien2015-12-211-1/+15
| | | | This applies Apache 2.0 properly (as far as our lawyers have told me). We can do this early since all of the code was written by Alon Zakai.
* add makeSigning methodAlon Zakai2015-12-051-0/+5
|
* refactoring, and wasm2asm arags and localsAlon Zakai2015-12-011-0/+52
|
* be very careful when converting doubles to ints in asm2wasmAlon Zakai2015-11-281-0/+6
|
* fix detectSign on recursive calls that need minified froundAlon Zakai2015-11-221-4/+4
|
* detect minified fround in detectTypeAlon Zakai2015-11-201-2/+2
|
* detect minified froundAlon Zakai2015-11-201-4/+4
|
* detect seq signAlon Zakai2015-11-201-3/+12
|
* port detectSign from emscripten asm optimizer, and use itAlon Zakai2015-11-171-0/+38
|
* restructure code, put emscripten-optimizer stuff in its own dirAlon Zakai2015-11-091-0/+125