X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcompiler%2Fx86%2Falloc.lisp;h=23d30a611887c4e15612fbe849828ac84e3e54c5;hb=23a229276c2447a658b7a30217ec774067c27d5e;hp=f3cf5f98771183b2d3a5b5173779b9a6064a6d27;hpb=ec2e02db335d1545b3c18233bf440ca4160f780d;p=sbcl.git diff --git a/src/compiler/x86/alloc.lisp b/src/compiler/x86/alloc.lisp index f3cf5f9..23d30a6 100644 --- a/src/compiler/x86/alloc.lisp +++ b/src/compiler/x86/alloc.lisp @@ -11,7 +11,9 @@ (in-package "SB!VM") -;;;; LIST and LIST* +;;;; CONS, LIST and LIST* +(defoptimizer (cons stack-allocate-result) ((&rest args)) + t) (defoptimizer (list stack-allocate-result) ((&rest args)) (not (null args))) (defoptimizer (list* stack-allocate-result) ((&rest args)) @@ -278,7 +280,7 @@ (define-vop (fixed-alloc) (:args) - (:info name words type lowtag) + (:info name words type lowtag stack-allocate-p) (:ignore name) (:results (result :scs (descriptor-reg))) (:node-var node) @@ -290,8 +292,10 @@ ;; also check for (< SPEED SPACE) is because we want the space ;; savings that these out-of-line allocation routines bring whilst ;; compiling SBCL itself. --njf, 2006-07-08 - (if (and (= lowtag list-pointer-lowtag) (policy node (< speed 3))) + (if (and (not stack-allocate-p) + (= lowtag list-pointer-lowtag) (policy node (< speed 3))) (let ((dst + ;; FIXME: out-of-line dx-allocation #.(loop for offset in *dword-regs* collect `(,offset ',(intern (format nil "ALLOCATE-CONS-TO-~A" @@ -301,8 +305,8 @@ ,@cases))))) (aver (null type)) (inst call (make-fixup dst :assembly-routine))) - (pseudo-atomic - (allocation result (pad-data-block words) node) + (maybe-pseudo-atomic stack-allocate-p + (allocation result (pad-data-block words) node stack-allocate-p) (inst lea result (make-ea :byte :base result :disp lowtag)) (when type (storew (logior (ash (1- words) n-widetag-bits) type)