summaryrefslogtreecommitdiff
path: root/src/parsing.h
Commit message (Collapse)AuthorAgeFilesLines
* Add except_ref type (#2081)Heejin Ahn2019-05-071-0/+1
| | | | This adds except_ref type, which is a part of the exception handling proposal.
* clang-tidy braces changes (#2075)Alon Zakai2019-05-011-18/+36
| | | Applies the changes in #2065, and temprarily disables the hook since it's too slow to run on a change this large. We should re-enable it in a later commit.
* Apply format changes from #2048 (#2059)Alon Zakai2019-04-261-52/+97
| | | 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
* Add const specifiers (#1952)Ryoga2019-03-181-2/+2
| | | | | | With this we can write stuff like: const wasm::Expression* p; const wasm::Binary* q = p->cast<wasm::Binary>();
* Add v128 type (#1777)Thomas Lively2018-11-291-0/+1
|
* Remove default cases (#1757)Thomas Lively2018-11-271-1/+4
| | | | | | Where reasonable from a readability perspective, remove default cases in switches over types and instructions. This makes future feature additions easier by making the compiler complain about each location where new types and instructions are not yet handled.
* Notice parse errors on number parsing in the text format (#1608)Loppin Vincent2018-07-241-0/+6
| | | | | | | * - Throw ParseException when istringstream failed to read a number. - Modify now invalid tests. * Add invalid_number.wast test
* Some simple integer math opts (#1504)Alon Zakai2018-04-111-1/+1
| | | | | | | | | Stuff like x + 5 != 2 => x != -3. Also some cleanups of utility functions I noticed while writing this, isTypeFloat => isFloatType. Inspired by https://github.com/golang/go/blob/master/src/cmd/compile/internal/ssa/gen/generic.rules
* Rename WasmType => Type (#1398)Alon Zakai2018-02-021-2/+2
| | | | * rename WasmType to Type. it's in the wasm:: namespace anyhow, and without Wasm- it fits in better alongside Index, Address, Expression, Module, etc.
* handle empty stack in sourceToUniqueAlon Zakai (kripken)2017-06-011-1/+4
|
* throw parse errors in UniqueNameMapperAlon Zakai (kripken)2017-06-011-2/+8
|
* harden parsing.hAlon Zakai (kripken)2017-06-011-46/+50
|
* Exporting/importing debug location information from .wast/.asm.js/.s formats ↵Yury Delendik2017-06-011-0/+19
| | | | | | | | (#1017) * Extends wasm-as, wasm-dis and s2wasm to consume debug locations. * Exports source map from asm2wasm
* Wasm h to cpp (#926)jgravelle-google2017-03-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | * Move WasmType function implementations to wasm.cpp * Move Literal methods to wasm.cpp * Reorder wasm.cpp shared constants back to top * Move expression functions to wasm.cpp * Finish moving things to wasm.cpp * Split out Literal into its own .h/.cpp. Also factor out common wasm-type module * Remove unneeded/transitive includes from wasm.h * Add comment to try/check methods * Rename tryX/checkX methods to getXOrNull * Add missing include that should fix appveyor build breakage * More appveyor
* Require unique names in binaryen IR (#746)Alon Zakai2016-10-061-0/+85
|
* parsing fix in compiled-to-js parser (#669)Alon Zakai2016-08-121-4/+4
|
* fix parsing of large intsAlon Zakai2016-07-061-2/+2
|
* add shared-constants.h for wasm constantsAlon Zakai2016-06-261-2/+3
|
* parse error detailsAlon Zakai2016-05-121-0/+27
|
* Split construction, scanning, and building phases of S2WasmBuilder (#400)Derek Schuff2016-04-271-2/+2
| | | | | | | | | | | Instead of doing all of the S2Wasm work in the constructor, split construction, scanning (to determine implemented functions) and building of the wasm module. This allows the linker to get the symbol information (e.g. implemented functions) without having to build an entire module (which will be useful for archives) and to allow the linker to link a new object into the existing one by building the wasm module in place on the existing module.
* Fix the build with GCC 5.3.1 and Clang 3.8.0.Csaba Osztrogonác2016-03-311-2/+2
| | | | Fixes #299
* parse nans with all due careAlon Zakai2016-02-021-2/+2
|
* save int bits in Literals, only bitcast to float/double on explicit requestAlon Zakai2016-02-021-21/+18
|
* don't accept -+ #163Alon Zakai2016-02-021-1/+5
|
* Use bit_cast in parseConst, avoid UBJF Bastien2016-01-281-24/+19
|
* Fix / uniformize include guardsJF Bastien2015-12-221-0/+5
|
* 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.
* process on s2wasm, and first working testcaseAlon Zakai2015-12-101-0/+2
|
* refactor const parsingAlon Zakai2015-12-101-0/+151