Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Added BinaryenAtomic* incl. ops to binaryen-c (#1276) | Daniel Wirtz | 2017-11-09 | 1 | -1/+47 | |
| | | | | | | * Added BinaryenAtomicRMW incl. ops to binaryen-c * AtomicCmpxchg, AtomicWait, AtomicWake | |||||
* | Use 'BinaryenGlobalRef' instead of 'BinaryenImportRef' for globals in ↵ | Daniel Wirtz | 2017-11-07 | 1 | -1/+1 | |
| | | | | binaryen-c (#1270) | |||||
* | Added the ability to run specific optimization passes to binaryen-c/.js (#1252) | Daniel Wirtz | 2017-10-30 | 1 | -0/+21 | |
| | ||||||
* | notation change: AST => IR (#1245) | Alon Zakai | 2017-10-24 | 1 | -1/+1 | |
| | | | The IR is indeed a tree, but not an "abstract syntax tree" since there is no language for which it is the syntax (except in the most trivial and meaningless sense). | |||||
* | Add missing finalize() call to C API for call_indirect (#1184) | Sergey Pepyakin | 2017-09-14 | 1 | -0/+1 | |
| | ||||||
* | Add missing prototypes for globals in binaryen-c.h (#1183) | Sergey Pepyakin | 2017-09-13 | 1 | -2/+2 | |
| | | | | | | * Add missing prototypes for globals in binaryen-c.h * Use int8_t for mutable_ | |||||
* | Initial asm.js output for binaryen-c / binaryen.js (#1136) | Daniel Wirtz | 2017-08-24 | 1 | -1/+17 | |
| | | | | * Added BinaryenModulePrintAsmjs (using wasm2asm) + Module#emitAsmjs JS binding | |||||
* | refactor and improve break validation. breaks names are unique, so we don't ↵ | Alon Zakai (kripken) | 2017-07-11 | 1 | -0/+1 | |
| | | | | need a stack, and break targets must exist even if they are not actually taken | |||||
* | Add atomic loads and stores (#1077) | Derek Schuff | 2017-06-28 | 1 | -2/+2 | |
| | | | | | Add IR, wast and binary support for atomic loads and stores. Currently all IR generated by means other than parsing wast and binary files always generates non-atomic accesses, and optimizations have not yet been made aware of atomics, so they are certainly not ready to be used yet. | |||||
* | S-expression parsing in C API and binaryen.js (#1050) | Alon Zakai | 2017-06-13 | 1 | -0/+18 | |
| | | | | | | * add C API and binaryen.js support for parsing s-expressions * update js builds and tests | |||||
* | C API fixes (#1042) | Alon Zakai | 2017-06-07 | 1 | -16/+17 | |
| | | | | | | * fix mutex usage in C API, and some minor cleanup around it too * update testcase that was forgotten to be updated before | |||||
* | Update binaryen-c/binaryen.js, fixes #1028, fixes #1029 (#1030) | Daniel Wirtz | 2017-06-07 | 1 | -4/+102 | |
| | | | This PR adds global variable support (addGlobal, getGlobal, setGlobal), host operations (currentMemory, growMemory), a few utility functions (removeImport, removeExport, getFunctionTypeBySignature with the latter being scheduled for removal once a better alternative is in place) and it introduces an additional argument to specify the result type in BinaryenBlock (effectively breaking the C-API but retaining previous behaviour by introducing the BinaryenUndefined() type for this purpose). Additionally, it enables compilation with exception support in build-js.sh as exceptions are thrown and caught when optimizing endless loops, intentionally resulting in an unreachable opcode. Affected test cases have been updated accordingly. | |||||
* | New binaryen.js (#922) | Alon Zakai | 2017-03-24 | 1 | -1/+1 | |
| | | | New binaryen.js implementation, based on the C API underneath and with a JS-friendly API on top. See docs under docs/ for API details. | |||||
* | clean up raw pointer import->functionType, make it a Name like everything ↵ | Alon Zakai | 2017-02-17 | 1 | -1/+1 | |
| | | | | else (#915) | |||||
* | Merge pull request #871 from WebAssembly/fix-c-api-unused-mem | Alon Zakai | 2017-01-05 | 1 | -0/+1 | |
|\ | | | | | Mark memory as existing when it is created in the C API | |||||
| * | mark memory as existing when it is created in the C API | Alon Zakai (kripken) | 2017-01-04 | 1 | -0/+1 | |
| | | ||||||
* | | Print long string in one call (#864) | Loo Rong Jie | 2017-01-03 | 1 | -11/+11 | |
|/ | ||||||
* | More binary updates for 0xc (#733) | Derek Schuff | 2016-10-03 | 1 | -0/+1 | |
| | | | | | | | | | | | | | | | Refine tables to explicitly exist or not. Previously they were printed or encoded if it had any segments, or an initial or max size. However tables can be defined but empty, so we had a special hack that defined an empty segment when we really just wanted an empty table. Now, just make the existence explicit. Update Function table encoding for 0xc (Table and Element sections) Add end opcodes after function bodies (these are consumed by getMaybeBlock with the same behavior that it had before when it reached the function end, so no explicit decode) Update call_indirect encoding for 0xc (no arity, call target is last) | |||||
* | Refactor Import::Kind and Export::Kind into an ExternalKind enum class (#725) | Alon Zakai | 2016-10-03 | 1 | -2/+2 | |
| | ||||||
* | refactor wasm.h to remove numericIndex hacks, and move indexing to the parsers | Alon Zakai | 2016-09-21 | 1 | -0/+1 | |
| | ||||||
* | import type for globals | Alon Zakai | 2016-09-07 | 1 | -1/+1 | |
| | ||||||
* | import kinds | Alon Zakai | 2016-09-07 | 1 | -0/+1 | |
| | ||||||
* | export kinds | Alon Zakai | 2016-09-07 | 1 | -1/+7 | |
| | ||||||
* | loops no longer have an out label and other upstream loop updates | Alon Zakai | 2016-09-07 | 1 | -6/+3 | |
| | ||||||
* | add drop and tee expressions | Alon Zakai | 2016-09-07 | 1 | -2/+41 | |
| | ||||||
* | offset support in table | Alon Zakai | 2016-08-15 | 1 | -2/+4 | |
| | ||||||
* | support function table initial and max sizes, and new printing format | Alon Zakai | 2016-08-12 | 1 | -0/+1 | |
| | ||||||
* | support expressions in segment offsets | Alon Zakai | 2016-08-12 | 1 | -4/+4 | |
| | ||||||
* | Don't emit empty array literals in trace output (#631) | Alon Zakai | 2016-07-13 | 1 | -6/+18 | |
| | | | | * don't emit empty array literals in trace output | |||||
* | relooper tracing + fixes | Alon Zakai | 2016-07-12 | 1 | -49/+40 | |
| | ||||||
* | allow multiple traces | Alon Zakai | 2016-07-12 | 1 | -15/+24 | |
| | ||||||
* | add a tracing option to the c api, which logs out a runnable program from c ↵ | Alon Zakai | 2016-07-12 | 1 | -13/+425 | |
| | | | | api calls | |||||
* | clarify the local/var/param distinction | Alon Zakai | 2016-07-07 | 1 | -3/+3 | |
| | ||||||
* | Relooper switch support (#617) | Alon Zakai | 2016-07-02 | 1 | -2/+6 | |
| | | | | | | * support switches in relooper and c api * update relooper fuzzer for switches | |||||
* | make creating functions and types parallelizable in c api (#603) | Alon Zakai | 2016-06-26 | 1 | -2/+20 | |
| | ||||||
* | add c api method to interpret a module, calling its start method (#601) | Alon Zakai | 2016-06-25 | 1 | -0/+8 | |
| | ||||||
* | add BinaryenExpressionPrint to c api (#599) | Alon Zakai | 2016-06-24 | 1 | -0/+5 | |
| | ||||||
* | make call_indirect type a name, so that it is not a dependency on the ↵ | Alon Zakai | 2016-06-03 | 1 | -4/+5 | |
| | | | | module, which would break consistency and make some parallel passes tricky (#568) | |||||
* | Added static_cast to prevent direct conversion from subclasses to void*. (#502) | MI3Guy | 2016-05-19 | 1 | -20/+20 | |
| | ||||||
* | use separate internal opcodes for binary variants | Alon Zakai | 2016-05-18 | 1 | -33/+76 | |
| | ||||||
* | use separate internal opcodes for unary variants | Alon Zakai | 2016-05-18 | 1 | -11/+22 | |
| | ||||||
* | allow not providing a name for function types in c api (#501) | Alon Zakai | 2016-05-13 | 1 | -4/+2 | |
| | ||||||
* | show parse errors in c api | Alon Zakai | 2016-05-12 | 1 | -1/+2 | |
| | ||||||
* | use exceptions consistently to report input errors | Alon Zakai | 2016-05-12 | 1 | -3/+5 | |
| | ||||||
* | Replace NULL with nullptr. Quiet VS warnings. (#466) | BSalita | 2016-05-11 | 1 | -1/+1 | |
| | | | Replace NULL with nullptr. Quiet Visual Studio 2015 optimizer warnings by prepending "!!". | |||||
* | allow error handling in binary parsing | Alon Zakai | 2016-05-09 | 1 | -1/+3 | |
| | ||||||
* | Changed empty parameter functions in C API to void. | John Bentley | 2016-05-07 | 1 | -2/+2 | |
| | ||||||
* | add a return type parameter to call and call_import in the C API. we need it ↵ | Alon Zakai | 2016-05-06 | 1 | -2/+4 | |
| | | | | since we don't know the type while building functions | |||||
* | add reading and writing binaries to C API (#443) | Alon Zakai | 2016-05-05 | 1 | -0/+21 | |
| | ||||||
* | add validation to the C api, and fix things that uncovered in the C API tests | Alon Zakai | 2016-05-05 | 1 | -3/+9 | |
| |