Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Harmonize the internal opcodes with the binary format (#433) | Alon Zakai | 2016-05-03 | 1 | -30/+40 | |
| | | | | | | * 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 | |||||
* | Check LEB128 encoding fits in destination integer (#408) | JF Bastien | 2016-04-30 | 1 | -7/+23 | |
| | | | | | | | | | | | * Check LEB128 encoding fits in destination integer As found by #404, the insignificant LEB128 bits were silently dropped when dealing with signed LEB values which tripped UBSAN in hello_world. This fixes #409. * Fix typo. | |||||
* | validate in binaryen shell and on wasm binaries, and fix type checking | Alon Zakai | 2016-04-29 | 1 | -0/+6 | |
| | ||||||
* | get the reinterpret opcodes right on float/int | Alon Zakai | 2016-04-28 | 1 | -6/+6 | |
| | ||||||
* | fix size detection on reinterpret operations in binary format | Alon Zakai | 2016-04-28 | 1 | -2/+2 | |
| | ||||||
* | avoid dynamic allocas (#410) | Alon Zakai | 2016-04-28 | 1 | -2/+3 | |
| | ||||||
* | just use a simple vector in data segments | Alon Zakai | 2016-04-27 | 1 | -8/+6 | |
| | ||||||
* | allocate only expressions in arenas - functions, imports, exports, function ↵ | Alon Zakai | 2016-04-27 | 1 | -15/+14 | |
| | | | | 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 | |||||
* | Remove UB (#405) | JF Bastien | 2016-04-27 | 1 | -8/+6 | |
| | | | | | ubsan fails with: wasm-binary.h:97:32: runtime error: left shift of negative value -1 Also use type_traits for is_signed. | |||||
* | 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 | -111/+113 | |
| | ||||||
* | emit ifs in an optimized way in binary format | Alon Zakai | 2016-04-26 | 1 | -2/+16 | |
| | ||||||
* | use arities in calls | Alon Zakai | 2016-04-25 | 1 | -3/+9 | |
| | ||||||
* | use arities on switch | Alon Zakai | 2016-04-25 | 1 | -4/+4 | |
| | ||||||
* | use arities on returns | Alon Zakai | 2016-04-25 | 1 | -4/+6 | |
| | ||||||
* | use arities on breaks | Alon Zakai | 2016-04-25 | 1 | -4/+4 | |
| | ||||||
* | allow allocations on side threads (#365) | Alon Zakai | 2016-04-24 | 1 | -3/+1 | |
| | ||||||
* | fix conversion opcodes (#381) | Alon Zakai | 2016-04-22 | 1 | -44/+44 | |
| | ||||||
* | br_table offsets are int32s, not lebs | Alon Zakai | 2016-04-22 | 1 | -4/+4 | |
| | ||||||
* | put segments in right order | Alon Zakai | 2016-04-21 | 1 | -4/+6 | |
| | ||||||
* | function toplevels is a list | Alon Zakai | 2016-04-21 | 1 | -6/+6 | |
| | ||||||
* | ifs in the binary format always have a break scope | Alon Zakai | 2016-04-21 | 1 | -12/+23 | |
| | ||||||
* | fix if and else bodies, which can be lists | Alon Zakai | 2016-04-21 | 1 | -13/+11 | |
| | ||||||
* | fix loop binary parsing | Alon Zakai | 2016-04-21 | 1 | -4/+19 | |
| | ||||||
* | if condition is popped from before, not pre-order inline | Alon Zakai | 2016-04-21 | 1 | -3/+3 | |
| | ||||||
* | update br_table in binary format | Alon Zakai | 2016-04-21 | 1 | -13/+8 | |
| | ||||||
* | fix a reinterpret opcode | Alon Zakai | 2016-04-21 | 1 | -1/+1 | |
| | ||||||
* | update eqz opcodes | Alon Zakai | 2016-04-21 | 1 | -3/+2 | |
| | ||||||
* | name unnamed functions in binaries | Alon Zakai | 2016-04-21 | 1 | -1/+1 | |
| | ||||||
* | function ending fixes | Alon Zakai | 2016-04-21 | 1 | -16/+15 | |
| | ||||||
* | support not exporting memory in binaries | Alon Zakai | 2016-04-21 | 1 | -2/+5 | |
| | ||||||
* | update binary version to 0xb | Alon Zakai | 2016-04-20 | 1 | -4/+9 | |
| | ||||||
* | extensible type forms, update for design#640 (#367) | Alon Zakai | 2016-04-19 | 1 | -2/+20 | |
| | ||||||
* | update MemorySize => CurrentMemory | Alon Zakai | 2016-04-18 | 1 | -5/+5 | |
| | ||||||
* | update binary section names per latest design (#363) | Alon Zakai | 2016-04-18 | 1 | -9/+9 | |
| | ||||||
* | remove the AllocatingModule class, and just make Module have allocations. ↵ | Alon Zakai | 2016-04-18 | 1 | -2/+2 | |
| | | | | 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 | -39/+33 | |
| | | | | 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 | -9/+9 | |
| | | | | locals. preparation for #336 (#349) | |||||
* | De-recurse traversals (#333) | Alon Zakai | 2016-04-11 | 1 | -1/+1 | |
| | | | | | | | | | | | | * refactor core walking to not recurse * add a simplify-locals test * reuse parent's non-branchey scan logic in SimpleExecutionWalker, reduce code duplication * update wasm.js * rename things following comments | |||||
* | refactor wasm traversal code into separate file | Alon Zakai | 2016-04-06 | 1 | -0/+1 | |
| | ||||||
* | fix assertion | Alon Zakai | 2016-04-05 | 1 | -1/+1 | |
| | ||||||
* | binary codes update and if/else update, see design#641 | Alon Zakai | 2016-04-05 | 1 | -35/+44 | |
| | ||||||
* | reorder section size location in binary format, see design#639 | Alon Zakai | 2016-04-05 | 1 | -4/+7 | |
| | ||||||
* | add apis for accessing module elements | Alon Zakai | 2016-04-04 | 1 | -2/+1 | |
| | ||||||
* | Clean Visual Studio build warning C4800: 'int64_t': forcing value to bool ↵ | Jukka Jylänki | 2016-03-28 | 1 | -1/+1 | |
| | | | | 'true' or 'false' (performance warning). | |||||
* | Merge pull request #251 from mbebenita/opt-wasm-as | Alon Zakai | 2016-03-22 | 1 | -11/+22 | |
|\ | | | | | Optimize function => index mapping. | |||||
| * | Flip condition. | Michael Bebenita | 2016-03-22 | 1 | -8/+2 | |
| | | ||||||
| * | Optimize function => index mapping. | Michael Bebenita | 2016-03-16 | 1 | -9/+26 | |
| | | ||||||
* | | update spec tests and support eqz | Alon Zakai | 2016-03-19 | 1 | -0/+5 | |
| | | ||||||
* | | proper signed LEB | Alon Zakai | 2016-03-18 | 1 | -12/+63 | |
| | |