Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Support start | JF Bastien | 2016-02-05 | 1 | -6/+47 | |
| | | | | | | | | | | | | | | As spec'd in: https://github.com/WebAssembly/design/pull/495 And discussed in: https://github.com/WebAssembly/spec/issues/231 This will make it simpler and more uniform to add a start entry point. s2wasm is the right place to add start because it'll eventually need to do other basic setup, e.g. put code in start to setup the stack, as dschuff is doing in: https://github.com/WebAssembly/binaryen/pull/179 Or rather, the linker is the right place and s2wasm happens to act as our linker right now. | |||||
* | Add an option to allocate space for user stack at link time | Derek Schuff | 2016-02-04 | 1 | -4/+30 | |
| | | | | | | | | | Currently s2wasm pre-allocates space for the special __stack_pointer variable but not for the actual stack, and __stack_pointer is null. On real systems the stack is allocated by the dynamic linker, thread runtime, or other toolchain/system-provided startup code. Since we don't have any of that in wasm yet, just add an option to allocate the stack in the linker for now, so we can continue to run single-file libc-free tests. | |||||
* | save int bits in Literals, only bitcast to float/double on explicit request | Alon Zakai | 2016-02-02 | 1 | -1/+1 | |
| | ||||||
* | use Return in s2wasm | Alon Zakai | 2016-02-01 | 1 | -10/+1 | |
| | ||||||
* | fix call_indirect s2wasm parsing order #162 | Alon Zakai | 2016-02-01 | 1 | -9/+5 | |
| | ||||||
* | clean up refactored call processing code | Alon Zakai | 2016-02-01 | 1 | -15/+12 | |
| | ||||||
* | refactor call processing code in s2wasm to not share as much between ↵ | Alon Zakai | 2016-02-01 | 1 | -31/+43 | |
| | | | | call_indirect and the others, as we need to rewrite the call_indirect code | |||||
* | Do relocation properly when ignoring unknown symbols | JF Bastien | 2016-01-30 | 1 | -2/+4 | |
| | | | | My previous patch didn't perform the relocation, so it stuck around. Make it a nullptr instead. | |||||
* | Add s2wasm option to ignore unknown symbols | JF Bastien | 2016-01-27 | 1 | -7/+14 | |
| | | | | This is useful for bringup. | |||||
* | s2wasm: support aliased functions | JF Bastien | 2016-01-27 | 1 | -7/+30 | |
| | ||||||
* | support tee_local in .s files | Alon Zakai | 2016-01-27 | 1 | -0/+9 | |
| | ||||||
* | Ignore meta data emitted by clang on Mac OS X | Alexander Meißner | 2016-01-26 | 1 | -1/+11 | |
| | ||||||
* | support p2align for function alignment in s2wasm | Alon Zakai | 2016-01-25 | 1 | -1/+1 | |
| | ||||||
* | accept either align or p2align on globals in s2wasm | Alon Zakai | 2016-01-25 | 1 | -1/+1 | |
| | ||||||
* | handle new alignment format from llvm | Alon Zakai | 2016-01-25 | 1 | -2/+44 | |
| | ||||||
* | allocate __stack_pointer completely | Alon Zakai | 2016-01-22 | 1 | -1/+3 | |
| | ||||||
* | Merge pull request #103 from mbebenita/static-poly | Alon Zakai | 2016-01-19 | 1 | -2/+2 | |
|\ | | | | | Use LLVM style static polymorphism for AST Visitors | |||||
| * | Some cleanup. | Michael Bebenita | 2016-01-14 | 1 | -1/+1 | |
| | | ||||||
| * | Use LLVM style static polymorphism for WasmVisitors. | Michael Bebenita | 2016-01-13 | 1 | -2/+2 | |
| | | ||||||
* | | improve abort on unknown symbol | Alon Zakai | 2016-01-16 | 1 | -1/+1 | |
|/ | ||||||
* | some function parsing changes in s2wasm, due to upstream llvm | Alon Zakai | 2016-01-13 | 1 | -1/+7 | |
| | ||||||
* | update s2wasm for new block and loop format in .s files from llvm #97 | Alon Zakai | 2016-01-12 | 1 | -37/+45 | |
| | ||||||
* | refactor FunctionType to always be accessed from the Module's central store, ↵ | Alon Zakai | 2016-01-11 | 1 | -2/+2 | |
| | | | | which is necessary for simple binary writing | |||||
* | ignore @FUNCTION | Alon Zakai | 2016-01-11 | 1 | -2/+12 | |
| | ||||||
* | Check for negative overflow. | JF Bastien | 2016-01-11 | 1 | -30/+50 | |
| | ||||||
* | Add Travis builds with sanitizers | JF Bastien | 2016-01-10 | 1 | -7/+21 | |
| | | | | | | | | | | | | | | | | This triggers 5 independent build / test runs: - clang, no sanitizer; - clang, UB sanitizer; - clang, address sanitizer (disabled for now); - clang, thread sanitizer (disabled for now); - GCC. Enabling UBSan led to these changes: - Fix a bunch of undefined behavior throughout the code base. - Fix some tests that relied on that undefined behavior. - Make some of the tests easier to debug by printing their command line. - Add ubsan blacklist to work around libstdc++ bug. - Example testcase also needs sanitizer because libsupport.a uses it. | |||||
* | Handle .skip | JF Bastien | 2016-01-07 | 1 | -1/+1 | |
| | | | | LLVM will generate this now. | |||||
* | handle .zero x, y | Alon Zakai | 2016-01-07 | 1 | -1/+6 | |
| | ||||||
* | LLVM is now emitting private labels with a ".L" prefix. Update binaryen. | Dan Gohman | 2016-01-07 | 1 | -3/+3 | |
| | | | | | The .L prefix convention is admittedly not the prettiest convention possible, but it is widely used in the ELF ecosystem. | |||||
* | Merge branch 'sections-visibilties' | Alon Zakai | 2016-01-06 | 1 | -1/+1 | |
|\ | ||||||
| * | handle/ignore visibilities in s2wasm | Alon Zakai | 2016-01-06 | 1 | -1/+1 | |
| | | ||||||
* | | get proper full type, including result, for indirect call types #77 | Alon Zakai | 2016-01-06 | 1 | -3/+1 | |
| | | ||||||
* | | fix type of ne and neg in s2wasm #72 | Alon Zakai | 2016-01-06 | 1 | -2/+2 | |
|/ | ||||||
* | set function type of imports in s2wasm #68 | Alon Zakai | 2016-01-06 | 1 | -6/+10 | |
| | ||||||
* | remove another obsolete comment | Alon Zakai | 2015-12-29 | 1 | -1/+0 | |
| | ||||||
* | remove obsolete comment | Alon Zakai | 2015-12-29 | 1 | -1/+1 | |
| | ||||||
* | merge addressings and relocations, improve getConst, and use that to easily ↵ | Alon Zakai | 2015-12-27 | 1 | -41/+12 | |
| | | | | implement negative offsets | |||||
* | implement a temporary hack for __stack_pointer | Alon Zakai | 2015-12-26 | 1 | -5/+10 | |
| | ||||||
* | start to implement lcomm | Alon Zakai | 2015-12-25 | 1 | -8/+17 | |
| | ||||||
* | ignore lcomm for now | Alon Zakai | 2015-12-25 | 1 | -3/+4 | |
| | ||||||
* | fix function indexing in s2wasm | Alon Zakai | 2015-12-25 | 1 | -2/+2 | |
| | ||||||
* | no need to reverse call operands anymore | Alon Zakai | 2015-12-25 | 1 | -1/+0 | |
| | ||||||
* | handle global addressings starting with '_' | Alon Zakai | 2015-12-25 | 1 | -1/+5 | |
| | ||||||
* | emit memory size in s2wasm | Alon Zakai | 2015-12-25 | 1 | -0/+1 | |
| | ||||||
* | handle function indexes in relocations | Alon Zakai | 2015-12-25 | 1 | -5/+20 | |
| | ||||||
* | fix const literals in s2wasm on 64-bit | Alon Zakai | 2015-12-25 | 1 | -2/+6 | |
| | ||||||
* | ignore function alignment, and parse globl in main process loop | Alon Zakai | 2015-12-24 | 1 | -1/+2 | |
| | ||||||
* | fix relocations into a segment with multiple parts | Alon Zakai | 2015-12-24 | 1 | -3/+16 | |
| | ||||||
* | emit tables in s2wasm | Alon Zakai | 2015-12-23 | 1 | -4/+15 | |
| | ||||||
* | handle combined globals better in s2wasm | Alon Zakai | 2015-12-23 | 1 | -7/+16 | |
| |