Skip to content

Commit

Permalink
Loot fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonidas committed May 9, 2021
1 parent 8b36bdd commit d5bff6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions langs/loot/compile.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@
(Push rcx)

; Actually call the function
(Call (Offset rax 0))
(Mov rax (Offset rax 0))
(Call rax)

; Get the size of the env off the stack
(Pop rcx)
Expand Down Expand Up @@ -476,7 +477,7 @@
[(Lam lab as body)
(let ((ys (fvs l)))
(seq
(Lea rax (Offset (symbol->label lab) 0))
(Lea rax (symbol->label lab))
(Mov (Offset rbx 0) rax)
(Mov rax (length ys))
(Mov (Offset rbx 8) rax)
Expand Down
3 changes: 1 addition & 2 deletions langs/loot/unload-bits-asm.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
(define (unload/free a)
(match a
['err 'err]
[(cons h v) (begin0 (unload-value v)
(free h))]))
[(cons h v) (unload-value v)]))

;; Value* -> Value
(define (unload-value v)
Expand Down

0 comments on commit d5bff6a

Please sign in to comment.