diff options
Diffstat (limited to 'tnslc/compile/function.tnsl')
| -rw-r--r-- | tnslc/compile/function.tnsl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tnslc/compile/function.tnsl b/tnslc/compile/function.tnsl index f0aac81..73188b8 100644 --- a/tnslc/compile/function.tnsl +++ b/tnslc/compile/function.tnsl @@ -105,10 +105,10 @@ struct Function { cb`.add_c(" push r14\n\0") cb`.add_c(" push r15 ; scope init\n\n\0") - # TODO: Add all params to the scope + # Add all params to the scope ~Var in /; loop (int i = 0; i < self.inputs.count) [i++] - in = self.inputs.get(i) + inp = self.inputs.get(i) out.mk_set_var(in) ;/ @@ -116,9 +116,6 @@ struct Function { ;/ /; _end_func(~Scope scope, ~CompBuf cb) - # TODO: place jmp label - # TODO: pop all saved vars - # TODO: ret cb`.add_c(" lea rsp, [rbp - 56]\n\0") cb`.add_c(" pop r15\n\0") cb`.add_c(" pop r14\n\0") |