From: Andrea Corallo Date: Sun, 15 Sep 2019 10:08:22 +0000 (+0200) Subject: add ssa param to comp-new-frame X-Git-Tag: emacs-28.0.90~2727^2~1165 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bbde29c012868e130388d9975beded563643a7a7;p=emacs.git add ssa param to comp-new-frame --- diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 11da06cc022..51a120bb405 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -415,11 +415,13 @@ If INPUT is a string this is the file path to be compiled." (make--comp-mvar :slot slot :const-vld const-vld :constant constant :type type)) -(defun comp-new-frame (size) +(defun comp-new-frame (size &optional ssa) "Return a clean frame of meta variables of size SIZE." (cl-loop with v = (make-vector size nil) for i below size - do (aset v i (make-comp-mvar :slot i)) + for mvar = (if ssa (make-comp-ssa-mvar :slot i) + (make-comp-mvar :slot i)) + do (aset v i mvar) finally (return v))) (defmacro comp-sp ()