[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 06/11: Use new instructions for null?, nil?
From: |
Andy Wingo |
Subject: |
[Guile-commits] 06/11: Use new instructions for null?, nil? |
Date: |
Sun, 29 Oct 2017 05:09:40 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit c74b2257c7f43c6fd247113a277de3ef84e5f318
Author: Andy Wingo <address@hidden>
Date: Fri Oct 27 15:02:46 2017 +0200
Use new instructions for null?, nil?
* module/language/cps/compile-bytecode.scm (compile-function): Use new
instructions for branches on null? and nil?.
---
module/language/cps/compile-bytecode.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/module/language/cps/compile-bytecode.scm
b/module/language/cps/compile-bytecode.scm
index 966bb7c..c85fbd8 100644
--- a/module/language/cps/compile-bytecode.scm
+++ b/module/language/cps/compile-bytecode.scm
@@ -433,8 +433,8 @@
(match exp
(($ $values (sym)) (unary/old emit-br-if-true sym))
(($ $primcall 'heap-object? (a)) (unary emit-heap-object? a))
- (($ $primcall 'null? (a)) (unary/old emit-br-if-null a))
- (($ $primcall 'nil? (a)) (unary/old emit-br-if-nil a))
+ (($ $primcall 'null? (a)) (unary emit-null? a))
+ (($ $primcall 'nil? (a)) (unary emit-nil? a))
(($ $primcall 'pair? (a)) (unary emit-pair? a))
(($ $primcall 'struct? (a)) (unary emit-struct? a))
(($ $primcall 'char? (a)) (unary emit-char? a))
- [Guile-commits] branch master updated (cd947a1 -> 9d1235a), Andy Wingo, 2017/10/29
- [Guile-commits] 02/11: Use tag visitors to generate assemblers, disassembly annotations, Andy Wingo, 2017/10/29
- [Guile-commits] 05/11: Emit char? instead of br-if-char, Andy Wingo, 2017/10/29
- [Guile-commits] 04/11: Emit new instructions for heap object type tests, Andy Wingo, 2017/10/29
- [Guile-commits] 08/11: Emit new eq? instruction, Andy Wingo, 2017/10/29
- [Guile-commits] 10/11: Use new instructions for u64 comparisons., Andy Wingo, 2017/10/29
- [Guile-commits] 09/11: Use new instructions for less-than, etc, Andy Wingo, 2017/10/29
- [Guile-commits] 11/11: Use new instructions for f64 comparisons, Andy Wingo, 2017/10/29
- [Guile-commits] 03/11: Heap type predicates preceded by heap-object?, Andy Wingo, 2017/10/29
- [Guile-commits] 01/11: Refactor (system base types internal) to use more macros, Andy Wingo, 2017/10/29
- [Guile-commits] 06/11: Use new instructions for null?, nil?,
Andy Wingo <=
- [Guile-commits] 07/11: Simplify $branch to always take a $primcall, Andy Wingo, 2017/10/29