1.0.28.65: fix compiling with *PROFILE-HASH-CACHE* set to T
[sbcl.git] / src / pcl / fixup.lisp
index b7b4f21..2ea6fb9 100644 (file)
 (!fix-early-generic-functions)
 (!fix-ensure-accessor-specializers)
 (compute-standard-slot-locations)
-(dolist (s '(condition structure-object))
-  (dohash (k v (classoid-subclasses (find-classoid s)))
+(dolist (s '(condition function structure-object))
+  (dohash ((k v) (classoid-subclasses (find-classoid s)))
     (find-class (classoid-name k))))
 (setq *boot-state* 'complete)
 
 (defun print-std-instance (instance stream depth)
   (declare (ignore depth))
   (print-object instance stream))
-
-;;; Access the slot-vector created by MAKE-SLOT-VECTOR.
-(defun find-slot-definition (class slot-name)
-  (declare (symbol slot-name) (inline getf))
-  (let* ((vector (class-slot-vector class))
-         (index (rem (sxhash slot-name) (length vector))))
-    (declare (simple-vector vector) (index index))
-    (do ((plist (svref vector index) (cdr plist)))
-        ((not plist))
-      (let ((key (car plist)))
-        (setf plist (cdr plist))
-        (when (eq key slot-name)
-          (return (car plist)))))))