Skip to content

Commit

Permalink
Add Inner frame documentation based on AST frame
Browse files Browse the repository at this point in the history
- this seems correct to me, but I didn’t actually check it…

Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Apr 4, 2024
1 parent 470bab2 commit b1d5754
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/som/interpreter/ast/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
# Inner
#
# +-----------------+
# | OnStack |
# | OnStack | boolean indicating whether the frame is still on the stack
# +-----------------+
# | Receiver |
# | Receiver | the same as the receiver in the frame, not to be changed
# +-----------------+
# | ArgForInner 1 |
# | ... |
Expand Down
16 changes: 16 additions & 0 deletions src/som/interpreter/bc/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,22 @@
# | ... |
# | Local n |
# +-----------+
#
# Inner
#
# +-----------------+
# | OnStack | boolean indicating whether the frame is still on the stack
# +-----------------+
# | Receiver | the same as the receiver in the frame, not to be changed
# +-----------------+
# | ArgForInner 1 |
# | ... |
# | ArgForInner n |
# +-----------------+
# | LocalForInner 1 |
# | ... |
# | LocalForInner n |
# +-----------------+


def create_frame(
Expand Down

0 comments on commit b1d5754

Please sign in to comment.