summaryrefslogtreecommitdiff
path: root/src/s2wasm.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Support startJF Bastien2016-02-051-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 timeDerek Schuff2016-02-041-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 requestAlon Zakai2016-02-021-1/+1
|
* use Return in s2wasmAlon Zakai2016-02-011-10/+1
|
* fix call_indirect s2wasm parsing order #162Alon Zakai2016-02-011-9/+5
|
* clean up refactored call processing codeAlon Zakai2016-02-011-15/+12
|
* refactor call processing code in s2wasm to not share as much between ↵Alon Zakai2016-02-011-31/+43
| | | | call_indirect and the others, as we need to rewrite the call_indirect code
* Do relocation properly when ignoring unknown symbolsJF Bastien2016-01-301-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 symbolsJF Bastien2016-01-271-7/+14
| | | | This is useful for bringup.
* s2wasm: support aliased functionsJF Bastien2016-01-271-7/+30
|
* support tee_local in .s filesAlon Zakai2016-01-271-0/+9
|
* Ignore meta data emitted by clang on Mac OS XAlexander Meißner2016-01-261-1/+11
|
* support p2align for function alignment in s2wasmAlon Zakai2016-01-251-1/+1
|
* accept either align or p2align on globals in s2wasmAlon Zakai2016-01-251-1/+1
|
* handle new alignment format from llvmAlon Zakai2016-01-251-2/+44
|
* allocate __stack_pointer completelyAlon Zakai2016-01-221-1/+3
|
* Merge pull request #103 from mbebenita/static-polyAlon Zakai2016-01-191-2/+2
|\ | | | | Use LLVM style static polymorphism for AST Visitors
| * Some cleanup.Michael Bebenita2016-01-141-1/+1
| |
| * Use LLVM style static polymorphism for WasmVisitors.Michael Bebenita2016-01-131-2/+2
| |
* | improve abort on unknown symbolAlon Zakai2016-01-161-1/+1
|/
* some function parsing changes in s2wasm, due to upstream llvmAlon Zakai2016-01-131-1/+7
|
* update s2wasm for new block and loop format in .s files from llvm #97Alon Zakai2016-01-121-37/+45
|
* refactor FunctionType to always be accessed from the Module's central store, ↵Alon Zakai2016-01-111-2/+2
| | | | which is necessary for simple binary writing
* ignore @FUNCTIONAlon Zakai2016-01-111-2/+12
|
* Check for negative overflow.JF Bastien2016-01-111-30/+50
|
* Add Travis builds with sanitizersJF Bastien2016-01-101-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 .skipJF Bastien2016-01-071-1/+1
| | | | LLVM will generate this now.
* handle .zero x, yAlon Zakai2016-01-071-1/+6
|
* LLVM is now emitting private labels with a ".L" prefix. Update binaryen.Dan Gohman2016-01-071-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 Zakai2016-01-061-1/+1
|\
| * handle/ignore visibilities in s2wasmAlon Zakai2016-01-061-1/+1
| |
* | get proper full type, including result, for indirect call types #77Alon Zakai2016-01-061-3/+1
| |
* | fix type of ne and neg in s2wasm #72Alon Zakai2016-01-061-2/+2
|/
* set function type of imports in s2wasm #68Alon Zakai2016-01-061-6/+10
|
* remove another obsolete commentAlon Zakai2015-12-291-1/+0
|
* remove obsolete commentAlon Zakai2015-12-291-1/+1
|
* merge addressings and relocations, improve getConst, and use that to easily ↵Alon Zakai2015-12-271-41/+12
| | | | implement negative offsets
* implement a temporary hack for __stack_pointerAlon Zakai2015-12-261-5/+10
|
* start to implement lcommAlon Zakai2015-12-251-8/+17
|
* ignore lcomm for nowAlon Zakai2015-12-251-3/+4
|
* fix function indexing in s2wasmAlon Zakai2015-12-251-2/+2
|
* no need to reverse call operands anymoreAlon Zakai2015-12-251-1/+0
|
* handle global addressings starting with '_'Alon Zakai2015-12-251-1/+5
|
* emit memory size in s2wasmAlon Zakai2015-12-251-0/+1
|
* handle function indexes in relocationsAlon Zakai2015-12-251-5/+20
|
* fix const literals in s2wasm on 64-bitAlon Zakai2015-12-251-2/+6
|
* ignore function alignment, and parse globl in main process loopAlon Zakai2015-12-241-1/+2
|
* fix relocations into a segment with multiple partsAlon Zakai2015-12-241-3/+16
|
* emit tables in s2wasmAlon Zakai2015-12-231-4/+15
|
* handle combined globals better in s2wasmAlon Zakai2015-12-231-7/+16
|