X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fx86-64%2Fnlx.lisp;h=4cc02fda61e0997cb3e8ed793cc0d15f4bca8bf6;hb=4ec0d70e08ea4b512d45ddbd6c82e8f6a91a914f;hp=dd31d2a6473fd7e8ef22cf38332b4abd7a83f748;hpb=878638b5b594ec6c3e8b2310f7d31435c5935ef2;p=sbcl.git diff --git a/src/compiler/x86-64/nlx.lisp b/src/compiler/x86-64/nlx.lisp index dd31d2a..4cc02fd 100644 --- a/src/compiler/x86-64/nlx.lisp +++ b/src/compiler/x86-64/nlx.lisp @@ -24,7 +24,7 @@ (defun catch-block-ea (tn) (aver (sc-is tn catch-block)) (make-ea :qword :base rbp-tn - :disp (- (* (+ (tn-offset tn) catch-block-size) n-word-bytes)))) + :disp (frame-byte-offset (+ -1 (tn-offset tn) catch-block-size)))) ;;;; Save and restore dynamic environment. @@ -168,9 +168,10 @@ (storew rdx-tn rbx-tn -1)) (sc-case tn ((descriptor-reg any-reg) - (loadw tn start (frame-word-offset i))) + (loadw tn start (frame-word-offset (+ sp->fp-offset i)))) ((control-stack) - (loadw move-temp start (frame-word-offset i)) + (loadw move-temp start + (frame-word-offset (+ sp->fp-offset i))) (inst mov tn move-temp))))) (let ((defaulting-done (gen-label))) (emit-label defaulting-done) @@ -277,7 +278,8 @@ ;; Clear the stack (inst lea rsp-tn - (make-ea :qword :base rbp-tn :disp (* -3 n-word-bytes))) + (make-ea :qword :base rbp-tn + :disp (* (- sp->fp-offset 3) n-word-bytes))) ;; Push the return-pc so it looks like we just called. (pushw rbp-tn (frame-word-offset return-pc-save-offset))