1 ;;; -*- Package: ALPHA -*-
3 ;;; **********************************************************************
4 ;;; This code was written as part of the CMU Common Lisp project at
5 ;;; Carnegie Mellon University, and has been placed in the public domain.
8 ;;; **********************************************************************
10 ;;; This file contains the machine specific support routines needed by
11 ;;; the file assembler.
16 (!def-vm-support-routine generate-call-sequence (name style vop)
20 `((inst li (make-fixup ',name :assembly-routine) temp)
21 (inst jsr lip-tn temp))
22 '((:temporary (:sc non-descriptor-reg) temp))
25 (let ((temp (make-symbol "TEMP"))
26 (nfp-save (make-symbol "NFP-SAVE"))
27 (lra (make-symbol "LRA")))
29 `((let ((lra-label (gen-label))
30 (cur-nfp (current-nfp-tn ,vop)))
32 (store-stack-tn ,nfp-save cur-nfp))
33 (inst compute-lra-from-code ,lra code-tn lra-label ,temp)
34 (note-next-instruction ,vop :call-site)
36 (inst li (make-fixup ',name :assembly-routine) temp1)
37 (inst jsr lip-tn temp1 (make-fixup ',name :assembly-routine))
38 (emit-return-pc lra-label)
39 (note-this-location ,vop :single-value-return)
40 (without-scheduling ()
43 (inst compute-code-from-lra code-tn code-tn
46 (maybe-load-stack-nfp-tn cur-nfp ,nfp-save temp1))))
47 `((:temporary (:scs (non-descriptor-reg) :from (:eval 0) :to (:eval 1))
49 (:temporary (:sc descriptor-reg :offset lra-offset
50 :from (:eval 0) :to (:eval 1))
52 (:temporary (:scs (control-stack) :offset nfp-save-offset)
54 (:temporary (:scs (non-descriptor-reg)) temp1)
58 `((inst li (make-fixup ',name :assembly-routine) temp)
59 (inst jsr lip-tn temp (make-fixup ',name :assembly-routine)))
60 '((:temporary (:scs (non-descriptor-reg)) temp))
64 (!def-vm-support-routine generate-return-sequence (style)
67 `((inst ret zero-tn lip-tn)))
69 `((lisp-return (make-random-tn :kind :normal