5 (:args (object :scs (descriptor-reg) :target arg))
6 (:results (result :scs (descriptor-reg)))
8 (:temporary (:sc non-descriptor-reg :offset cfunc-offset) cfunc)
9 (:temporary (:sc non-descriptor-reg :offset nl0-offset :from (:argument 0))
11 (:temporary (:sc non-descriptor-reg :offset nl4-offset :to (:result 0))
13 (:temporary (:sc control-stack :offset nfp-save-offset) nfp-save)
14 (:temporary (:scs (non-descriptor-reg)) temp)
17 (let ((cur-nfp (current-nfp-tn vop)))
20 (store-stack-tn nfp-save cur-nfp))
21 ;; Allocate 64 bytes, the minimum stack size.
22 (inst addi 64 nsp-tn nsp-tn)
23 (inst li (make-fixup "debug_print" :foreign) cfunc)
24 (let ((fixup (make-fixup "call_into_c" :foreign)))
25 (inst ldil fixup temp)
26 (inst ble fixup c-text-space temp :nullify t)
28 (inst addi -64 nsp-tn nsp-tn)
30 (load-stack-tn cur-nfp nfp-save))