From 5682b0e455ee45aa2c84949811ee9a3d6edd9066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Cabrera?= Date: Thu, 23 Jan 2025 16:23:55 -0500 Subject: [PATCH] winch(docs): Update docs on calls (#10093) While auditing this module, I noticed that the documentation is out of date. --- winch/codegen/src/codegen/call.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/winch/codegen/src/codegen/call.rs b/winch/codegen/src/codegen/call.rs index f4dec97a925a..8bb10be47435 100644 --- a/winch/codegen/src/codegen/call.rs +++ b/winch/codegen/src/codegen/call.rs @@ -32,17 +32,19 @@ //! The machine stack throughout the function call is as follows: //! ┌──────────────────────────────────────────────────┐ //! │ │ -//! │ 1 │ //! │ Stack space created by any previous spills │ //! │ from the value stack; and which memory values │ //! │ are used as function arguments. │ //! │ │ //! ├──────────────────────────────────────────────────┤ ---> The Wasm value stack at this point in time would look like: -//! │ │ [ Mem(offset) | Mem(offset) | Local(index) | Local(index) ] -//! │ 2 │ +//! │ │ //! │ Stack space created by spilling locals and | //! │ registers at the callsite. │ //! │ │ +//! ├─────────────────────────────────────────────────┬┤ +//! │ │ +//! │ Return Area (Multi-value results) │ +//! │ │ //! │ │ //! ├─────────────────────────────────────────────────┬┤ ---> The Wasm value stack at this point in time would look like: //! │ │ [ Mem(offset) | Mem(offset) | Mem(offset) | Mem(offset) ]