X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fx86-64%2Fmacros.lisp;h=2883d289e8a487d710508c51ef592f0f4cd873a3;hb=02f7f85a6554b1ec233e9a515c4c511fe092565e;hp=8088d435ca6078c297a6671a3a73f658ed10a975;hpb=23e8ed407c99d1b26465acc0aa61c1c88cc81893;p=sbcl.git diff --git a/src/compiler/x86-64/macros.lisp b/src/compiler/x86-64/macros.lisp index 8088d43..2883d28 100644 --- a/src/compiler/x86-64/macros.lisp +++ b/src/compiler/x86-64/macros.lisp @@ -63,12 +63,12 @@ `(inst pop (make-ea-for-object-slot ,ptr ,slot ,lowtag))) (defun call-indirect (offset) - (let ((ea (make-ea :qword :disp offset))) - (cond ((immediate32-p offset) - (inst call ea)) - (t - (inst mov temp-reg-tn ea) - (inst call temp-reg-tn))))) + (typecase offset + ((signed-byte 32) + (inst call (make-ea :qword :disp offset))) + (t + (inst mov temp-reg-tn offset) + (inst call (make-ea :qword :base temp-reg-tn))))) ;;;; macros to generate useful values