FUNCTION-PTR
(load-type result object (- fun-pointer-lowtag))
(inst nop :tr)
-
+
OTHER-PTR
(load-type result object (- other-pointer-lowtag))
-
+
DONE))
(define-vop (fun-subtype)
(:translate (setf fun-subtype))
(:policy :fast-safe)
(:args (type :scs (unsigned-reg) :target result)
- (function :scs (descriptor-reg)))
+ (function :scs (descriptor-reg)))
(:arg-types positive-fixnum *)
(:results (result :scs (unsigned-reg)))
(:result-types positive-fixnum)
(:translate set-header-data)
(:policy :fast-safe)
(:args (x :scs (descriptor-reg) :target res)
- (data :scs (unsigned-reg)))
+ (data :scs (unsigned-reg)))
(:arg-types * positive-fixnum)
(:results (res :scs (descriptor-reg)))
(:temporary (:scs (non-descriptor-reg)) temp)
(define-vop (make-other-immediate-type)
(:args (val :scs (any-reg descriptor-reg))
- (type :scs (any-reg descriptor-reg) :target temp))
+ (type :scs (any-reg descriptor-reg) :target temp))
(:results (res :scs (any-reg descriptor-reg) :from (:argument 0)))
(:temporary (:scs (non-descriptor-reg)) temp)
(:generator 2
(define-vop (compute-fun)
(:args (code :scs (descriptor-reg))
- (offset :scs (signed-reg unsigned-reg)))
+ (offset :scs (signed-reg unsigned-reg)))
(:arg-types * positive-fixnum)
(:results (func :scs (descriptor-reg)))
(:temporary (:scs (non-descriptor-reg)) ndescr)
(:temporary (:scs (non-descriptor-reg)) count)
(:generator 1
(let ((offset
- (- (* (+ index vector-data-offset) n-word-bytes) other-pointer-lowtag)))
+ (- (* (+ index vector-data-offset) n-word-bytes) other-pointer-lowtag)))
(inst ldw offset count-vector count)
(inst addi 1 count count)
(inst stw count offset count-vector))))