[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 06/09: Fix module capture for closures in <fix>
From: |
Andy Wingo |
Subject: |
[Guile-commits] 06/09: Fix module capture for closures in <fix> |
Date: |
Mon, 11 May 2020 09:08:28 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit 73a23027f5cf61365b4fc5049301b727bf29a10b
Author: Andy Wingo <address@hidden>
AuthorDate: Mon May 11 14:36:00 2020 +0200
Fix module capture for closures in <fix>
* module/language/tree-il/compile-bytecode.scm (compile-closure):
Capture closures for <fix> if needed.
---
module/language/tree-il/compile-bytecode.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/module/language/tree-il/compile-bytecode.scm
b/module/language/tree-il/compile-bytecode.scm
index deead72..ac6ffba 100644
--- a/module/language/tree-il/compile-bytecode.scm
+++ b/module/language/tree-il/compile-bytecode.scm
@@ -910,6 +910,8 @@ in the frame with for the lambda-case clause @var{clause}."
(let ((env (push-local name sym env)))
(match closure
(($ <closure> label code scope free-vars)
+ ;; FIXME: Allocate one scope per fix.
+ (maybe-cache-module! scope 0)
(emit-maybe-allocate-closure
asm (env-idx env) (length free-vars) label 0)
env))))
- [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 <=
- [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, 2020/05/11
- [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