]> git.eshelyaron.com Git - emacs.git/commitdiff
add ssa param to comp-new-frame
authorAndrea Corallo <akrl@sdf.org>
Sun, 15 Sep 2019 10:08:22 +0000 (12:08 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:37:48 +0000 (11:37 +0100)
lisp/emacs-lisp/comp.el

index 11da06cc0224058275557fe1da2a2c95bf204d81..51a120bb405d56bc9c9f14b13e5e14fe8e8507f4 100644 (file)
@@ -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 ()