X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fmips%2Fsystem.lisp;h=4ac025c6df297700978b7834a9bfd74de63f0507;hb=9b1fade83db8453b75b8c7380eb12ce41b5b889c;hp=b31d80d9d661f0b6acafc8b97164287990ed370a;hpb=bbfff61cef2c6fe35929d46283f3e56fb0fe98b1;p=sbcl.git diff --git a/src/compiler/mips/system.lisp b/src/compiler/mips/system.lisp index b31d80d..4ac025c 100644 --- a/src/compiler/mips/system.lisp +++ b/src/compiler/mips/system.lisp @@ -130,13 +130,14 @@ (storew t1 x 0 other-pointer-lowtag) (move res x))) -(define-vop (make-fixnum) +(define-vop (pointer-hash) + (:translate pointer-hash) (:args (ptr :scs (any-reg descriptor-reg))) (:results (res :scs (any-reg descriptor-reg))) + (:policy :fast-safe) (:generator 1 - ;; - ;; Some code (the hash table code) depends on this returning a - ;; positive number so make sure it does. + ;; FIXME: It would be better if this would mask the lowtag, + ;; and shift the result into a positive fixnum like on x86. (inst sll res ptr 3) (inst srl res res 1)))