summaryrefslogtreecommitdiff
path: root/scripts/clang-tidy-diff.sh
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2020-04-16 19:03:55 -0700
committerGitHub <noreply@github.com>2020-04-16 19:03:55 -0700
commit727c91af3bc1a317107fbffb0e7bab778dc3f5b6 (patch)
tree95c56137d76413a6b268d2047a1f6dc54cc7d60a /scripts/clang-tidy-diff.sh
parentc9162258a5364f31907786078685b567878c79db (diff)
downloadbinaryen-727c91af3bc1a317107fbffb0e7bab778dc3f5b6.tar.gz
binaryen-727c91af3bc1a317107fbffb0e7bab778dc3f5b6.tar.bz2
binaryen-727c91af3bc1a317107fbffb0e7bab778dc3f5b6.zip
Dummy interpreter support for EH (#2774)
This adds dummy interpreter support for EH instructions, mainly for fuzzing. The plan is to make the interpreter support for EH instructions correctly using Asyncify in the future. Also to support the correct behavior we will need a `Literal` of `exnref` type too, which will be added later too. Currently what this dummy implementation does is: - `try`-`catch`-`end`: only runs `try` body and ignores `catch` body - `throw`: traps - `retyrow`: - Traps on nullref argument (correct behavior based on the spec) - Traps otherwise too (dummy implementation for now) - `br_on_exn`: - Traps on nullref (correct behavior) - Otherwise we assume the current expression matches the current event and extracts a 0 literal based on the current type. This also adds some interpreter tests, which tests the basic dummy behaviors for now. (Deleted tests are the ones that weren't tested before.)
Diffstat (limited to 'scripts/clang-tidy-diff.sh')
0 files changed, 0 insertions, 0 deletions