projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.45.2: A slightly better error message for malformed reader conditional
[sbcl.git]
/
src
/
compiler
/
x86-64
/
show.lisp
diff --git
a/src/compiler/x86-64/show.lisp
b/src/compiler/x86-64/show.lisp
index
f0e0201
..
b94e4bf
100644
(file)
--- a/
src/compiler/x86-64/show.lisp
+++ b/
src/compiler/x86-64/show.lisp
@@
-17,21
+17,26
@@
(define-vop (print)
(:args (object :scs (descriptor-reg any-reg)))
(:temporary (:sc unsigned-reg
(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
(:temporary (:sc unsigned-reg) call-target)
(:results (result :scs (descriptor-reg)))
(:save-p t)
(:generator 100
- (inst push object)
- (inst lea rax (make-fixup (extern-alien-name "debug_print") :foreign))
+ (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
(inst lea call-target
- (make-ea :qword
- :disp (make-fixup (extern-alien-name "call_into_c")
- :foreign)))
+ (make-ea :qword
+ :disp (make-fixup "call_into_c" :foreign)))
(inst call call-target)
(inst call call-target)
- (inst add rsp-tn n-word-bytes)
+ (inst mov rsp-tn rbp-tn)
+ (inst pop rbp-tn)
(move result rax)))
(move result rax)))