X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fgeneric%2Fvm-ir2tran.lisp;h=5cbeb85e3aab8bcef52c7effddd385acfa15076a;hb=174feb792c8082846666e1218c58d5b0ab3b85b0;hp=db6030081f3e4827e97452ff3e0be9dc061e944a;hpb=c53ec09694206092fd3aa933adade5e5d5b343d2;p=sbcl.git diff --git a/src/compiler/generic/vm-ir2tran.lisp b/src/compiler/generic/vm-ir2tran.lisp index db60300..5cbeb85 100644 --- a/src/compiler/generic/vm-ir2tran.lisp +++ b/src/compiler/generic/vm-ir2tran.lisp @@ -81,3 +81,19 @@ type lowtag result)) (do-inits node block name result lowtag inits args) (move-continuation-result node block locs cont))) + +;;; :SET-TRANS (in objdef.lisp DEFINE-PRIMITIVE-OBJECT) doesn't quite +;;; cut it for symbols, where under certain compilation options +;;; (e.g. #!+SB-THREAD) we have to do something complicated, rather +;;; than simply set the slot. So we build the IR2 converting function +;;; by hand. -- CSR, 2003-05-08 +(let ((fun-info (fun-info-or-lose '%set-symbol-value))) + (setf (fun-info-ir2-convert fun-info) + (lambda (node block) + (let ((args (basic-combination-args node))) + (destructuring-bind (symbol value) args + (let ((value-tn (continuation-tn node block value))) + (vop set node block + (continuation-tn node block symbol) value-tn) + (move-continuation-result + node block (list value-tn) (node-cont node))))))))