mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 22:10:21 +02:00
peval comment & reindentation
* module/language/tree-il/optimize.scm (peval): Add a comment regarding failure modes, and reindent one clause.
This commit is contained in:
parent
9581febbb0
commit
40bd6a7e57
1 changed files with 9 additions and 3 deletions
|
@ -450,8 +450,8 @@ it does not handle <fix> and <let-values>, it should be called before
|
|||
(let* ((vals* (map (cut loop <> env calls) vals))
|
||||
(vals (map maybe-unconst vals vals*))
|
||||
(body* (loop body
|
||||
(fold vhash-consq env gensyms vals)
|
||||
calls))
|
||||
(fold vhash-consq env gensyms vals)
|
||||
calls))
|
||||
(body (maybe-unconst body body*)))
|
||||
(if (const? body*)
|
||||
body
|
||||
|
@ -592,7 +592,13 @@ it does not handle <fix> and <let-values>, it should be called before
|
|||
(($ <lambda>)
|
||||
app)
|
||||
(($ <toplevel-ref>)
|
||||
app))
|
||||
app)
|
||||
|
||||
;; In practice, this is the clause that stops peval:
|
||||
;; module-ref applications (produced by macros,
|
||||
;; typically) don't match, and so this throws,
|
||||
;; aborting peval for an entire expression.
|
||||
)
|
||||
|
||||
app)))
|
||||
(($ <lambda> src meta body)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue