From 0566c88ff4f8589fa526153fb933242229cc3b8f Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 2 Feb 2020 17:34:03 -0800 Subject: 5980 --- apps/mu.subx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/mu.subx') 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 -- cgit 1.4.1-2-gfad0