summaryrefslogtreecommitdiff
path: root/src/wasm.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Factor out bit_cast.JF Bastien2016-01-281-14/+3
|
* Don't emit NaN payload when zero.JF Bastien2016-01-281-7/+11
|
* Output NaN payloads onlyJF Bastien2016-01-281-6/+12
| | | | As discussed with @binji and @sunfish in https://github.com/WebAssembly/sexpr-wasm-prototype/issues/28
* Write each memory segment on its own lineJF Bastien2016-01-271-2/+2
| | | | 30k+ column files are silly.
* Adds a --metrics command line argument to print metrics about .wast files ↵Michael2016-01-271-0/+26
| | | | between optimization passes.
* Parenthesize macro arguments.Dan Gohman2016-01-271-2/+2
|
* fix select typeAlon Zakai2016-01-271-0/+5
|
* improve assertAlon Zakai2016-01-271-1/+7
|
* avoid emitting a block in a loop when the .wast format allows doing so #139Alon Zakai2016-01-231-1/+10
|
* only the IString constructor for Name can avoid memory copyingAlon Zakai2016-01-201-1/+1
|
* Don't allow re-using memoryJF Bastien2016-01-201-1/+1
|
* Name: support std::string ctorJF Bastien2016-01-201-0/+1
| | | This makes other code less verbose
* Merge pull request #103 from mbebenita/static-polyAlon Zakai2016-01-191-195/+215
|\ | | | | Use LLVM style static polymorphism for AST Visitors
| * Add unreachable macro for the default case.Michael Bebenita2016-01-151-4/+1
| |
| * Add default case so that GCC doesn't complain.Michael Bebenita2016-01-141-0/+4
| |
| * Some cleanup.Michael Bebenita2016-01-141-31/+39
| |
| * Use LLVM style static polymorphism for WasmVisitors.Michael Bebenita2016-01-131-126/+131
| |
| * A more generic compiler pass system.Michael Bebenita2016-01-131-86/+92
| |
* | The break operation may have a value, and must with the v8 encoding.Douglas Crosher2016-01-181-2/+2
| |
* | initial work on wasm-disAlon Zakai2016-01-131-0/+1
| |
* | avoid unportable sizes in wasm.hAlon Zakai2016-01-131-2/+2
|/
* refactor FunctionType to always be accessed from the Module's central store, ↵Alon Zakai2016-01-111-2/+6
| | | | which is necessary for simple binary writing
* Add Travis builds with sanitizersJF Bastien2016-01-101-2/+3
| | | | | | | | | | | | | | | | 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.
* fix default being a br in switch #70Alon Zakai2016-01-071-1/+1
|
* fix switch br/case printing #70Alon Zakai2016-01-061-1/+5
|
* Print nan literals as `nan:0x...` rather than `nan:...` to match the spec.Dan Gohman2016-01-061-2/+2
|
* print infinity properly #71Alon Zakai2016-01-061-0/+4
|
* fix missing slash in reinterpret/i* #73Alon Zakai2016-01-061-1/+1
|
* s2wasm: load/store swap offset/align paramsJF Bastien2016-01-061-6/+6
| | | | | | | | | These should probably be commutable so humans don't have to remember which order to read/write things in, but there's pushback and this really doesn't matter so fix it here, bikeshed on github. This will require an associated fix in sexpr-wasm's GCC torture test failure list. Ref: https://github.com/WebAssembly/sexpr-wasm-prototype/issues/17 Ref: https://github.com/WebAssembly/spec/pull/205
* do not print a toplevel block in functions if we don't need one #32Alon Zakai2016-01-051-1/+10
|
* Fix a few Windows/VS2013 compile errorsAndrew Scheidecker2015-12-231-0/+1
|
* Fix / uniformize include guardsJF Bastien2015-12-221-3/+9
|
* Fix warnings found by GCCJF Bastien2015-12-221-0/+3
| | | | | | My previous patch addressed all LLVM warnings, this one addresses all the GCC ones as well (mostly signed / unsigned mix). The patch also turns on -Wall -Werror.
* Add missing virtual dtorJF Bastien2015-12-221-0/+1
| | | | Deleting a Pass* wasn't doing the right thing.
* s2wasm: add outfileJF Bastien2015-12-221-0/+2
| | | | Use some C++ in a few places. I'll propagate similar changes to the rest of the codebase later. I also need to turn off colors when outputting to a file (isatty on stdout doesn't do that with -o) but I'll do it in a separate PR because it'll touch more files.
* Fix the license headersJF Bastien2015-12-211-1/+15
| | | | This applies Apache 2.0 properly (as far as our lawyers have told me). We can do this early since all of the code was written by Alon Zakai.
* remove Label, which was removed from the specAlon Zakai2015-12-181-40/+19
|
* start to emit metadata from s2wasmAlon Zakai2015-12-141-0/+6
|
* more escapingAlon Zakai2015-12-121-3/+3
|
* more escapingAlon Zakai2015-12-121-1/+3
|
* finish escaping and add many more .s filesAlon Zakai2015-12-121-2/+7
|
* more escapingAlon Zakai2015-12-121-1/+15
|
* fix memory_size printingAlon Zakai2015-12-121-1/+1
|
* share operands in a base class for all callsAlon Zakai2015-12-121-6/+11
|
* commentAlon Zakai2015-11-271-2/+3
|
* handle no default when printing switchAlon Zakai2015-11-271-2/+3
|
* unify convert/compare into unary/binary, and do a pre-pass in s-expression ↵Alon Zakai2015-11-271-122/+80
| | | | parser for function types, to fix new assertions that notice some missing types
* fix case printingAlon Zakai2015-11-221-1/+1
|
* clean up import double spaceAlon Zakai2015-11-211-1/+1
|
* clean up br printingAlon Zakai2015-11-211-0/+5
|