4 (!def-vm-support-routine generate-call-sequence (name style vop)
7 (let ((fixup (gensym "FIXUP-")))
9 `((let ((fixup (make-fixup ',name :assembly-routine)))
10 (inst ldil fixup ,fixup)
11 (inst ble fixup lisp-heap-space ,fixup :nullify t))
13 `((:temporary (:scs (any-reg) :from (:eval 0) :to (:eval 1))
16 (let ((temp (make-symbol "TEMP"))
17 (nfp-save (make-symbol "NFP-SAVE"))
18 (lra (make-symbol "LRA")))
20 `((let ((lra-label (gen-label))
21 (cur-nfp (current-nfp-tn ,vop)))
23 (store-stack-tn ,nfp-save cur-nfp))
24 (inst compute-lra-from-code code-tn lra-label ,temp ,lra)
25 (note-this-location ,vop :call-site)
26 (let ((fixup (make-fixup ',name :assembly-routine)))
27 (inst ldil fixup ,temp)
28 (inst be fixup lisp-heap-space ,temp :nullify t))
29 (emit-return-pc lra-label)
30 (note-this-location ,vop :single-value-return)
32 (inst compute-code-from-lra code-tn lra-label ,temp code-tn)
34 (load-stack-tn cur-nfp ,nfp-save))))
35 `((:temporary (:scs (non-descriptor-reg) :from (:eval 0) :to (:eval 1))
37 (:temporary (:sc descriptor-reg :offset lra-offset
38 :from (:eval 0) :to (:eval 1))
40 (:temporary (:scs (control-stack) :offset nfp-save-offset)
42 (:save-p :compute-only)))))
44 (let ((fixup (gensym "FIXUP-")))
46 `((let ((fixup (make-fixup ',name :assembly-routine)))
47 (inst ldil fixup ,fixup)
48 (inst be fixup lisp-heap-space ,fixup :nullify t)))
49 `((:temporary (:scs (any-reg) :from (:eval 0) :to (:eval 1))
53 (!def-vm-support-routine generate-return-sequence (style)
56 `((inst bv lip-tn :nullify t)))
58 `((lisp-return (make-random-tn :kind :normal
59 :sc (sc-or-lose 'descriptor-reg)