summaryrefslogtreecommitdiff
path: root/test/example/c-api-relooper-unreachable-if.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Shared memory support for add memory import and set memory functions. (#1686)Nidin Vinayakan2018-10-111-2/+2
|
* Unify imported and non-imported things (#1678)Alon Zakai2018-09-191-1/+1
| | | | | | | | | | | | | | Fixes #1649 This moves us to a single object for functions, which can be imported or nor, and likewise for globals (as a result, GetGlobals do not need to check if the global is imported or not, etc.). All imported things now inherit from Importable, which has the module and base of the import, and if they are set then it is an import. For convenient iteration, there are a few helpers like ModuleUtils::iterDefinedGlobals(wasm, [&](Global* global) { .. use global .. }); as often iteration only cares about imported or defined (non-imported) things.
* Add getters for various specific expression fields to C/JS (#1332)Daniel Wirtz2017-12-201-20/+20
|
* Provide AddImport/AddExport for each element in the C-API (#1292)Daniel Wirtz2017-11-221-14/+14
| | | | * Provide AddImport/AddExport for each element in the C-API
* Update binaryen-c/binaryen.js, fixes #1028, fixes #1029 (#1030)Daniel Wirtz2017-06-071-31/+31
| | | 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.
* finalize interim ifs in relooper, and other if handling issues (#940)Alon Zakai2017-03-131-0/+557