summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
Commit message (Collapse)AuthorAgeFilesLines
...
* index locals, so that get_local and set_local have just an index, and local ↵Alon Zakai2016-04-181-30/+44
| | | | names are kept on the Function object (#354)
* rename function locals, to params and vars, which together are all the ↵Alon Zakai2016-04-141-3/+3
| | | | locals. preparation for #336 (#349)
* remove excessive wasm-s-parser debug logging (#345)Alon Zakai2016-04-141-5/+2
|
* dyn_cast => dynCastAlon Zakai2016-04-111-1/+1
|
* refactor printingAlon Zakai2016-04-041-0/+4
|
* add simpler constructor for SExpressionWasmBuilderAlon Zakai2016-04-041-0/+3
|
* add apis for accessing module elementsAlon Zakai2016-04-041-9/+9
|
* Use local enum.JF Bastien2016-03-291-1/+1
|
* Use static const, and init in-lineJF Bastien2016-03-291-3/+2
|
* avoid constexpr since visual studio doesn't like itAlon Zakai2016-03-291-1/+1
|
* Add missing <cctype> include.Jukka Jylänki2016-03-281-0/+1
| | | | | # Conflicts: # src/wasm-s-parser.h
* Use std::numeric_limits<uint32_t>::max() instead of 0xFFFFFFFF.Jukka Jylänki2016-03-281-1/+2
|
* Hide Visual Studio build warning on casting 64-bit int to 32-bit when we ↵Jukka Jylänki2016-03-281-1/+1
| | | | know it is safe to do so.
* Make type of EqZ unary operators always i32Derek Schuff2016-03-211-1/+1
| | | | | This makes them symmetric to binary relational operators. Also support eqz in the s2wasm parser.
* update spec tests and support eqzAlon Zakai2016-03-191-1/+4
|
* use getFunctionName in another placeAlon Zakai2016-03-161-6/+1
|
* Merge pull request #246 from WebAssembly/spec-binaryAlon Zakai2016-03-151-1/+24
|\ | | | | Binary spec stuff
| * parse start properly when it is an offsetAlon Zakai2016-03-151-1/+14
| |
| * add explicit memory export supportAlon Zakai2016-03-151-0/+10
| |
* | fix block commentsMichael Bebenita2016-03-151-1/+20
| |
* | Remove recursion from s-expr parsing.Michael Bebenita2016-03-151-32/+22
|/
* de-recurse operations on nested blocksAlon Zakai2016-03-101-14/+47
|
* Implement rotatesDerek Schuff2016-03-091-1/+5
|
* be more precise in br_table parsingAlon Zakai2016-03-071-1/+1
|
* br_table, no more casesAlon Zakai2016-03-071-34/+20
|
* parse empty blocks properlyAlon Zakai2016-03-071-2/+3
|
* parse then and elseAlon Zakai2016-03-071-0/+19
|
* refactoring in preparation for then-else parsingAlon Zakai2016-03-071-23/+29
|
* update if parsing to new spec rulesAlon Zakai2016-03-071-2/+26
|
* add a finalize() method for blocksAlon Zakai2016-03-071-4/+3
|
* update select changes in specAlon Zakai2016-03-021-4/+4
|
* support function indexes in tablesAlon Zakai2016-02-251-1/+8
|
* Merge pull request #210 from mbebenita/fix-parsingAlon Zakai2016-02-231-1/+1
|\ | | | | Bug fix and adds printing / parsing tests.
| * Bug fix and adds printing / parsing tests.Michael2016-02-221-1/+1
| |
* | Fix switch offsets.Michael2016-02-231-11/+16
|/
* Merge pull request #209 from WebAssembly/asm-fixesAlon Zakai2016-02-211-1/+2
|\ | | | | Asm fixes
| * debugging tweaksAlon Zakai2016-02-211-1/+2
| |
* | do not print alignment if it is the implicit default, which is the number of ↵Alon Zakai2016-02-201-2/+2
|/ | | | bytes
* Fix out-of-bounds readJF Bastien2016-02-091-1/+4
| | | | Found by asan
* update spec tests and shift to putting the br_if condition at the end, as ↵Alon Zakai2016-02-081-5/+8
| | | | was just changed to in the spec
* fix import parsingAlon Zakai2016-02-051-1/+1
|
* Fix selectJF Bastien2016-02-051-3/+3
| | | | | | | | | The ordering changed in: https://github.com/WebAssembly/spec/pull/221 Which changed the spec tests, breaking sexpr-wasm because it pulls in the spec tests. This was then fixed: https://github.com/WebAssembly/sexpr-wasm-prototype/commit/23dc368148fc7827a603e3853f5a40287eb9effe Which in turn breaks when binaryen feeds sexpr-wasm .wast files with the old select operand ordering. Note that this PR has new failures when running the torture tests in binaryen-shell: the order of evaluation is correct in binaryen-shell but isn't emitted properly by LLVM in the .s files. This will require another patch to fix LLVM.
* Support startJF Bastien2016-02-051-0/+3
| | | | | | | | | | | | | | As spec'd in: https://github.com/WebAssembly/design/pull/495 And discussed in: https://github.com/WebAssembly/spec/issues/231 This will make it simpler and more uniform to add a start entry point. s2wasm is the right place to add start because it'll eventually need to do other basic setup, e.g. put code in start to setup the stack, as dschuff is doing in: https://github.com/WebAssembly/binaryen/pull/179 Or rather, the linker is the right place and s2wasm happens to act as our linker right now.
* Merge pull request #174 from mbebenita/fix-importAlon Zakai2016-02-041-9/+16
|\ | | | | Fix import parsing.
| * Formatting.Michael2016-02-041-3/+1
| |
| * Remove assert.Michael2016-02-031-1/+3
| |
| * Fix import parsing.Michael2016-02-031-8/+15
| |
* | commentAlon Zakai2016-02-041-0/+3
|/
* add return nodeAlon Zakai2016-02-011-20/+1
|
* use getReachableWasmType in if_else and selectAlon Zakai2016-02-011-1/+1
|