name offset lowtag)
(move-lvar-result node block (list value-tn) (node-lvar node))))
-(defun do-inits (node block name result lowtag inits args)
+(defun emit-inits (node block name result lowtag inits args)
(let ((unbound-marker-tn nil))
(dolist (init inits)
(let ((kind (car init))
name slot lowtag))))
(aver (null args)))
-(defun do-fixed-alloc (node block name words type lowtag result)
+(defun emit-fixed-alloc (node block name words type lowtag result)
(vop fixed-alloc node block name words type lowtag result))
(defoptimizer ir2-convert-fixed-allocation
(locs (lvar-result-tns lvar
(list *backend-t-primitive-type*)))
(result (first locs)))
- (do-fixed-alloc node block name words type lowtag result)
- (do-inits node block name result lowtag inits args)
+ (emit-fixed-alloc node block name words type lowtag result)
+ (emit-inits node block name result lowtag inits args)
(move-lvar-result node block locs lvar)))
(defoptimizer ir2-convert-variable-allocation
(result (first locs)))
(if (constant-lvar-p extra)
(let ((words (+ (lvar-value extra) words)))
- (do-fixed-alloc node block name words type lowtag result))
+ (emit-fixed-alloc node block name words type lowtag result))
(vop var-alloc node block (lvar-tn node block extra) name words
type lowtag result))
- (do-inits node block name result lowtag inits args)
+ (emit-inits node block name result lowtag inits args)
(move-lvar-result node block locs lvar)))
;;; :SET-TRANS (in objdef.lisp DEFINE-PRIMITIVE-OBJECT) doesn't quite
;;; Allocate an indirect value cell. Maybe do some clever stack
;;; allocation someday.
-;;;
-;;; FIXME: DO-MAKE-VALUE-CELL is a bad name, since it doesn't make
-;;; clear what's the distinction between it and the MAKE-VALUE-CELL
-;;; VOP, and since the DO- further connotes iteration, which has
-;;; nothing to do with this. Clearer, more systematic names, anyone?
(defevent make-value-cell-event "Allocate heap value cell for lexical var.")
-(defun do-make-value-cell (node block value res)
+(defun emit-make-value-cell (node block value res)
(event make-value-cell-event node)
(vop make-value-cell node block value res))
\f
(let ((src (lvar-tn node block arg))
(dest (leaf-info var)))
(if (lambda-var-indirect var)
- (do-make-value-cell node block src dest)
+ (emit-make-value-cell node block src dest)
(emit-move node block src dest)))))
(lambda-vars fun) (basic-combination-args node))
(values))
((lambda-var-indirect var)
(let ((temp
(make-normal-tn *backend-t-primitive-type*)))
- (do-make-value-cell node block actual temp)
+ (emit-make-value-cell node block actual temp)
(temps temp)))
((member actual (locs))
(let ((temp (make-normal-tn (tn-primitive-type loc))))
(let ((pass (standard-arg-location n))
(home (leaf-info arg)))
(if (lambda-var-indirect arg)
- (do-make-value-cell node block pass home)
+ (emit-make-value-cell node block pass home)
(emit-move node block pass home))))
(incf n))))
(when (leaf-refs var)
(let ((dest (leaf-info var)))
(if (lambda-var-indirect var)
- (do-make-value-cell node block src dest)
+ (emit-make-value-cell node block src dest)
(emit-move node block src dest)))))
(lvar-tns node block lvar
(mapcar (lambda (x)
(ecase kind
((:block :tagbody)
(if (nlx-info-safe-p info)
- (do-make-value-cell node block res (ir2-nlx-info-home 2info))
+ (emit-make-value-cell node block res (ir2-nlx-info-home 2info))
(emit-move node block res (ir2-nlx-info-home 2info))))
(:unwind-protect
(vop set-unwind-protect node block block-tn))