X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fx86-64%2Fshow.lisp;h=b94e4bfd87882b5d5648476b6de6a1160da918b6;hb=2dbf6e6a5011edecc5361c208e9d5915ca783351;hp=47fb5896441559cf0f03833d3af5bf726c7e87bb;hpb=a2ff6543c79752bfe42578f794bda1c28167fd10;p=sbcl.git diff --git a/src/compiler/x86-64/show.lisp b/src/compiler/x86-64/show.lisp index 47fb589..b94e4bf 100644 --- a/src/compiler/x86-64/show.lisp +++ b/src/compiler/x86-64/show.lisp @@ -17,20 +17,26 @@ (define-vop (print) (:args (object :scs (descriptor-reg any-reg))) (:temporary (:sc unsigned-reg - :offset rax-offset - :target result - :from :eval - :to (:result 0)) - rax) + :offset rax-offset + :target result + :from :eval + :to (:result 0)) + rax) (:temporary (:sc unsigned-reg) call-target) (:results (result :scs (descriptor-reg))) (:save-p t) (:generator 100 - (inst push object) + (move rax object) + (inst push rbp-tn) + (inst mov rbp-tn rsp-tn) + (inst push rbp-tn) + (inst and rsp-tn -16) + (storew rax rsp-tn) (inst lea rax (make-fixup "debug_print" :foreign)) (inst lea call-target - (make-ea :qword - :disp (make-fixup "call_into_c" :foreign))) + (make-ea :qword + :disp (make-fixup "call_into_c" :foreign))) (inst call call-target) - (inst add rsp-tn n-word-bytes) + (inst mov rsp-tn rbp-tn) + (inst pop rbp-tn) (move result rax)))