projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.20.27: fixed bug 415
[sbcl.git]
/
src
/
compiler
/
mips
/
system.lisp
diff --git
a/src/compiler/mips/system.lisp
b/src/compiler/mips/system.lisp
index
b31d80d
..
4ac025c
100644
(file)
--- 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)))
(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)))
(:args (ptr :scs (any-reg descriptor-reg)))
(:results (res :scs (any-reg descriptor-reg)))
+ (:policy :fast-safe)
(:generator 1
(: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)))
(inst sll res ptr 3)
(inst srl res res 1)))