3 (!def-vm-support-routine generate-call-sequence
(name style vop
)
7 `((inst bla
(make-fixup ',name
:assembly-routine
)))
10 (let ((temp (make-symbol "TEMP"))
11 (nfp-save (make-symbol "NFP-SAVE"))
12 (lra (make-symbol "LRA")))
14 `((let ((lra-label (gen-label))
15 (cur-nfp (current-nfp-tn ,vop
)))
17 (store-stack-tn ,nfp-save cur-nfp
))
18 (inst compute-lra-from-code
,lra code-tn lra-label
,temp
)
19 (note-next-instruction ,vop
:call-site
)
20 (inst ba
(make-fixup ',name
:assembly-routine
))
21 (emit-return-pc lra-label
)
22 (note-this-location ,vop
:single-value-return
)
23 (without-scheduling ()
26 (inst compute-code-from-lra code-tn code-tn
29 (load-stack-tn cur-nfp
,nfp-save
))))
30 `((:temporary
(:scs
(non-descriptor-reg) :from
(:eval
0) :to
(:eval
1))
32 (:temporary
(:sc descriptor-reg
:offset lra-offset
33 :from
(:eval
0) :to
(:eval
1))
35 (:temporary
(:scs
(control-stack) :offset nfp-save-offset
)
37 (:save-p
:compute-only
)))))
40 `((inst ba
(make-fixup ',name
:assembly-routine
)))
43 (!def-vm-support-routine generate-return-sequence
(style)
48 `((lisp-return (make-random-tn :kind
:normal
49 :sc
(sc-or-lose 'descriptor-reg
)
51 (make-random-tn :kind
:normal
52 :sc
(sc-or-lose 'interior-reg
)