projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix (compile '(setf function)).
[sbcl.git]
/
src
/
compiler
/
x86-64
/
subprim.lisp
diff --git
a/src/compiler/x86-64/subprim.lisp
b/src/compiler/x86-64/subprim.lisp
index
b30b3d1
..
a779d13
100644
(file)
--- a/
src/compiler/x86-64/subprim.lisp
+++ b/
src/compiler/x86-64/subprim.lisp
@@
-25,6
+25,7
@@
(:policy :fast-safe)
(:vop-var vop)
(:save-p :compute-only)
(:policy :fast-safe)
(:vop-var vop)
(:save-p :compute-only)
+ (:ignore eax)
(:generator 40
;; Move OBJECT into a temp we can bash on, and initialize the count.
(move ptr object)
(:generator 40
;; Move OBJECT into a temp we can bash on, and initialize the count.
(move ptr object)
@@
-43,10
+44,7
@@
(inst jmp :e DONE)
;; Otherwise, check to see whether we hit the end of a dotted list. If
;; not, loop back for more.
(inst jmp :e DONE)
;; Otherwise, check to see whether we hit the end of a dotted list. If
;; not, loop back for more.
- (move eax (make-dword-tn ptr))
- (inst and al-tn lowtag-mask)
- (inst cmp al-tn list-pointer-lowtag)
- (inst jmp :e LOOP)
+ (%test-lowtag ptr LOOP nil list-pointer-lowtag)
;; It's dotted all right. Flame out.
(error-call vop 'object-not-list-error ptr)
;; We be done.
;; It's dotted all right. Flame out.
(error-call vop 'object-not-list-error ptr)
;; We be done.
@@
-80,3
+78,5
@@
DONE))
(define-static-fun length (object) :translate length)
DONE))
(define-static-fun length (object) :translate length)
+(define-static-fun %coerce-callable-to-fun (callable)
+ :translate %coerce-callable-to-fun)