Changeset 7789


Ignore:
Timestamp:
Nov 30, 2007, 10:31:17 AM (17 years ago)
Author:
Gary Byers
Message:

Hook up the make-instance optimization stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/working-0711/ccl/level-1/l1-clos.lisp

    r7782 r7789  
    18691869;;; Return a lambda form or NIL.
    18701870(defun make-instantiate-lambda-for-class-cell (cell)
    1871   (let* ((class (class-cell-class cell)))
     1871  (let* ((class (class-cell-class cell)))   
    18721872    (when (and (typep class 'standard-class)
     1873               (progn (unless (class-finalized-p class)
     1874                        (finalize-inheritance class))
     1875                      t)
    18731876               (null (cdr (compute-applicable-methods #'allocate-instance (list class))))
    18741877               (let* ((proto (class-prototype class)))
     
    19461949;;; involving reader methods.
    19471950
    1948 (defun snap-reader-methods (&key known-sealed-world (check-conflicts t))
     1951(defun snap-reader-methods (&key known-sealed-world
     1952                                 (check-conflicts t)
     1953                                 (optimize-make-instance t))
    19491954  (declare (ignore check-conflicts))
    19501955  (unless known-sealed-world
    19511956    (cerror "Proceed, if it's known that no new classes or methods will be defined."
    19521957            "Optimizing reader methods in this way is only safe if it's known that no new classes or methods will be defined."))
     1958  (when optimize-make-instance
     1959    (optimize-named-class-make-instance-methods))
    19531960  (let* ((ngf 0)
    19541961         (nwin 0))
Note: See TracChangeset for help on using the changeset viewer.