X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fx86%2Fvm.lisp;h=1b080bc28f7fe15c012b2f977a4fd6dd6ece5412;hb=43b1750ede8767928788b158399d3c5d2910855a;hp=5099c3c82c1757e5bbbcf658d5b19f0954318230;hpb=45b5a21316381ecab98a0e5a5296294e044170e8;p=sbcl.git diff --git a/src/compiler/x86/vm.lisp b/src/compiler/x86/vm.lisp index 5099c3c..1b080bc 100644 --- a/src/compiler/x86/vm.lisp +++ b/src/compiler/x86/vm.lisp @@ -232,6 +232,8 @@ (character-reg registers :locations #!-sb-unicode #.*byte-regs* #!+sb-unicode #.*dword-regs* + #!+sb-unicode #!+sb-unicode + :element-size 2 #!-sb-unicode #!-sb-unicode :reserve-locations (#.ah-offset #.al-offset) :constant-scs (immediate) @@ -408,7 +410,14 @@ ;;; offsets of special stack frame locations (def!constant ocfp-save-offset 0) (def!constant return-pc-save-offset 1) -(def!constant code-save-offset 2) + +(declaim (inline frame-word-offset)) +(defun frame-word-offset (index) + (- (1+ index))) + +(declaim (inline frame-byte-offset)) +(defun frame-byte-offset (index) + (* (frame-word-offset index) n-word-bytes)) ;;; FIXME: This is a bad comment (changed since when?) and there are others ;;; like it in this file. It'd be nice to clarify them. Failing that deleting