From 97ffce39c8d65cb976af002e114486a817d36170 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 25 Apr 2024 09:23:56 -0700 Subject: [Strings] Fuzz string.encode (#6539) A little trickier than the others due to the risk of trapping, which this handles like the other array operations. Also stop using immutable i16 arrays for string operations - only mutable ones work atm. --- ...nslate-to-fuzz_all-features_metrics_noprint.txt | 61 +++++++++++----------- 1 file changed, 30 insertions(+), 31 deletions(-) (limited to 'test/passes') diff --git a/test/passes/translate-to-fuzz_all-features_metrics_noprint.txt b/test/passes/translate-to-fuzz_all-features_metrics_noprint.txt index 84f62758f..648cb053b 100644 --- a/test/passes/translate-to-fuzz_all-features_metrics_noprint.txt +++ b/test/passes/translate-to-fuzz_all-features_metrics_noprint.txt @@ -1,44 +1,43 @@ total - [exports] : 3 - [funcs] : 5 + [exports] : 7 + [funcs] : 12 [globals] : 14 [imports] : 5 [memories] : 1 [memory-data] : 20 - [table-data] : 1 + [table-data] : 6 [tables] : 1 [tags] : 1 - [total] : 387 - [vars] : 23 + [total] : 493 + [vars] : 31 ArrayNew : 1 - ArrayNewFixed : 3 - AtomicCmpxchg : 1 - AtomicNotify : 1 - Binary : 57 - Block : 33 + ArrayNewFixed : 1 + Binary : 61 + Block : 59 Break : 2 - Call : 4 - Const : 95 - Drop : 2 - GlobalGet : 15 - GlobalSet : 15 - If : 9 + Call : 29 + CallRef : 1 + Const : 101 + Drop : 10 + GlobalGet : 28 + GlobalSet : 26 + I31Get : 1 + If : 17 Load : 16 - LocalGet : 41 - LocalSet : 20 - Loop : 3 - Nop : 2 - Pop : 1 - RefAs : 3 - RefFunc : 2 + LocalGet : 36 + LocalSet : 29 + Loop : 2 + Nop : 5 + RefAs : 1 + RefCast : 2 + RefFunc : 8 RefI31 : 4 - RefNull : 5 + RefNull : 4 Return : 3 - Store : 1 + SIMDExtract : 1 StringConst : 1 - StructNew : 11 - Try : 1 - TupleExtract : 7 - TupleMake : 11 - Unary : 9 - Unreachable : 8 + StructNew : 5 + TupleExtract : 1 + TupleMake : 7 + Unary : 16 + Unreachable : 15 -- cgit v1.2.3