Changeset 15033


Ignore:
Timestamp:
06/01/17 06:46:25 (6 years ago)
Author:
Mark Evenson
Message:

Fix LOOP code size estimation

(Olof-Joachim Frahm)

C.f. https://trac.clozure.com/ccl/ticket/1085:

[...] should be (throw 'estimate-code-size nil)

And to note:

(BTW, in SBCL, I fixed this by getting rid of the code size estimation
completely)

Location:
trunk/abcl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/loop.lisp

    r14355 r15033  
    768768            (and (consp (cadr x)) (eq (caadr x) 'setf)))
    769769        1
    770         ;; FIXME: This tag appears not to be present
    771         ;; anywhere.
    772         (throw 'duplicatable-code-p nil)))
     770        (throw 'estimate-code-size nil)))
    773771         ((eq fn 'multiple-value-setq)
    774772          (f (length (second x)) (cddr x)))
  • trunk/abcl/test/lisp/abcl/bugs.lisp

    r14587 r15033  
    134134  ((0.0 . 0) (0.0 . 1)))
    135135
     136;; http://abcl.org/trac/ticket/444
     137;; https://trac.clozure.com/ccl/ticket/1085
     138(deftest bugs.loop.2
     139    (loop for x = #'(lambda ()) for y = 10 then 20 return y)
     140  10)
    136141
    137142;; http://abcl.org/trac/ticket/294
Note: See TracChangeset for help on using the changeset viewer.