summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix VS warning in Relooper.h (#467)BSalita2016-05-111-1/+1
|
* Replace NULL with nullptr. Quiet VS warnings. (#466)BSalita2016-05-111-1/+1
| | | Replace NULL with nullptr. Quiet Visual Studio 2015 optimizer warnings by prepending "!!".
* Change NULL to nullptr. Quiet Visual C++ 2015 optimizer errors by using ↵BSalita2016-05-111-6/+6
| | | | "!!". (#465)
* Add a pass to order functions by their use frequency. (#452)Michael Bebenita2016-05-112-0/+63
|
* use an int32_t for BinaryenLiteral in the C API, simpler and good enough ↵Alon Zakai2016-05-101-1/+1
| | | | since we translate anyhow (#462)
* add error handling for binary errors in new spec testAlon Zakai2016-05-091-7/+7
|
* allow error handling in binary parsingAlon Zakai2016-05-094-4/+9
|
* parse binary modules encoded in wasts that arrive in piecesAlon Zakai2016-05-091-8/+9
|
* allow appending in stringToBinaryAlon Zakai2016-05-091-5/+7
|
* parse binary modules encoded in watsAlon Zakai2016-05-091-0/+14
|
* refactor string to binary parsing in s-expression code so that we can use it ↵Alon Zakai2016-05-091-35/+44
| | | | in more places
* Be more careful when loading i64 in wasm-js glue, we had a bug where the ↵Alon Zakai2016-05-081-10/+13
| | | | bits were trampled before we read them (#460)
* use CMAKE_THREAD_LIBS_INIT as a target link library, which unbreaks breakage ↵Alon Zakai2016-05-071-0/+1
| | | | from #390 (#450)
* Merge pull request #454 from MI3Guy/masterAlon Zakai2016-05-072-4/+4
|\ | | | | Minor fixes for C API
| * Changed empty parameter functions in C API to void.John Bentley2016-05-072-4/+4
| |
* | use atomics on MixedArena list generation instead of locking (#456)Alon Zakai2016-05-071-15/+31
| |
* | fix block finalize(type) (#457)Alon Zakai2016-05-071-1/+1
| |
* | Use more static libraries in the CMake build (#451)Derek Schuff2016-05-074-0/+33
|/ | | | | | | | | | | * Factor passes and emscripten-optimizer into static libs This removes the redundancies from the source sets in the main CMakeLists.txt. * Make passes an object lib * Use static libs with --whole-archive because Travis has old cmake
* add a return type parameter to call and call_import in the C API. we need it ↵Alon Zakai2016-05-063-4/+14
| | | | since we don't know the type while building functions
* comments in c api headerAlon Zakai2016-05-061-2/+4
|
* Fix BreakSeeker for switch default targets. (#447)Michael Bebenita2016-05-061-0/+1
|
* add reading and writing binaries to C API (#443)Alon Zakai2016-05-052-0/+28
|
* Merge pull request #439 from WebAssembly/c-api-moreAlon Zakai2016-05-054-6/+20
|\ | | | | Validation in C API
| * add validation to the C api, and fix things that uncovered in the C API testsAlon Zakai2016-05-052-5/+15
| |
| * improve validator error message on set_localAlon Zakai2016-05-051-1/+1
| |
| * fix set_local finalize()Alon Zakai2016-05-051-0/+4
| |
* | Fix NaN / 0 (#442)JF Bastien2016-05-051-4/+30
| | | | | | As discussed in: https://github.com/WebAssembly/spec/pull/282#issuecomment-217280544
* | Merge pull request #436 from WebAssembly/fix-switchAlon Zakai2016-05-051-6/+11
|\ \ | | | | | | Fix switches in simplify-locals
| * | clear sinkables on unoptimizable blocks, as they have a control flow mergeAlon Zakai2016-05-051-6/+10
| | |
| * | note defaults of switches in SimplifyLocalsAlon Zakai2016-05-051-0/+1
| |/
* | make wasm.js safe in closure compiler (#438)Alon Zakai2016-05-051-1/+1
| |
* | [Linker] Make repeated passes over archive members (#440)Derek Schuff2016-05-051-15/+23
| | | | | | | | | | | | | | | | | | An archive member can depend on any other archive member, so adding a member to the link can introduce new undefined references that must be satisfied. The linker must continue to iterate over the members until nothing new is added to the link.
* | make print flags in archive.cpp nicer (#437)Alon Zakai2016-05-051-2/+2
|/
* add optimization to c api, and so that we can find all passes in the c api ↵Alon Zakai2016-05-052-0/+11
| | | | library, make it dynamic
* handle missing local names in ReorderLocalsAlon Zakai2016-05-051-2/+5
|
* better error on missing passesAlon Zakai2016-05-051-1/+2
|
* simplify PassRunner API, get a module directlyAlon Zakai2016-05-055-10/+11
|
* fix archive.cpp on 32-bitAlon Zakai2016-05-051-1/+1
|
* Import emscripten's relooper, port it to the binaryen AST, and provide a C ↵Alon Zakai2016-05-056-5/+1368
| | | | | API (#434) also ignore libstdc++ bug in ubsan
* [Linker] Handle archive filesDerek Schuff2016-05-056-15/+402
| | | | | | | | Add a class to parse archive files. Support linking archive files, with archive semantics (i.e. an archive member is linked in if it satisfies an undefined reference). Archive files must be gnu-format archives containing .s files. Add tests for linking semantics.
* Nicer shift masks (#431)JF Bastien2016-05-041-7/+13
| | | | | | | | * Nicer shift masks * Yet nicer shift mask. * Fix typo.
* Harmonize the internal opcodes with the binary format (#433)Alon Zakai2016-05-0313-136/+228
| | | | | | * harmonize the internal opcodes with the binary format, so they clearly parallel, and also this helps us avoid needing the type to disambiguate * comment on GetLocal in C API
* Merge pull request #427 from WebAssembly/c-api-niceAlon Zakai2016-05-034-3/+644
|\ | | | | C API
| * kitchen sink test for c apiAlon Zakai2016-05-033-13/+23
| |
| * C API plus testAlon Zakai2016-05-022-0/+619
| |
| * add a default finalize() so it is valid to call on any nodeAlon Zakai2016-05-021-1/+3
| |
| * makeLoop and makeBreakAlon Zakai2016-05-021-2/+12
| |
* | Fix signed integer overflow UB (#430)JF Bastien2016-05-032-7/+7
| | | | | | This puts us back where #404 wanted to be: all UB that ubsan knows about now causes an abort. This ins't to say that it's all gone, merely that our tests don't trigger any more UB which ubsan knows how to find :-)
* | Fix shift UB (#429)JF Bastien2016-05-031-6/+6
| | | | | | Getting close to finishing #404.
* | Fix null UB (#428)JF Bastien2016-05-031-33/+37
| | | | | | | | | | As a continuation to #404, fix a dereference of a std::vector's zeroth element when the size of the vector is zero. Symptom: stl_vector.h:866:9: runtime error: reference binding to null pointer of type 'char'