+;;;; the machine-specific support routines needed by the file assembler
+
+;;;; This software is part of the SBCL system. See the README file for
+;;;; more information.
+;;;;
+;;;; This software is derived from the CMU CL system, which was
+;;;; written at Carnegie Mellon University and released into the
+;;;; public domain. The software is in the public domain and is
+;;;; provided with absolutely no warranty. See the COPYING and CREDITS
+;;;; files for more information.
- `((let ((fixup (make-fixup ',name :assembly-routine)))
- (inst ldil fixup ,fixup)
- (inst ble fixup lisp-heap-space ,fixup :nullify t))
- (inst nop))
- `((:temporary (:scs (any-reg) :from (:eval 0) :to (:eval 1))
- ,fixup)))))
+ `((let ((fixup (make-fixup ',name :assembly-routine)))
+ (inst ldil fixup ,fixup)
+ (inst ble fixup lisp-heap-space ,fixup :nullify t))
+ (inst nop))
+ `((:temporary (:scs (any-reg) :from (:eval 0) :to (:eval 1))
+ ,fixup)))))
- `((let ((lra-label (gen-label))
- (cur-nfp (current-nfp-tn ,vop)))
- (when cur-nfp
- (store-stack-tn ,nfp-save cur-nfp))
- (inst compute-lra-from-code code-tn lra-label ,temp ,lra)
- (note-this-location ,vop :call-site)
- (let ((fixup (make-fixup ',name :assembly-routine)))
- (inst ldil fixup ,temp)
- (inst be fixup lisp-heap-space ,temp :nullify t))
- (emit-return-pc lra-label)
- (note-this-location ,vop :single-value-return)
- (move ocfp-tn csp-tn)
- (inst compute-code-from-lra code-tn lra-label ,temp code-tn)
- (when cur-nfp
- (load-stack-tn cur-nfp ,nfp-save))))
- `((:temporary (:scs (non-descriptor-reg) :from (:eval 0) :to (:eval 1))
- ,temp)
- (:temporary (:sc descriptor-reg :offset lra-offset
- :from (:eval 0) :to (:eval 1))
- ,lra)
- (:temporary (:scs (control-stack) :offset nfp-save-offset)
- ,nfp-save)
- (:save-p :compute-only)))))
+ `((let ((lra-label (gen-label))
+ (cur-nfp (current-nfp-tn ,vop)))
+ (when cur-nfp
+ (store-stack-tn ,nfp-save cur-nfp))
+ (inst compute-lra-from-code code-tn lra-label ,temp ,lra)
+ (note-this-location ,vop :call-site)
+ (let ((fixup (make-fixup ',name :assembly-routine)))
+ (inst ldil fixup ,temp)
+ (inst be fixup lisp-heap-space ,temp :nullify t))
+ (emit-return-pc lra-label)
+ (note-this-location ,vop :single-value-return)
+ (move ocfp-tn csp-tn)
+ (inst compute-code-from-lra code-tn lra-label ,temp code-tn)
+ (when cur-nfp
+ (load-stack-tn cur-nfp ,nfp-save))))
+ `((:temporary (:scs (non-descriptor-reg) :from (:eval 0) :to (:eval 1))
+ ,temp)
+ (:temporary (:sc descriptor-reg :offset lra-offset
+ :from (:eval 0) :to (:eval 1))
+ ,lra)
+ (:temporary (:scs (control-stack) :offset nfp-save-offset)
+ ,nfp-save)
+ (:save-p :compute-only)))))
- `((let ((fixup (make-fixup ',name :assembly-routine)))
- (inst ldil fixup ,fixup)
- (inst be fixup lisp-heap-space ,fixup :nullify t)))
- `((:temporary (:scs (any-reg) :from (:eval 0) :to (:eval 1))
- ,fixup)))))))
-
+ `((let ((fixup (make-fixup ',name :assembly-routine)))
+ (inst ldil fixup ,fixup)
+ (inst be fixup lisp-heap-space ,fixup :nullify t)))
+ `((:temporary (:scs (any-reg) :from (:eval 0) :to (:eval 1))
+ ,fixup)))))))