Skip to content

Commit

Permalink
Try to add back some inline(always) statement to compare contracts size
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Jan 9, 2024
1 parent 0e3cfea commit 1ded19f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions substrate/frame/contracts/uapi/src/host/wasm32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ impl HostFn for HostFnImpl {
ret_code.into()
}

#[inline(always)]
fn call_v1(
flags: CallFlags,
callee: &[u8],
Expand Down Expand Up @@ -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) }
}
Expand Down

0 comments on commit 1ded19f

Please sign in to comment.