From d7d3fc2b32b1309538605dec9009d0991a33cfa1 Mon Sep 17 00:00:00 2001 From: wlott <wlott> Date: Mon, 19 Mar 1990 23:45:23 +0000 Subject: [PATCH] Spiffed up the automatic accessor generation. If you specify a :set-trans (setf foo) it will default :setf-vop to set-foo. Otherwise, if you specify a :set-trans as mumble, it will default :set-vop to mumble. --- compiler/mips/cell.lisp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/compiler/mips/cell.lisp b/compiler/mips/cell.lisp index c6edfc8bd..21342ba5e 100644 --- a/compiler/mips/cell.lisp +++ b/compiler/mips/cell.lisp @@ -7,7 +7,7 @@ ;;; Scott Fahlman (FAHLMAN@CMUC). ;;; ********************************************************************** ;;; -;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/cell.lisp,v 1.24 1990/03/19 23:19:48 wlott Exp $ +;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/cell.lisp,v 1.25 1990/03/19 23:45:23 wlott Exp $ ;;; ;;; This file contains the VM definition of various primitive memory access ;;; VOPs for the MIPS. @@ -44,9 +44,16 @@ (ref-trans (getf slot-opts :ref-trans)) (ref-vop (getf slot-opts :ref-vop ref-trans)) (set-trans (getf slot-opts :set-trans)) - (set-vop (getf slot-opts :set-vop)) (setf-vop (getf slot-opts :setf-vop - (if set-vop nil set-trans)))) + (when (and (list set-trans) + (= (length set-trans) 2) + (eq (car set-trans) 'setf)) + (intern (concatenate + 'simple-string + "SET-" + (string (cadr set-trans))))))) + (set-vop (getf slot-opts :set-vop + (if setf-vop nil set-trans)))) (when ref-vop (forms `(define-vop (,ref-vop ,(if rest-p 'slot-ref 'cell-ref)) (:variant ,offset ,lowtag) -- GitLab