X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fhppa%2Fcall.lisp;h=8c004dbdbaf3b440b4bb62120ce2bf886e58a68e;hb=37b93fe46f304244d1c69c06b82a22252e393630;hp=6ec58b6b3cd682f43bc971ece6c4bcacab77cf1d;hpb=b46345044a6b9e2db26700e297daedb05307919b;p=sbcl.git diff --git a/src/compiler/hppa/call.lisp b/src/compiler/hppa/call.lisp index 6ec58b6..8c004db 100644 --- a/src/compiler/hppa/call.lisp +++ b/src/compiler/hppa/call.lisp @@ -127,6 +127,24 @@ (inst addi (- (bytes-needed-for-non-descriptor-stack-frame)) nfp val))))) +;;; 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) (:ignore copy-more-arg-follows) @@ -399,6 +417,15 @@ default-value-8 nvals) (:temporary (:scs (non-descriptor-reg)) temp)) + +;;; This hook in the codegen pass lets us insert code before fall-thru entry +;;; points, local-call entry points, and tail-call entry points. The default +;;; does nothing. +(defun emit-block-header (start-label trampoline-label fall-thru-p alignp) + (declare (ignore fall-thru-p alignp)) + (when trampoline-label + (emit-label trampoline-label)) + (emit-label start-label)) ;;;; Local call with unknown values convention return: @@ -774,12 +801,7 @@ default-value-8 (insert-step-instrumenting (callable-tn) ;; Conditionally insert a conditional trap: (when step-instrumenting - ;; Get the symbol-value of SB!IMPL::*STEPPING* - (inst ldw (- (+ symbol-value-slot - (truncate (static-symbol-offset 'sb!impl::*stepping*) - n-word-bytes)) - other-pointer-lowtag) - null-tn stepping) + (load-symbol-value stepping sb!impl::*stepping*) ;; If it's not NIL, trap. ;(inst comb := stepping null-tn step-done-label) (inst comb := null-tn null-tn step-done-label :nullify t) @@ -1255,12 +1277,7 @@ default-value-8 (:policy :fast-safe) (:vop-var vop) (:generator 3 - ;; Get the symbol-value of SB!IMPL::*STEPPING* - (inst ldw (- (+ symbol-value-slot - (truncate (static-symbol-offset 'sb!impl::*stepping*) - n-word-bytes)) - other-pointer-lowtag) - null-tn stepping) + (load-symbol-value stepping sb!impl::*stepping*) ;; If it's not NIL, trap. (inst comb := stepping null-tn DONE :nullify t) ;; CONTEXT-PC will be pointing here when the interrupt is handled,