Skip to content

Commit d5bff6a

Browse files
committed
Loot fixes
1 parent 8b36bdd commit d5bff6a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

langs/loot/compile.rkt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@
300300
(Push rcx)
301301

302302
; Actually call the function
303-
(Call (Offset rax 0))
303+
(Mov rax (Offset rax 0))
304+
(Call rax)
304305

305306
; Get the size of the env off the stack
306307
(Pop rcx)
@@ -476,7 +477,7 @@
476477
[(Lam lab as body)
477478
(let ((ys (fvs l)))
478479
(seq
479-
(Lea rax (Offset (symbol->label lab) 0))
480+
(Lea rax (symbol->label lab))
480481
(Mov (Offset rbx 0) rax)
481482
(Mov rax (length ys))
482483
(Mov (Offset rbx 8) rax)

langs/loot/unload-bits-asm.rkt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
(define (unload/free a)
88
(match a
99
['err 'err]
10-
[(cons h v) (begin0 (unload-value v)
11-
(free h))]))
10+
[(cons h v) (unload-value v)]))
1211

1312
;; Value* -> Value
1413
(define (unload-value v)

0 commit comments

Comments
 (0)