From: Alastair Bridgewater Date: Tue, 9 Nov 2010 19:45:09 +0000 (+0000) Subject: 1.0.44.14: x86-64: Implement ANCESTOR-FRAME VOPs. X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=2c3112ebb0945849876108dccfdedf4c19678ea9;p=sbcl.git 1.0.44.14: x86-64: Implement ANCESTOR-FRAME VOPs. * This is the x86-64 version of the "implicit" VALUE-CELL access for DYNAMIC-EXTENT closures. --- diff --git a/src/compiler/x86-64/call.lisp b/src/compiler/x86-64/call.lisp index 24dde9d..e608529 100644 --- a/src/compiler/x86-64/call.lisp +++ b/src/compiler/x86-64/call.lisp @@ -119,6 +119,26 @@ (:generator 1 nil)) +;;; 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 + (frame-word-offset (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 + (frame-word-offset (tn-offset variable-home-tn))))) + (define-vop (xep-allocate-frame) (:info start-lab copy-more-arg-follows) (:vop-var vop) diff --git a/src/compiler/x86-64/cell.lisp b/src/compiler/x86-64/cell.lisp index f282900..2c22d08 100644 --- a/src/compiler/x86-64/cell.lisp +++ b/src/compiler/x86-64/cell.lisp @@ -452,6 +452,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 rbp-tn object (+ closure-info-offset offset) fun-pointer-lowtag))) ;;;; value cell hackery diff --git a/version.lisp-expr b/version.lisp-expr index 1496905..a6f6e08 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.13" +"1.0.44.14"