Changeset 383


Ignore:
Timestamp:
Jan 24, 2004, 3:38:30 PM (21 years ago)
Author:
Gary Byers
Message:

UPDATE-SLOTS: assume that slotds are ordered, don't order them by location.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/l1-clos.lisp

    r312 r383  
    282282      (extract-instance-and-class-slotds eslotds)
    283283    (let* ((new-ordering
    284             (let* ((v (make-array (the fixnum (length instance-slots)))))
     284            (let* ((v (make-array (the fixnum (length instance-slots))))
     285                   (i 0))
     286              (declare (simple-vector v) (fixnum i))
    285287              (dolist (e instance-slots v)
    286                 (setf (svref v
    287                              (the fixnum
    288                                (- (%slot-definition-location e) 1)))
    289                       (%slot-definition-name e)))))
     288                (setf (svref v i)
     289                      (%slot-definition-name e))
     290                (incf i))))
    290291           (old-wrapper (%class-own-wrapper class))
    291292           (old-ordering (if old-wrapper (%wrapper-instance-slots old-wrapper)))
Note: See TracChangeset for help on using the changeset viewer.