From: Alastair Bridgewater Date: Tue, 9 Nov 2010 19:44:09 +0000 (+0000) Subject: 1.0.44.10: mips: Implement ANCESTOR-FRAME VOPs. X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=94688f809cb4e1164184f45e6cc552cd7fb3fca7;p=sbcl.git 1.0.44.10: mips: Implement ANCESTOR-FRAME VOPs. * This is the MIPS version of the "implicit" VALUE-CELL access for DYNAMIC-EXTENT closures. * This commit is untested, but should work, as it is based on the PPC changes, which were tested. --- diff --git a/src/compiler/mips/call.lisp b/src/compiler/mips/call.lisp index 38f1528..68e5062 100644 --- a/src/compiler/mips/call.lisp +++ b/src/compiler/mips/call.lisp @@ -128,6 +128,23 @@ (when nfp (inst addu val nfp (bytes-needed-for-non-descriptor-stack-frame)))))) +;;; Accessing a slot from an earlier stack frame is definite hackery. +(define-vop (ancestor-frame-ref) + (:args (frame-pointer :scs (descriptor-reg)) + (variable-home-tn :load-if nil)) + (:results (value :scs (descriptor-reg any-reg))) + (:policy :fast-safe) + (:generator 4 + (aver (sc-is variable-home-tn control-stack)) + (loadw value frame-pointer (tn-offset variable-home-tn)))) +(define-vop (ancestor-frame-set) + (:args (frame-pointer :scs (descriptor-reg)) + (value :scs (descriptor-reg any-reg))) + (:results (variable-home-tn :load-if nil)) + (:policy :fast-safe) + (:generator 4 + (aver (sc-is variable-home-tn control-stack)) + (storew value frame-pointer (tn-offset variable-home-tn)))) (define-vop (xep-allocate-frame) (:info start-lab copy-more-arg-follows) diff --git a/src/compiler/mips/cell.lisp b/src/compiler/mips/cell.lisp index 0d32080..24edd3d 100644 --- a/src/compiler/mips/cell.lisp +++ b/src/compiler/mips/cell.lisp @@ -242,6 +242,12 @@ (define-vop (closure-init slot-set) (:variant closure-info-offset fun-pointer-lowtag)) + +(define-vop (closure-init-from-fp) + (:args (object :scs (descriptor-reg))) + (:info offset) + (:generator 4 + (storew cfp-tn object (+ closure-info-offset offset) fun-pointer-lowtag))) ;;;; Value Cell hackery. diff --git a/version.lisp-expr b/version.lisp-expr index 9d7171c..7167a54 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -17,4 +17,4 @@ ;;; checkins which aren't released. (And occasionally for internal ;;; versions, especially for internal versions off the main CVS ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) -"1.0.44.9" +"1.0.44.10"