Skip to content

Commit

Permalink
winch(docs): Update docs on calls (bytecodealliance#10093)
Browse files Browse the repository at this point in the history
While auditing this module, I noticed that the documentation is out of
date.
  • Loading branch information
saulecabrera authored Jan 23, 2025
1 parent b86b968 commit 5682b0e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions winch/codegen/src/codegen/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) ]
Expand Down

0 comments on commit 5682b0e

Please sign in to comment.