summaryrefslogtreecommitdiff
path: root/test/binaryen.js/validation_errors.js.txt
Commit message (Collapse)AuthorAgeFilesLines
* Refactor printing code so that printing Expressions always works (#3450)Alon Zakai2020-12-171-2/+2
| | | | | | | | This avoids needing to add include wasm-printing if a file doesn't already have it. To achieve that, add the std::ostream hooks in wasm.h, and also use them when possible, removing the need for the special WasmPrinter object. Also stop printing in "full" (print types on each line) in error messages by default. The user can still get that, as always, using BINARYEN_PRINT_FULL=1 in the env.
* Remove FunctionType (#2510)Thomas Lively2019-12-111-2/+0
| | | | | | | | | | | | | | | | | Function signatures were previously redundantly stored on Function objects as well as on FunctionType objects. These two signature representations had to always be kept in sync, which was error-prone and needlessly complex. This PR takes advantage of the new ability of Type to represent multiple value types by consolidating function signatures as a pair of Types (params and results) stored on the Function object. Since there are no longer module-global named function types, significant changes had to be made to the printing and emitting of function types, as well as their parsing and manipulation in various passes. The C and JS APIs and their tests also had to be updated to remove named function types.
* Don't include `$` with names unless outputting to wat format (#2506)Sam Clegg2019-12-061-3/+3
| | | | | | | | | | | The `$` is not actually part of the name, its the marker that starts a name in the wat format. It can be confusing to see it show up when doing `cerr << name`, for example. This change has Print.cpp add the `$` which seem like the right place to do this. Plus it revealed a bunch of places where were not calling printName to escape all the names we were printing.
* Massive renaming (#1855)Thomas Lively2019-01-071-6/+6
| | | | | | Automated renaming according to https://github.com/WebAssembly/spec/issues/884#issuecomment-426433329.
* Optimize equivalent locals (#1540)Alon Zakai2018-05-101-0/+2
| | | | | | | | | If locals are known to contain the same value, we can * Pick which local to use for a get_local of any of them. Makes sense to prefer the most common, to increase the chance of one dropping to zero uses. * Remove copies between a local and one that we know contains the same value. This is a consistent win, small though, around 0.1-0.2%.
* Validation fixes for #1317 (#1347)Alon Zakai2018-01-031-0/+6
* add get_global/set_global validation * validate get_local index * update builds * fix tests