From 1ded19faccfa206b104b06d735d0cd74715ec6d7 Mon Sep 17 00:00:00 2001 From: pgherveou Date: Tue, 9 Jan 2024 14:49:36 +0100 Subject: [PATCH] Try to add back some inline(always) statement to compare contracts size --- substrate/frame/contracts/uapi/src/host/wasm32.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/substrate/frame/contracts/uapi/src/host/wasm32.rs b/substrate/frame/contracts/uapi/src/host/wasm32.rs index a56035bd98ad..9372649134e1 100644 --- a/substrate/frame/contracts/uapi/src/host/wasm32.rs +++ b/substrate/frame/contracts/uapi/src/host/wasm32.rs @@ -449,6 +449,7 @@ impl HostFn for HostFnImpl { ret_code.into() } + #[inline(always)] fn call_v1( flags: CallFlags, callee: &[u8], @@ -693,6 +694,7 @@ impl HostFn for HostFnImpl { extract_from_slice(output, output_len as usize); } + #[inline(always)] fn return_value(flags: ReturnFlags, return_value: &[u8]) -> ! { unsafe { sys::seal_return(flags.bits(), return_value.as_ptr(), return_value.len() as u32) } }