From 58f82587462543e912b4edcbb247842711ba6415 Mon Sep 17 00:00:00 2001 From: Janito Vaqueiro Ferreira Filho Date: Fri, 23 Aug 2024 16:46:51 -0300 Subject: [PATCH] Support 17 parameters in typed functions (#9170) Increase the limit of supported typed parameters in functions, in order to support the WIT interface of functions that have 16 flat type parameters plus an extra pointer for the heap return area. --- crates/wasmtime/src/runtime/func.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/wasmtime/src/runtime/func.rs b/crates/wasmtime/src/runtime/func.rs index 92734837657e..e5c0092a19ee 100644 --- a/crates/wasmtime/src/runtime/func.rs +++ b/crates/wasmtime/src/runtime/func.rs @@ -354,6 +354,7 @@ macro_rules! for_each_function_signature { $mac!(14 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14); $mac!(15 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15); $mac!(16 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16); + $mac!(17 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17); }; }