Skip to content

Commit b2777f7

Browse files
committed
Dead code.
1 parent aeed59e commit b2777f7

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

www/notes/loot/compile.rkt

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -200,28 +200,6 @@
200200
(sub rcx 8)
201201
(jmp ,copy-loop)
202202
,copy-done)))
203-
#|
204-
;; Natural -> Asm
205-
;; Copy closure's (in rax) env to stack skipping n spots
206-
(define (copy-closure-env-to-stack n)
207-
(let ((copy-loop (gensym 'copy_closure))
208-
(copy-done (gensym 'copy_done)))
209-
`((mov r8 (offset rax 1)) ; length
210-
(mov r9 rax)
211-
(add r9 16) ; start of env
212-
(mov rcx rsp) ; start of stack
213-
(add rcx ,(- (* 8 (add1 n))))
214-
,copy-loop
215-
(cmp r8 0)
216-
(je ,copy-done)
217-
(mov rbx (offset r9 0))
218-
(mov (offset rcx 0) rbx)
219-
(sub r8 1)
220-
(add r9 8)
221-
(sub rcx 8)
222-
(jmp ,copy-loop)
223-
,copy-done)))
224-
|#
225203

226204
;; (Listof Variable) (Listof Lambda) Expr CEnv -> Asm
227205
(define (compile-letrec fs ls e c)

0 commit comments

Comments
 (0)