summaryrefslogtreecommitdiff
path: root/src/feature.cc
Commit message (Collapse)AuthorAgeFilesLines
* Enable reference types by default (#1729)Sam Clegg2021-10-131-2/+2
| | | | | | | | | This features was finished earlier this year: https://github.com/WebAssembly/proposals/blob/master/finished-proposals.md One thing to note is that the version of the spec tests we currently have in third_party/testsuite doesn't have ref types merged yet so this change disables ref types when running some of those tests. This can be removed in a followup when we update the testsuite.
* Begin support for typed function references proposal: added the flag and ↵Dmitry Bezhetskov2021-07-251-0/+6
| | | | supported call_ref (#1691)
* Add exnref value type to parser (#1389)Ben Smith2020-04-141-0/+4
| | | | | | | | | | | | The exnref type was already supported in the type checker, and other parts of the code, but there was no way to name the type in the text format. This PR also fixes makes binary-reader.cc check for just the exceptions_enabled flag to enable exnref. The exception-handling proposal depends on the reference types proposal, but that is now handled at a higher level, in the `UpdateDependencies` function. Fixes issue #1388.
* Update testsuite (#1308)Ben Smith2020-01-161-0/+7
| | | | | | | | | | * Remove `assert_return_func`. This is now handled by using `assert_return` with `(ref.func)`. * The reference types proposal depends on the bulk memory proposal, so using `--enable-reference-types` automatically includes `--enable-bulk-memory`. * `table.fill` no longer clamps to the valid range, and instead checks before writing anything. This matches the other bulk instructions.
* Add --enable-all option (#1132)Heejin Ahn2019-07-291-0/+2
| | | This adds `--enable-all` option that enables all existing features.
* Update testsuite; enable mut. globals by default (#884)Ben Smith2018-08-031-2/+8
| | | | | | | | The newest testsuite update enables mutable globals by default, which matches the v1 WebAssembly spec. This change changes the default for all wabt tools, and changes the flag to `--disable-mutable-globals` in case you need the previous behavior. This flag will likely be removed in the future.
* Run clang-format over all the files (#814)Ben Smith2018-03-161-2/+1
| | | | I also fixed some for/if to use braces if I noticed it. This is a non-functional change.
* Add an interface to enable features (#624)Michael Ferris2017-09-131-1/+1
| | | | | | * Add an interface to enable features * Nit fixes
* Always include quoted headers like "src/foo.h" (#601)Ben Smith2017-08-301-3/+3
| | | This way the names won't conflict with other headers with the same name.
* Add saturating float truncation operators (#573)Ben Smith2017-08-161-0/+32
Add saturating truncation operators as described here: https://github.com/webassembly/nontrapping-float-to-int-conversions. This change also codifies the mechanism for enabling new WebAssembly features by passing the `Features` object. Opcode now has a `IsEnabled(const Features&)` member function to query if the opcode is enabled. This means that the `--future-exceptions` flag has been renamed to `--enable-exceptions` for consistency. Checking whether the feature is enabled always happens at input; either WastParser or BinaryReader.