Changeset 151
- Timestamp:
- Dec 20, 2003, 4:17:07 AM (21 years ago)
- Location:
- trunk/ccl/level-1
- Files:
-
- 2 edited
-
l1-clos-boot.lisp (modified) (2 diffs)
-
l1-clos.lisp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/level-1/l1-clos-boot.lisp
r115 r151 1483 1483 (defvar *accessor-method-class* (make-standard-class 'standard-accessor-method *standard-method-class*)) 1484 1484 (defvar *standard-reader-method-class* (make-standard-class 'standard-reader-method *accessor-method-class*)) 1485 (defvar *primary-reader-method-class* (make-standard-class 'primary-reader-method *standard-reader-method-class*))1486 1485 (defvar *standard-writer-method-class* (make-standard-class 'standard-writer-method *accessor-method-class*)) 1487 (defvar *primary-writer-method-class* (make-standard-class 'primary-writer-method *standard-writer-method-class*))1488 1486 (defvar *method-function-class* (make-standard-class 'method-function *function-class*)) 1489 1487 (defvar *interpreted-method-function-class* … … 1982 1980 (dpb 2 $lfbits-numreq (ash 1 $lfbits-method-bit)))) 1983 1981 1984 (defmethod create-reader-method-function ((class std-class)1985 (reader-method-class primary-reader-method)1986 (dslotd standard-direct-slot-definition))1987 (let* ((offset1988 (primary-class-slot-offset class (%slot-definition-name dslotd)))1989 (f (nfunction primary-reader-method (lambda (i)1990 (when (eql (%wrapper-hash-index (instance.class-wrapper i)) 0)1991 (update-obsolete-instance i))1992 (standard-instance-instance-location-access i offset)))))1993 (inner-lfun-bits f1994 (logior (ash 1 $lfbits-method-bit)1995 (the fixnum (inner-lfun-bits f))))1996 f))1997 1998 (defmethod create-writer-method-function ((class std-class)1999 (writer-method-class primary-writer-method)2000 (dslotd standard-direct-slot-definition))2001 (let* ((offset (primary-class-slot-offset class2002 (%slot-definition-name dslotd)))2003 (f2004 (nfunction primary-writer-method2005 (lambda (new i)2006 (when (eql2007 (%wrapper-hash-index2008 (instance.class-wrapper i))2009 0)2010 (update-obsolete-instance i))2011 (setf2012 (standard-instance-instance-location-access i offset)2013 new)))))2014 (inner-lfun-bits f2015 (logior (ash 1 $lfbits-method-bit)2016 (the fixnum (inner-lfun-bits f))))2017 f))2018 2019 2020 2021 1982 2022 1983 -
trunk/ccl/level-1/l1-clos.lisp
r120 r151 737 737 &rest initargs) 738 738 (declare (ignore initargs)) 739 (if (primary-class-slot-offset class (%slot-definition-name dslotd)) 740 *primary-reader-method-class* 741 *standard-reader-method-class*)) 739 *standard-reader-method-class*) 742 740 743 741 (defmethod reader-method-class ((class funcallable-standard-class) … … 745 743 &rest initargs) 746 744 (declare (ignore initargs)) 747 (if (primary-class-slot-offset class (%slot-definition-name dslotd)) 748 *primary-reader-method-class* 749 *standard-reader-method-class*)) 745 *standard-reader-method-class*) 750 746 751 747 (defmethod add-reader-method ((class std-class) gf dslotd) … … 774 770 &rest initargs) 775 771 (declare (ignore initargs)) 776 (if (primary-class-slot-offset class (%slot-definition-name dslotd)) 777 *primary-writer-method-class* 778 *standard-writer-method-class*)) 772 *standard-writer-method-class*) 779 773 780 774 (defmethod writer-method-class ((class funcallable-standard-class) … … 782 776 &rest initargs) 783 777 (declare (ignore initargs)) 784 (if (primary-class-slot-offset class (%slot-definition-name dslotd)) 785 *primary-writer-method-class* 786 *standard-writer-method-class*)) 778 *standard-writer-method-class*) 787 779 788 780
Note:
See TracChangeset
for help on using the changeset viewer.
