diff options
author | Alon Zakai <azakai@google.com> | 2024-10-23 10:17:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-23 10:17:13 -0700 |
commit | dcc70bbfb16c2f8fce29dad94d80d1b78123655f (patch) | |
tree | 05db3b38ea848cef1010eac458549f012342b2fa /test/passes/fuzz_metrics_noprint.bin.txt | |
parent | 0d9b7508e5de1ca7befef493ed3e357b8a5613a1 (diff) | |
download | binaryen-dcc70bbfb16c2f8fce29dad94d80d1b78123655f.tar.gz binaryen-dcc70bbfb16c2f8fce29dad94d80d1b78123655f.tar.bz2 binaryen-dcc70bbfb16c2f8fce29dad94d80d1b78123655f.zip |
[EH] Fuzz throws from JS (#7027)
We already generated (throw ..) instructions in wasm, but it makes sense to model
throws from outside as well, as they cross the module boundary. This adds a new fuzzer
import to the generated modules, "throw", that just does a throw from JS etc.
Also be more precise about handling fuzzing-support imports in fuzz-exec: we now
check that logging functions start with "log*" and error otherwise (this check is
now needed given we have "throw", which is not logging). Also fix a minor issue
with name conflicts for logging functions by using getValidFunctionName for them,
both for logging and for throw.
Diffstat (limited to 'test/passes/fuzz_metrics_noprint.bin.txt')
-rw-r--r-- | test/passes/fuzz_metrics_noprint.bin.txt | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/test/passes/fuzz_metrics_noprint.bin.txt b/test/passes/fuzz_metrics_noprint.bin.txt index 2f1719633..fab2ccc9d 100644 --- a/test/passes/fuzz_metrics_noprint.bin.txt +++ b/test/passes/fuzz_metrics_noprint.bin.txt @@ -1,35 +1,35 @@ Metrics total - [exports] : 23 - [funcs] : 34 + [exports] : 50 + [funcs] : 72 [globals] : 9 [imports] : 4 [memories] : 1 [memory-data] : 2 - [table-data] : 6 + [table-data] : 25 [tables] : 1 [tags] : 0 - [total] : 4303 - [vars] : 100 - Binary : 355 - Block : 684 - Break : 149 - Call : 219 + [total] : 4381 + [vars] : 218 + Binary : 335 + Block : 725 + Break : 120 + Call : 210 CallIndirect : 23 - Const : 643 - Drop : 50 - GlobalGet : 367 - GlobalSet : 258 - If : 206 - Load : 78 - LocalGet : 339 - LocalSet : 236 - Loop : 93 - Nop : 41 - RefFunc : 6 - Return : 45 - Select : 41 - Store : 36 - Switch : 1 - Unary : 304 - Unreachable : 129 + Const : 692 + Drop : 64 + GlobalGet : 391 + GlobalSet : 298 + If : 236 + Load : 71 + LocalGet : 285 + LocalSet : 209 + Loop : 76 + Nop : 63 + RefFunc : 25 + Return : 60 + Select : 23 + Store : 29 + Switch : 2 + Unary : 293 + Unreachable : 151 |