mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
Add new $calli expression type.
* module/language/cps.scm ($calli): New expression type, calls a label as a value. Adapt all callers.
This commit is contained in:
parent
a1eb526b0c
commit
171072ec5a
21 changed files with 105 additions and 19 deletions
|
@ -1,6 +1,6 @@
|
|||
;;; Continuation-passing style (CPS) intermediate language (IL)
|
||||
|
||||
;; Copyright (C) 2013-2020 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 2013-2021 Free Software Foundation, Inc.
|
||||
|
||||
;;;; This library is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -149,6 +149,8 @@
|
|||
($call (rename-var proc) ,(map rename-var args)))
|
||||
(($ $callk k proc args)
|
||||
($callk k (and proc (rename-var proc)) ,(map rename-var args)))
|
||||
(($ $calli args callee)
|
||||
($calli ,(map rename-var args) (rename-var callee)))
|
||||
(($ $primcall name param args)
|
||||
($primcall name param ,(map rename-var args)))))
|
||||
(define (rename-term term)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue