about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-02-02 17:34:03 -0800
committerKartik Agaram <vc@akkartik.com>2020-02-02 17:34:03 -0800
commit0566c88ff4f8589fa526153fb933242229cc3b8f (patch)
tree563abfe1f833f0c690a4146b6908df6892732f61
parentf01db8bbc28f3133dd24c01a5ab26bc2f034c8b7 (diff)
downloadmu-0566c88ff4f8589fa526153fb933242229cc3b8f.tar.gz
5980
-rw-r--r--apps/mu.subx6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/mu.subx b/apps/mu.subx
index 8732e9d9..e598433c 100644
--- a/apps/mu.subx
+++ b/apps/mu.subx
@@ -2807,7 +2807,7 @@ populate-mu-function-body:  # in: (addr buffered-file), out: (handle function),
     # initialize some global state
     c7 0/subop/copy *Curr-block-depth 1/imm32
     c7 0/subop/copy *Next-local-stack-offset -4/imm32
-    # var eax: (handle block) = parse-mu-block(in, vars)
+    # var eax: (handle block) = parse-mu-block(in, vars, fn)
     (parse-mu-block %esi *(ebp+0x10) %edi)  # => eax
     # out->body = eax
     89/<- *(edi+0x10) 0/r32/eax  # Function-body
@@ -2856,7 +2856,7 @@ parse-mu-block:  # in: (addr buffered-file), vars: (addr stack (handle var)), fn
     #     else if slice-equal?(word-slice, "}")
     #       break
     #     else if slice-ends-with?(word-slice, ":")
-    #       # TODO: check the rest of line
+    #       # TODO: error-check the rest of 'line'
     #       named-block = parse-mu-named-block(word-slice, in, vars, fn)
     #       append-to-block(result, named-block)
     #     else if slice-equal?(word-slice, "var")
@@ -3752,7 +3752,7 @@ $new-function:end:
     5d/pop-to-ebp
     c3/return
 
-new-var:  # ad: (addr allocation-descriptor), name: (addr array byte), type: int, block: int, stack-offset: int, register: (addr array byte) -> result/eax: (handle var)
+new-var:  # ad: (addr allocation-descriptor), name: (addr array byte), type: (addr tree type-id), block: int, stack-offset: int, register: (addr array byte) -> result/eax: (handle var)
     # . prologue
     55/push-ebp
     89/<- %ebp 4/r32/esp