summaryrefslogtreecommitdiff
path: root/src/support/utilities.h
Commit message (Collapse)AuthorAgeFilesLines
* Add string parameter to WASM_UNREACHABLE (#2499)Sam Clegg2019-12-051-0/+14
| | | | | This works more like llvm's unreachable handler in that is preserves information even in release builds.
* Apply format changes from #2048 (#2059)Alon Zakai2019-04-261-13/+8
| | | 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
* standardize on 'template<' over 'template <' (i.e., remove a space) (#1782)Alon Zakai2018-11-291-1/+1
|
* Don't call static desructors when Fatal() errors occur (#1722)Sam Clegg2018-11-021-1/+4
| | | | | This was causing a deadlock while destroying the thread pool.
* More simple math opts (#1414)Alon Zakai2018-02-141-5/+3
| | | | | | | | * optimize more simple math operations: mul of 0, or of 0, and of 0, mul of 1, mul of a power of 2, urem of a power of 2 * fix asm2wasm callImport parsing: the optimizer may get rid of the added offset to a function table * update js builds
* Log callImport fatal error to cerr so it is not buffered. (#1036)Sam Clegg2017-06-121-1/+3
| | | | | | | Use Fatal() rather than stdout or report callImport error Without this the write to stdout can be lost (Since the following line aborts)
* Move wasm-linker into its own cpp file (#375)Derek Schuff2016-04-211-0/+4
| | | | | | | Still making things nicer for #370 Pulling wasm-linker into its own file also necessitated pulling asm_v_wasm.h into a cpp file. It goes into a new lib directory, src/asmjs. No actual code changes in this PR.
* Move Fatal into utilities.h (#376)Derek Schuff2016-04-211-0/+18
| | | | | Follow-on from #372. Probably we should do even better for error handling, and that might mean a cpp file in support, but for now this is a small improvement.
* Factor linker-related functionality of S2WasmBuilder into its own class (#372)Derek Schuff2016-04-211-0/+6
| | | | | This is the first of a couple of refactorings in for #370 No functionality change, and minimal code change to make it work.
* Properly align the stack pointerDerek Schuff2016-04-061-0/+13
| | | | | | | | | | | | * Properly align the stack pointer By default (if no global base is given) the global base is 1, which seems wrong. In this case the stack pointer gets an address of 1, which is unaligned and definitely wrong. So, start the global base at 0 instead of 1 by default and align the stack pointer. Also factor allocation of statics into a function. * unconditionally allocate stack pointer; explicitly reserve address 0
* Factor out bit_cast.JF Bastien2016-01-281-0/+40