X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fx86-64%2Fdebug.lisp;h=5f720fed4464dca0ae01a07d4a7ae2a93801389e;hb=27b74ec6758f52b76e4f90cbf628f173a0cc6acb;hp=5ab67c6599c1b5fa463d3c01e227230ff6205d89;hpb=65cccbb44b03207ce2fb73b29424a91a7d315189;p=sbcl.git diff --git a/src/compiler/x86-64/debug.lisp b/src/compiler/x86-64/debug.lisp index 5ab67c6..5f720fe 100644 --- a/src/compiler/x86-64/debug.lisp +++ b/src/compiler/x86-64/debug.lisp @@ -43,7 +43,7 @@ (move temp offset) (inst neg temp) (inst mov result - (make-ea :qword :base sap :disp (- n-word-bytes) :index temp)))) + (make-ea :qword :base sap :disp (frame-byte-offset 0) :index temp)))) (define-vop (read-control-stack-c) (:translate stack-ref) @@ -55,7 +55,7 @@ (:result-types *) (:generator 5 (inst mov result (make-ea :qword :base sap - :disp (- (* (1+ index) n-word-bytes)))))) + :disp (frame-byte-offset index))))) (define-vop (write-control-stack) (:translate %set-stack-ref) @@ -71,7 +71,8 @@ (move temp offset) (inst neg temp) (inst mov - (make-ea :qword :base sap :disp (- n-word-bytes) :index temp) value) + (make-ea :qword :base sap :disp (frame-byte-offset 0) :index temp) + value) (move result value))) (define-vop (write-control-stack-c) @@ -84,8 +85,7 @@ (:results (result :scs (descriptor-reg))) (:result-types *) (:generator 5 - (inst mov (make-ea :qword :base sap - :disp (- (* (1+ index) n-word-bytes))) + (inst mov (make-ea :qword :base sap :disp (frame-byte-offset index)) value) (move result value)))