-(in-package "SB!VM")
+;;;; 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.
+(in-package "SB!VM")
(!def-vm-support-routine generate-call-sequence (name style vop)
(ecase style
(:raw
- (let ((fixup (gensym "FIXUP-")))
+ (with-unique-names (fixup)
(values
`((let ((fixup (make-fixup ',name :assembly-routine)))
(inst ldil fixup ,fixup)
,nfp-save)
(:save-p :compute-only)))))
(:none
- (let ((fixup (gensym "FIXUP-")))
+ (with-unique-names (fixup)
(values
`((let ((fixup (make-fixup ',name :assembly-routine)))
(inst ldil fixup ,fixup)
`((:temporary (:scs (any-reg) :from (:eval 0) :to (:eval 1))
,fixup)))))))
-
(!def-vm-support-routine generate-return-sequence (style)
(ecase style
(:raw
:offset lra-offset)
:offset 1)))
(:none)))
+
+(defun return-machine-address (scp)
+ (context-register scp lip-offset))