X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Fgeneric%2Fvm-ir2tran.lisp;h=4544f51c8584a1a6d3ea43dbf412ef9597931d79;hb=5d04a95274c9ddaebbcd6ddffc5d646e2c25598c;hp=19527a6f56d49f20d23a091f22085069a533bcf8;hpb=96bb2dc76dddb1a21b3886fa7522796879e9ed9d;p=sbcl.git diff --git a/src/compiler/generic/vm-ir2tran.lisp b/src/compiler/generic/vm-ir2tran.lisp index 19527a6..4544f51 100644 --- a/src/compiler/generic/vm-ir2tran.lisp +++ b/src/compiler/generic/vm-ir2tran.lisp @@ -53,7 +53,9 @@ res) (move-lvar-result node block locs lvar))) -(defun emit-inits (node block name object lowtag inits args) +(defun emit-inits (node block name object lowtag instance-length inits args) + #!-raw-instance-init-vops + (declare (ignore instance-length)) (let ((unbound-marker-tn nil) (funcallable-instance-tramp-tn nil)) (dolist (init inits) @@ -72,7 +74,7 @@ `(,(sb!kernel::raw-slot-data-raw-type rsd) (vop ,(sb!kernel::raw-slot-data-init-vop rsd) node block - object arg-tn slot))) + object arg-tn instance-length slot))) #!+raw-instance-init-vops sb!kernel::*raw-slot-data-list* #!-raw-instance-init-vops @@ -123,7 +125,7 @@ (locs (lvar-result-tns lvar (list *backend-t-primitive-type*))) (result (first locs))) (emit-fixed-alloc node block name words type lowtag result lvar) - (emit-inits node block name result lowtag inits args) + (emit-inits node block name result lowtag words inits args) (move-lvar-result node block locs lvar))) (defoptimizer ir2-convert-variable-allocation @@ -136,7 +138,7 @@ (emit-fixed-alloc node block name words type lowtag result lvar)) (vop var-alloc node block (lvar-tn node block extra) name words type lowtag result)) - (emit-inits node block name result lowtag inits args) + (emit-inits node block name result lowtag nil inits args) (move-lvar-result node block locs lvar))) (defoptimizer ir2-convert-structure-allocation @@ -150,7 +152,7 @@ (c-slot-specs (lvar-value slot-specs)) (words (+ (sb!kernel::dd-instance-length c-dd) words))) (emit-fixed-alloc node block name words type lowtag result lvar) - (emit-inits node block name result lowtag `((:dd . ,c-dd) ,@c-slot-specs) args) + (emit-inits node block name result lowtag words `((:dd . ,c-dd) ,@c-slot-specs) args) (move-lvar-result node block locs lvar)))) ;;; :SET-TRANS (in objdef.lisp DEFINE-PRIMITIVE-OBJECT) doesn't quite