(in-package "SB!VM")
-;;; (defknown di::current-sp () system-area-pointer (movable flushable))
-;;; (defknown di::current-fp () system-area-pointer (movable flushable))
-;;; (defknown di::stack-ref (system-area-pointer index) t (flushable))
-;;; (defknown di::%set-stack-ref (system-area-pointer index t) t (unsafe))
-;;; (defknown di::lra-code-header (t) t (movable flushable))
-;;; (defknown di::function-code-header (t) t (movable flushable))
-;;; (defknown di::make-lisp-obj ((unsigned-byte 32)) t (movable flushable))
-;;; (defknown di::get-lisp-obj-address (t) (unsigned-byte 32) (movable flushable))
-;;; (defknown di::function-word-offset (function) index (movable flushable))
-
(define-vop (debug-cur-sp)
(:translate current-sp)
(:policy :fast-safe)
(:translate sb!kernel:stack-ref)
(:policy :fast-safe)
(:args (sap :scs (sap-reg))
- (offset :scs (any-reg)))
+ (offset :scs (any-reg)))
(:arg-types system-area-pointer positive-fixnum)
(:results (result :scs (descriptor-reg)))
(:result-types *)
(:translate sb!kernel:%set-stack-ref)
(:policy :fast-safe)
(:args (sap :scs (sap-reg))
- (offset :scs (any-reg))
- (value :scs (descriptor-reg) :target result))
+ (offset :scs (any-reg))
+ (value :scs (descriptor-reg) :target result))
(:arg-types system-area-pointer positive-fixnum *)
(:results (result :scs (descriptor-reg)))
(:result-types *)
(:variant-vars lowtag)
(:generator 5
(let ((bogus (gen-label))
- (done (gen-label)))
+ (done (gen-label)))
(loadw temp thing 0 lowtag)
(inst srl temp n-widetag-bits)
(inst cmp temp)
(inst b :eq bogus)
(inst sll temp (1- (integer-length n-word-bytes)))
(unless (= lowtag other-pointer-lowtag)
- (inst add temp (- lowtag other-pointer-lowtag)))
+ (inst add temp (- lowtag other-pointer-lowtag)))
(inst sub code thing temp)
(emit-label done)
(assemble (*elsewhere*)
- (emit-label bogus)
- (inst b done)
- (move code null-tn)))))
+ (emit-label bogus)
+ (inst b done)
+ (move code null-tn)))))
(define-vop (code-from-lra code-from-mumble)
(:translate lra-code-header)
(:translate fun-code-header)
(:variant fun-pointer-lowtag))
-(define-vop (make-lisp-obj)
+(define-vop (%make-lisp-obj)
(:policy :fast-safe)
- (:translate make-lisp-obj)
+ (:translate %make-lisp-obj)
(:args (value :scs (unsigned-reg) :target result))
(:arg-types unsigned-num)
(:results (result :scs (descriptor-reg)))