1 ;;;; temporary printing utilities and similar noise
3 ;;;; This software is part of the SBCL system. See the README file for
6 ;;;; This software is derived from the CMU CL system, which was
7 ;;;; written at Carnegie Mellon University and released into the
8 ;;;; public domain. The software is in the public domain and is
9 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
10 ;;;; files for more information.
15 (:args (object :scs (descriptor-reg) :target a0))
16 (:results (result :scs (descriptor-reg)))
18 (:temporary (:sc any-reg :offset cfunc-offset :target result :to (:result 0))
20 (:temporary (:sc descriptor-reg :offset nl0-offset :from (:argument 0)) a0)
21 (:temporary (:sc control-stack :offset nfp-save-offset) nfp-save)
22 (:temporary (:scs (non-descriptor-reg)) temp)
25 (let ((cur-nfp (current-nfp-tn vop)))
28 (store-stack-tn nfp-save cur-nfp))
29 (inst li (make-fixup "debug_print" :foreign) cfunc)
30 (inst li (make-fixup "call_into_c" :foreign) temp)
31 (inst jsr lip-tn temp (make-fixup "call_into_c" :foreign))
33 (maybe-load-stack-nfp-tn cur-nfp nfp-save temp))
34 (move cfunc result))))