Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | refactor wasm traversal code into separate file | Alon Zakai | 2016-04-06 | 5 | -295/+324 |
| | |||||
* | optimize if-eqz | Alon Zakai | 2016-04-06 | 13 | -2881/+2509 |
| | |||||
* | Fix output of initializer list metadata | Derek Schuff | 2016-04-06 | 2 | -2/+7 |
| | | | | | | * Fix output of initializer list metadata Turns out trailing commas aren't valid JSON | ||||
* | Fix s2wasm handling of aliased functions | Derek Schuff | 2016-04-06 | 3 | -6/+15 |
| | | | | | | This fixes 2 bugs in s2wasm: * Handle address-taken aliases (i.e. when they appear in relocations), by looking up and subsituting the address of the aliasee. * Skip whitespace at the top of the scan() loop instead of requiring it to match. When there are multiple alias declarations in a row, the match("FUNCTION") at the end of an alias delcaration consumes the whitespace at the beginning of the next line, causing it to fail to match the tab character specified in the match pattern at the top of the loop. | ||||
* | Allocate __dso_handle in s2wasm | Derek Schuff | 2016-04-06 | 20 | -34/+61 |
| | | | | | | Unlike asm.js modules, wasm modules cannot have imported/extern objects. So allocate __dso_handle (which is traditionally defined in a crtbegin or similar toolchain file linked with the user code) in s2wasm. | ||||
* | Properly align the stack pointer | Derek Schuff | 2016-04-06 | 74 | -206/+308 |
| | | | | | | | | | | | | * Properly align the stack pointer By default (if no global base is given) the global base is 1, which seems wrong. In this case the stack pointer gets an address of 1, which is unaligned and definitely wrong. So, start the global base at 0 instead of 1 by default and align the stack pointer. Also factor allocation of statics into a function. * unconditionally allocate stack pointer; explicitly reserve address 0 | ||||
* | Handle static initializers | Derek Schuff | 2016-04-06 | 69 | -68/+136 |
| | | | | | | | LLVM emits static initializers in the ELF style, by placing pointers to the constructor functions in a .init_array section. Handle this in s2wasm for now by converting these to standard emscripten metadata. | ||||
* | Merge pull request #314 from WebAssembly/binary-updates | Alon Zakai | 2016-04-05 | 2 | -3091/+3126 |
|\ | | | | | Some binary format updates | ||||
| * | fix assertion | Alon Zakai | 2016-04-05 | 2 | -2700/+2700 |
| | | |||||
| * | update wasm.js | Alon Zakai | 2016-04-05 | 1 | -2764/+2769 |
| | | |||||
| * | binary codes update and if/else update, see design#641 | Alon Zakai | 2016-04-05 | 1 | -35/+44 |
| | | |||||
| * | update wasm.js | Alon Zakai | 2016-04-05 | 1 | -2962/+2980 |
| | | |||||
| * | reorder section size location in binary format, see design#639 | Alon Zakai | 2016-04-05 | 1 | -4/+7 |
|/ | |||||
* | Merge pull request #312 from WebAssembly/webidl | Alon Zakai | 2016-04-05 | 22 | -193/+73586 |
|\ | | | | | WebIDL bindings | ||||
| * | fix example testcase | Alon Zakai | 2016-04-05 | 1 | -1/+1 |
| | | |||||
| * | add testing for binaryen.js | Alon Zakai | 2016-04-04 | 3 | -0/+73204 |
| | | |||||
| * | more idl additions fix idl test | Alon Zakai | 2016-04-04 | 2 | -1/+5 |
| | | |||||
| * | trap on bad callExport, don't assert | Alon Zakai | 2016-04-04 | 1 | -1/+1 |
| | | |||||
| * | idl test fixes | Alon Zakai | 2016-04-04 | 1 | -2/+2 |
| | | |||||
| * | more idl | Alon Zakai | 2016-04-04 | 2 | -1/+31 |
| | | |||||
| * | refactor printing | Alon Zakai | 2016-04-04 | 7 | -16/+29 |
| | | |||||
| * | add necessary idl constructors | Alon Zakai | 2016-04-04 | 2 | -0/+6 |
| | | |||||
| * | add debug param for SExpressionWasmBuilder | Alon Zakai | 2016-04-04 | 3 | -3/+3 |
| | | |||||
| * | update example | Alon Zakai | 2016-04-04 | 1 | -1/+1 |
| | | |||||
| * | refactor shell interface into its own file | Alon Zakai | 2016-04-04 | 5 | -167/+192 |
| | | |||||
| * | add simpler constructor for SExpressionWasmBuilder | Alon Zakai | 2016-04-04 | 5 | -2/+115 |
| | | |||||
| * | clean up callExport types | Alon Zakai | 2016-04-04 | 1 | -1/+1 |
| | | |||||
| * | clean up old comments | Alon Zakai | 2016-04-04 | 1 | -2/+0 |
|/ | |||||
* | Merge pull request #311 from WebAssembly/module-access | Alon Zakai | 2016-04-04 | 17 | -4755/+4831 |
|\ | | | | | Access module elements using calls | ||||
| * | update wasm.js | Alon Zakai | 2016-04-04 | 1 | -4691/+4753 |
| | | |||||
| * | add apis for accessing module elements | Alon Zakai | 2016-04-04 | 16 | -64/+78 |
| | | |||||
* | | Merge pull request #310 from WebAssembly/load64unaligned | Alon Zakai | 2016-04-04 | 2 | -25811/+25816 |
|\| | | | | | Fix unaligned 64-bit loads in wasm.js | ||||
| * | update wasm.js | Alon Zakai | 2016-04-04 | 1 | -25810/+25801 |
| | | |||||
| * | handle unaligned i64 loads in wasm-js.cpp | Alon Zakai | 2016-04-04 | 1 | -1/+15 |
|/ | |||||
* | Merge pull request #309 from WebAssembly/update-4893 | Alon Zakai | 2016-04-04 | 18 | -411/+1438 |
|\ | | | | | Update to waterfall 4893 | ||||
| * | Update to waterfall 4893 | JF Bastien | 2016-04-04 | 18 | -411/+1438 |
| | | | | | | | | New failure with: [trap final > memory: 18446744073709551600 > 65524] | ||||
* | | Merge pull request #308 from WebAssembly/update-emscripten | Alon Zakai | 2016-04-01 | 3 | -2819/+2855 |
|\ \ | | | | | | | Update emscripten | ||||
| * | | update wasm.js | Alon Zakai | 2016-04-01 | 1 | -2819/+2843 |
| | | | |||||
| * | | verify imports are valid in wasm.js, do not wait to abort if/when they are ↵ | Alon Zakai | 2016-04-01 | 1 | -0/+12 |
| | | | | | | | | | | | | called | ||||
| * | | update emscripten | Alon Zakai | 2016-04-01 | 1 | -0/+0 |
|/ / | |||||
* | | Merge pull request #307 from WebAssembly/updates | Alon Zakai | 2016-04-01 | 2 | -26034/+26187 |
|\ \ | | | | | | | Fix memory growth | ||||
| * | | update wasm.js | Alon Zakai | 2016-04-01 | 1 | -26033/+26183 |
| | | | |||||
| * | | fix reallocBuffer to send growWasmMemory a size in pages | Alon Zakai | 2016-04-01 | 1 | -1/+4 |
| | | | |||||
* | | | Merge pull request #286 from WebAssembly/asm2wasm-opts | Alon Zakai | 2016-04-01 | 7 | -1/+148 |
|\| | | | | | | | | asm2wasm opts | ||||
| * | | handle minified tempDoublePtr | Alon Zakai | 2016-04-01 | 4 | -2/+46 |
| | | | |||||
| * | | optimize bitcast patterns in asm2wasm | Alon Zakai | 2016-04-01 | 3 | -56/+68 |
| | | | |||||
| * | | add a test for bitcast patterns in asm2wasm | Alon Zakai | 2016-04-01 | 3 | -1/+92 |
|/ / | |||||
* | | Merge pull request #305 from WebAssembly/enums | Alon Zakai | 2016-04-01 | 8 | -23/+35 |
|\ \ | | | | | | | Refactor file flags into enums | ||||
| * | | refactor file flags into enums | Alon Zakai | 2016-03-31 | 8 | -23/+35 |
|/ / | |||||
* | | Merge pull request #303 from WebAssembly/binary-files-for-windows | JF Bastien | 2016-03-31 | 8 | -22/+27 |
|\ \ | | | | | | | Set the binary bit on files we need to open in binary mode |