summaryrefslogtreecommitdiff
path: root/src/wasm-s-parser.h
Commit message (Collapse)AuthorAgeFilesLines
...
* call_indirect now has the target at the endAlon Zakai2016-09-071-7/+7
|
* add drop and tee expressionsAlon Zakai2016-09-071-4/+23
|
* make sure to create unique implicit block names in s-parserAlon Zakai2016-09-071-1/+5
|
* offset support in tableAlon Zakai2016-08-151-4/+14
|
* support function table initial and max sizes, and new printing formatAlon Zakai2016-08-121-1/+24
|
* support expressions in segment offsetsAlon Zakai2016-08-121-5/+27
|
* wast function type name desugaring is changing in spec:301 (#654)Alon Zakai2016-07-281-10/+43
|
* Fix trailing whitespace, single-character strings, checking map element ↵Dominic Chen2016-07-221-1/+1
| | | | presence, and eliminate explicit index counter (#633)
* support wasm globals (#650)Alon Zakai2016-07-211-3/+56
|
* update spec tests, and handle some flux in call_indirect in upstreamAlon Zakai2016-07-061-0/+8
|
* add parse error on array misindexingAlon Zakai2016-07-051-0/+1
|
* add shared-constants.h for wasm constantsAlon Zakai2016-06-261-1/+2
|
* fix an assert to a proper error, in bad func declsAlon Zakai2016-06-171-1/+1
|
* handle breaks to the function's implicit block scope (#573)Alon Zakai2016-06-061-7/+23
|
* if we start to parse an s-string and find it empty, that is invalid #570 (#571)Alon Zakai2016-06-041-0/+1
|
* make call_indirect type a name, so that it is not a dependency on the ↵Alon Zakai2016-06-031-4/+4
| | | | module, which would break consistency and make some parallel passes tricky (#568)
* check function types in s-parsingAlon Zakai2016-06-031-1/+2
|
* improve some parsing error textsAlon Zakai2016-06-031-1/+1
|
* check locals in s-parserAlon Zakai2016-06-031-2/+8
|
* invalid break labels are parse errorsAlon Zakai2016-06-011-3/+2
|
* show a parse error for empty stackAlon Zakai2016-05-241-1/+1
|
* in makeMaybeBlock, alloc a nop if there is nothingAlon Zakai2016-05-201-0/+1
|
* fix loop s-parsingAlon Zakai2016-05-201-2/+2
|
* be more careful with checking total memory limit on 64-bitAlon Zakai2016-05-181-2/+3
|
* use separate internal opcodes for binary variantsAlon Zakai2016-05-181-25/+28
|
* use separate internal opcodes for unary variantsAlon Zakai2016-05-181-22/+33
|
* spec test updates, and many validation fixesAlon Zakai2016-05-181-15/+62
|
* support new syntactic sugar of export names on functionsAlon Zakai2016-05-131-4/+19
|
* do not error on s-expr comments starting in stringsAlon Zakai2016-05-131-1/+1
|
* add line and col info in s-parsing errors, and fix an small bug made ↵Alon Zakai2016-05-131-9/+28
| | | | noticeable by that change
* parse error detailsAlon Zakai2016-05-121-14/+14
|
* use exceptions consistently to report input errorsAlon Zakai2016-05-121-20/+16
|
* allow error handling in binary parsingAlon Zakai2016-05-091-1/+1
|
* parse binary modules encoded in wasts that arrive in piecesAlon Zakai2016-05-091-8/+9
|
* allow appending in stringToBinaryAlon Zakai2016-05-091-5/+7
|
* parse binary modules encoded in watsAlon Zakai2016-05-091-0/+14
|
* refactor string to binary parsing in s-expression code so that we can use it ↵Alon Zakai2016-05-091-35/+44
| | | | in more places
* Harmonize the internal opcodes with the binary format (#433)Alon Zakai2016-05-031-5/+5
| | | | | | * harmonize the internal opcodes with the binary format, so they clearly parallel, and also this helps us avoid needing the type to disambiguate * comment on GetLocal in C API
* Fix null UB (#428)JF Bastien2016-05-031-33/+37
| | | | | As a continuation to #404, fix a dereference of a std::vector's zeroth element when the size of the vector is zero. Symptom: stl_vector.h:866:9: runtime error: reference binding to null pointer of type 'char'
* validate in binaryen shell and on wasm binaries, and fix type checkingAlon Zakai2016-04-291-1/+2
|
* avoid dynamic allocas (#410)Alon Zakai2016-04-281-3/+4
|
* avoid leaks when s-parsing hits an errorAlon Zakai2016-04-271-6/+6
|
* don't leak currFunction in s-parserAlon Zakai2016-04-271-5/+4
|
* don't leak when parsing segments in s-parserAlon Zakai2016-04-271-2/+2
|
* allocate only expressions in arenas - functions, imports, exports, function ↵Alon Zakai2016-04-271-5/+5
| | | | types, can more simply be held by unique_ptrs on the owning module. this avoids need to coordinate arena allocation for their elements, and only the far more plentiful expression nodes are a perf factor anyhow
* use arena allocation for s-expr ElementsAlon Zakai2016-04-271-3/+2
|
* Split construction, scanning, and building phases of S2WasmBuilder (#400)Derek Schuff2016-04-271-1/+1
| | | | | | | | | | | 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.
* add an ArenaVector for internal array allocations in expression nodesAlon Zakai2016-04-261-6/+7
|
* update MemorySize => CurrentMemoryAlon Zakai2016-04-181-5/+1
|
* remove the AllocatingModule class, and just make Module have allocations. ↵Alon Zakai2016-04-181-3/+3
| | | | the distinction is not really that useful, and passes do need to allocate, so we would need to pass around AllocatingModules all around anyhow. (#361)