projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.33.22: fix WITH-MUTEX docstring
[sbcl.git]
/
src
/
compiler
/
alpha
/
system.lisp
diff --git
a/src/compiler/alpha/system.lisp
b/src/compiler/alpha/system.lisp
index
70c7c47
..
c79d117
100644
(file)
--- a/
src/compiler/alpha/system.lisp
+++ b/
src/compiler/alpha/system.lisp
@@
-116,7
+116,7
@@
(inst and t1 widetag-mask t1)
(sc-case data
(any-reg
(inst and t1 widetag-mask t1)
(sc-case data
(any-reg
- (inst sll data (- n-widetag-bits 2) t2)
+ (inst sll data (- n-widetag-bits n-fixnum-tag-bits) t2)
(inst bis t1 t2 t1))
(immediate
(let ((c (ash (tn-value data) n-widetag-bits)))
(inst bis t1 t2 t1))
(immediate
(let ((c (ash (tn-value data) n-widetag-bits)))
@@
-129,13
+129,14
@@
(storew t1 x 0 other-pointer-lowtag)
(move x res)))
(storew t1 x 0 other-pointer-lowtag)
(move x res)))
-(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 ptr 35 res)
(inst srl res 33 res)))
(inst sll ptr 35 res)
(inst srl res 33 res)))