peval: Rectify style.
authorLudovic Courtès <ludo@gnu.org>
Wed, 21 Sep 2011 13:17:56 +0000 (15:17 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 23 Sep 2011 16:12:28 +0000 (18:12 +0200)
* module/language/tree-il/optimize.scm (peval): Rename `src' to
  `lv-src', and `src2' to `src'; pass `make-let-values' the right source
  locations.  Reindent `let*'.

module/language/tree-il/optimize.scm

index 2503e14..0cc51a0 100644 (file)
@@ -465,19 +465,19 @@ it does not handle <fix> and <let-values>, it should be called before
              (if (const? body*)
                  body
                  (make-fix src names gensyms vals body))))
-          (($ <let-values> src producer
-              ($ <lambda-case> src2 req #f #f #f () gensyms body #f))
+          (($ <let-values> lv-src producer
+              ($ <lambda-case> src req #f #f #f () gensyms body #f))
            ;; Peval both producer and consumer, then try to inline.  If
            ;; that succeeds, peval again.
            (let* ((producer (maybe-unconst producer (loop producer env calls)))
-                  (body (maybe-unconst body (loop body env calls))))
+                  (body     (maybe-unconst body (loop body env calls))))
              (cond
-              ((inline-values producer src2 req gensyms body)
+              ((inline-values producer src req gensyms body)
                => (lambda (exp) (loop exp env calls)))
               (else
-               (make-let-values
-                src producer
-                (make-lambda-case src2 req #f #f #f '() gensyms body #f))))))
+               (make-let-values lv-src producer
+                                (make-lambda-case src req #f #f #f '()
+                                                  gensyms body #f))))))
           (($ <let-values>)
            exp)
           (($ <dynwind> src winder body unwinder)