summaryrefslogtreecommitdiff
path: root/src/emscripten-optimizer/parser.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Apply format changes from #2048 (#2059)Alon Zakai2019-04-261-104/+107
| | | Mass change to apply clang-format to everything. We are applying this in a PR by me so the (git) blame is all mine ;) but @aheejin did all the work to get clang-format set up and all the manual work to tidy up some things to make the output nicer in #2048
* Cleanup shared constants (#1784)Sam Clegg2018-11-291-3/+0
|
* wasm2asm test generation (#1124)Thomas Lively2017-08-161-0/+1
| | | | | | | | | | | | | | | | | * Translate assert_return invokes to asm * Translate assert_trap tests to JS * Enable wasm2asm tests * Fix wasm2asm translation of store * Update ubuntu nodejs in Travis * Free JSPrinter buffer * Use unique_ptr for Functions to prevent leaks * Add tests for assert translation
* wasm2asm i32 arithmetic support (#1120)Thomas Lively2017-08-071-0/+1
| | | * Rotations, popcnt, ctz, etc
* refactor asm.js ast to not use STAT nodes - we don't need to print the ↵Alon Zakai (kripken)2017-01-311-1/+0
| | | | asm.js anyhow, so knowing where ;s are is unnecessary bloat
* refactor asm.js ast to use an Assign nodeAlon Zakai (kripken)2017-01-311-1/+0
|
* refactor asm.js ast to use a string node directly instead of [NAME, string]Alon Zakai (kripken)2017-01-311-1/+0
|
* refactor asm.js ast to use a number node directly instead of [NUM, number]Alon Zakai (kripken)2017-01-301-1/+0
|
* asm2wasm i64 support (#723)Alon Zakai2016-09-301-0/+2
| | | | | | | | | | | | * 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
* do not leak in IStringSetAlon Zakai2016-04-271-13/+13
|
* AST Builder class, and use it to optimzie umoddi4 in asm2wasmAlon Zakai2016-04-081-0/+2
|
* optimize llvm.cttz.i32 into i32.ctzAlon Zakai2016-04-081-0/+1
|
* 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.
* restructure code, put emscripten-optimizer stuff in its own dirAlon Zakai2015-11-091-0/+144