Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | rewrite SimplifyLocals to use FastExecutionWalker | Alon Zakai | 2016-04-07 | 1 | -12/+71 | |
| | | ||||||
| * | traversal improvements | Alon Zakai | 2016-04-06 | 1 | -34/+55 | |
| | | ||||||
| * | move some methods to WasmWalkerBase | Alon Zakai | 2016-04-06 | 1 | -27/+25 | |
| | | ||||||
| * | EffectsAnalyzer | Alon Zakai | 2016-04-06 | 1 | -0/+42 | |
| | | ||||||
| * | refactor a WasmReplacerWalker class | Alon Zakai | 2016-04-06 | 1 | -54/+51 | |
| | | ||||||
| * | add FastExecutionWalker | Alon Zakai | 2016-04-06 | 1 | -1/+101 | |
| | | ||||||
| * | remove obsolete comment | Alon Zakai | 2016-04-06 | 1 | -1/+0 | |
| | | ||||||
| * | refactor wasm traversal code into separate file | Alon Zakai | 2016-04-06 | 5 | -295/+324 | |
| | | ||||||
* | | Ensure that all static initializer functions are exported | Derek Schuff | 2016-04-06 | 1 | -10/+14 | |
|/ | ||||||
* | optimize if-eqz | Alon Zakai | 2016-04-06 | 3 | -0/+45 | |
| | ||||||
* | Fix output of initializer list metadata | Derek Schuff | 2016-04-06 | 1 | -1/+6 | |
| | | | | | | * 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 | 1 | -2/+5 | |
| | | | | | | 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 | 1 | -0/+5 | |
| | | | | | | 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 | 3 | -34/+40 | |
| | | | | | | | | | | | | * 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 | 1 | -2/+32 | |
| | | | | | | | 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. | |||||
* | 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 | |
| | ||||||
* | more idl additions fix idl test | Alon Zakai | 2016-04-04 | 1 | -0/+3 | |
| | ||||||
* | trap on bad callExport, don't assert | Alon Zakai | 2016-04-04 | 1 | -1/+1 | |
| | ||||||
* | more idl | Alon Zakai | 2016-04-04 | 1 | -0/+16 | |
| | ||||||
* | refactor printing | Alon Zakai | 2016-04-04 | 7 | -16/+29 | |
| | ||||||
* | add necessary idl constructors | Alon Zakai | 2016-04-04 | 1 | -0/+4 | |
| | ||||||
* | add debug param for SExpressionWasmBuilder | Alon Zakai | 2016-04-04 | 3 | -3/+3 | |
| | ||||||
* | refactor shell interface into its own file | Alon Zakai | 2016-04-04 | 4 | -166/+191 | |
| | ||||||
* | add simpler constructor for SExpressionWasmBuilder | Alon Zakai | 2016-04-04 | 3 | -0/+84 | |
| | ||||||
* | clean up callExport types | Alon Zakai | 2016-04-04 | 1 | -1/+1 | |
| | ||||||
* | clean up old comments | Alon Zakai | 2016-04-04 | 1 | -2/+0 | |
| | ||||||
* | add apis for accessing module elements | Alon Zakai | 2016-04-04 | 12 | -58/+72 | |
| | ||||||
* | handle unaligned i64 loads in wasm-js.cpp | Alon Zakai | 2016-04-04 | 1 | -1/+15 | |
| | ||||||
* | 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 | |||||
* | fix reallocBuffer to send growWasmMemory a size in pages | Alon Zakai | 2016-04-01 | 1 | -1/+4 | |
| | ||||||
* | handle minified tempDoublePtr | Alon Zakai | 2016-04-01 | 1 | -2/+2 | |
| | ||||||
* | optimize bitcast patterns in asm2wasm | Alon Zakai | 2016-04-01 | 1 | -0/+60 | |
| | ||||||
* | refactor file flags into enums | Alon Zakai | 2016-03-31 | 8 | -23/+35 | |
| | ||||||
* | set the binary bit on files we need to open in binary mode | Alon Zakai | 2016-03-31 | 8 | -22/+27 | |
| | ||||||
* | Merge pull request #301 from pjuftring/file-size_check | Alon Zakai | 2016-03-31 | 1 | -1/+1 | |
|\ | | | | | Repair broken file-size check | |||||
| * | Repair broken file-size check | pjuftring | 2016-03-31 | 1 | -1/+1 | |
| | | ||||||
* | | Fix the build with GCC 5.3.1 and Clang 3.8.0. | Csaba Osztrogonác | 2016-03-31 | 3 | -14/+14 | |
|/ | | | | Fixes #299 | |||||
* | fix wasm.js loads of aligned i64s | Alon Zakai | 2016-03-30 | 1 | -0/+4 | |
| | ||||||
* | fix wasm.js loads of i64 that read <8 bytes | Alon Zakai | 2016-03-30 | 1 | -8/+9 | |
| | ||||||
* | Merge pull request #295 from tzik/grow_memory_fix | Alon Zakai | 2016-03-30 | 1 | -2/+2 | |
|\ | | | | | Fix grow_memory translation on s2wasm | |||||
| * | Fix grow_memory translation on s2wasm | tzik | 2016-03-30 | 1 | -2/+2 | |
| | | | | | | | | | | s2wasm used to mistranslate grow_memory operation in .s into memory_size in .wast, and this CL fixes it. | |||||
* | | add explicit function types for indirect call targtets in s2wasm | Alon Zakai | 2016-03-29 | 1 | -0/+6 | |
| | | ||||||
* | | use ensureFunctionType in s2wasm, to ensure consistent function type names | Alon Zakai | 2016-03-29 | 1 | -10/+1 | |
| | | ||||||
* | | Merge pull request #291 from WebAssembly/updates | Alon Zakai | 2016-03-29 | 1 | -2/+2 | |
|\ \ | | | | | | | Updates | |||||
| * | | avoid alignof for the sake of vs | Alon Zakai | 2016-03-29 | 1 | -2/+2 | |
| | | | ||||||
* | | | 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 | |
| | |