[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 04/09: Fix "cons" compilation in baseline compiler in so
From: |
Andy Wingo |
Subject: |
[Guile-commits] 04/09: Fix "cons" compilation in baseline compiler in some cases |
Date: |
Mon, 11 May 2020 09:08:27 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit 4c3c35c536584fee080652125299e531db37afc8
Author: Andy Wingo <address@hidden>
AuthorDate: Mon May 11 13:32:39 2020 +0200
Fix "cons" compilation in baseline compiler in some cases
* module/language/tree-il/compile-bytecode.scm (emit-cons): Fix for case
where car is dst but cdr isn't.
---
module/language/tree-il/compile-bytecode.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/module/language/tree-il/compile-bytecode.scm
b/module/language/tree-il/compile-bytecode.scm
index 91a8668..deead72 100644
--- a/module/language/tree-il/compile-bytecode.scm
+++ b/module/language/tree-il/compile-bytecode.scm
@@ -72,7 +72,7 @@
(cond
((= car dst)
(emit-mov asm 1 car)
- (emit-cons asm dst 1 (if (= cdr dst) 1 dst)))
+ (emit-cons asm dst 1 (if (= cdr dst) 1 cdr)))
((= cdr dst)
(emit-mov asm 1 cdr)
(emit-cons asm dst car 1))
- [Guile-commits] branch master updated (f168a66 -> 2ba3eb4), Andy Wingo, 2020/05/11
- [Guile-commits] 03/09: Baseline compiler: add pop-fluid primitive., Andy Wingo, 2020/05/11
- [Guile-commits] 06/09: Fix module capture for closures in <fix>, Andy Wingo, 2020/05/11
- [Guile-commits] 01/09: Fix baseline miscompilation of <, Andy Wingo, 2020/05/11
- [Guile-commits] 02/09: Fix baseline compilation error for make-struct/simple, Andy Wingo, 2020/05/11
- [Guile-commits] 04/09: Fix "cons" compilation in baseline compiler in some cases,
Andy Wingo <=
- [Guile-commits] 07/09: Reload FP if needed in bind-rest also, Andy Wingo, 2020/05/11
- [Guile-commits] 08/09: Improve tail recursion in compiler, Andy Wingo, 2020/05/11
- [Guile-commits] 09/09: Fix shuffling assembler for new primcalls, Andy Wingo, 2020/05/11
- [Guile-commits] 05/09: Fix JIT asserts with different code generated by baseline, Andy Wingo, 2020/05/11