Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | allow appending in stringToBinary | Alon Zakai | 2016-05-09 | 1 | -5/+7 | |
| | ||||||
* | parse binary modules encoded in wats | Alon Zakai | 2016-05-09 | 1 | -0/+14 | |
| | ||||||
* | refactor string to binary parsing in s-expression code so that we can use it ↵ | Alon Zakai | 2016-05-09 | 1 | -35/+44 | |
| | | | | in more places | |||||
* | Harmonize the internal opcodes with the binary format (#433) | Alon Zakai | 2016-05-03 | 1 | -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 Bastien | 2016-05-03 | 1 | -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 checking | Alon Zakai | 2016-04-29 | 1 | -1/+2 | |
| | ||||||
* | avoid dynamic allocas (#410) | Alon Zakai | 2016-04-28 | 1 | -3/+4 | |
| | ||||||
* | avoid leaks when s-parsing hits an error | Alon Zakai | 2016-04-27 | 1 | -6/+6 | |
| | ||||||
* | don't leak currFunction in s-parser | Alon Zakai | 2016-04-27 | 1 | -5/+4 | |
| | ||||||
* | don't leak when parsing segments in s-parser | Alon Zakai | 2016-04-27 | 1 | -2/+2 | |
| | ||||||
* | allocate only expressions in arenas - functions, imports, exports, function ↵ | Alon Zakai | 2016-04-27 | 1 | -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 Elements | Alon Zakai | 2016-04-27 | 1 | -3/+2 | |
| | ||||||
* | Split construction, scanning, and building phases of S2WasmBuilder (#400) | Derek Schuff | 2016-04-27 | 1 | -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 nodes | Alon Zakai | 2016-04-26 | 1 | -6/+7 | |
| | ||||||
* | update MemorySize => CurrentMemory | Alon Zakai | 2016-04-18 | 1 | -5/+1 | |
| | ||||||
* | remove the AllocatingModule class, and just make Module have allocations. ↵ | Alon Zakai | 2016-04-18 | 1 | -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) | |||||
* | index locals, so that get_local and set_local have just an index, and local ↵ | Alon Zakai | 2016-04-18 | 1 | -30/+44 | |
| | | | | names are kept on the Function object (#354) | |||||
* | rename function locals, to params and vars, which together are all the ↵ | Alon Zakai | 2016-04-14 | 1 | -3/+3 | |
| | | | | locals. preparation for #336 (#349) | |||||
* | remove excessive wasm-s-parser debug logging (#345) | Alon Zakai | 2016-04-14 | 1 | -5/+2 | |
| | ||||||
* | dyn_cast => dynCast | Alon Zakai | 2016-04-11 | 1 | -1/+1 | |
| | ||||||
* | refactor printing | Alon Zakai | 2016-04-04 | 1 | -0/+4 | |
| | ||||||
* | add simpler constructor for SExpressionWasmBuilder | Alon Zakai | 2016-04-04 | 1 | -0/+3 | |
| | ||||||
* | add apis for accessing module elements | Alon Zakai | 2016-04-04 | 1 | -9/+9 | |
| | ||||||
* | Use local enum. | JF Bastien | 2016-03-29 | 1 | -1/+1 | |
| | ||||||
* | Use static const, and init in-line | JF Bastien | 2016-03-29 | 1 | -3/+2 | |
| | ||||||
* | avoid constexpr since visual studio doesn't like it | Alon Zakai | 2016-03-29 | 1 | -1/+1 | |
| | ||||||
* | Add missing <cctype> include. | Jukka Jylänki | 2016-03-28 | 1 | -0/+1 | |
| | | | | | # Conflicts: # src/wasm-s-parser.h | |||||
* | Use std::numeric_limits<uint32_t>::max() instead of 0xFFFFFFFF. | Jukka Jylänki | 2016-03-28 | 1 | -1/+2 | |
| | ||||||
* | Hide Visual Studio build warning on casting 64-bit int to 32-bit when we ↵ | Jukka Jylänki | 2016-03-28 | 1 | -1/+1 | |
| | | | | know it is safe to do so. | |||||
* | Make type of EqZ unary operators always i32 | Derek Schuff | 2016-03-21 | 1 | -1/+1 | |
| | | | | | This makes them symmetric to binary relational operators. Also support eqz in the s2wasm parser. | |||||
* | update spec tests and support eqz | Alon Zakai | 2016-03-19 | 1 | -1/+4 | |
| | ||||||
* | use getFunctionName in another place | Alon Zakai | 2016-03-16 | 1 | -6/+1 | |
| | ||||||
* | Merge pull request #246 from WebAssembly/spec-binary | Alon Zakai | 2016-03-15 | 1 | -1/+24 | |
|\ | | | | | Binary spec stuff | |||||
| * | parse start properly when it is an offset | Alon Zakai | 2016-03-15 | 1 | -1/+14 | |
| | | ||||||
| * | add explicit memory export support | Alon Zakai | 2016-03-15 | 1 | -0/+10 | |
| | | ||||||
* | | fix block comments | Michael Bebenita | 2016-03-15 | 1 | -1/+20 | |
| | | ||||||
* | | Remove recursion from s-expr parsing. | Michael Bebenita | 2016-03-15 | 1 | -32/+22 | |
|/ | ||||||
* | de-recurse operations on nested blocks | Alon Zakai | 2016-03-10 | 1 | -14/+47 | |
| | ||||||
* | Implement rotates | Derek Schuff | 2016-03-09 | 1 | -1/+5 | |
| | ||||||
* | be more precise in br_table parsing | Alon Zakai | 2016-03-07 | 1 | -1/+1 | |
| | ||||||
* | br_table, no more cases | Alon Zakai | 2016-03-07 | 1 | -34/+20 | |
| | ||||||
* | parse empty blocks properly | Alon Zakai | 2016-03-07 | 1 | -2/+3 | |
| | ||||||
* | parse then and else | Alon Zakai | 2016-03-07 | 1 | -0/+19 | |
| | ||||||
* | refactoring in preparation for then-else parsing | Alon Zakai | 2016-03-07 | 1 | -23/+29 | |
| | ||||||
* | update if parsing to new spec rules | Alon Zakai | 2016-03-07 | 1 | -2/+26 | |
| | ||||||
* | add a finalize() method for blocks | Alon Zakai | 2016-03-07 | 1 | -4/+3 | |
| | ||||||
* | update select changes in spec | Alon Zakai | 2016-03-02 | 1 | -4/+4 | |
| | ||||||
* | support function indexes in tables | Alon Zakai | 2016-02-25 | 1 | -1/+8 | |
| | ||||||
* | Merge pull request #210 from mbebenita/fix-parsing | Alon Zakai | 2016-02-23 | 1 | -1/+1 | |
|\ | | | | | Bug fix and adds printing / parsing tests. | |||||
| * | Bug fix and adds printing / parsing tests. | Michael | 2016-02-22 | 1 | -1/+1 | |
| | |