]> git.eshelyaron.com Git - emacs.git/commitdiff
better comp-byte-frame-size
authorAndrea Corallo <akrl@sdf.org>
Sun, 24 Nov 2019 15:21:43 +0000 (16:21 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:09 +0000 (11:38 +0100)
lisp/emacs-lisp/comp.el

index 47d4de87c6b43dd4490cd0e3d9703aaa9bff765a..1815b1709a897556eca3f06c9fa4d53b7bb9a52f 100644 (file)
@@ -406,11 +406,9 @@ Put PREFIX in front of it."
                        :nonrest nonrest
                        :rest rest))))
 
-(defun comp-byte-frame-size (byte-compiled-func)
+(defsubst comp-byte-frame-size (byte-compiled-func)
   "Given BYTE-COMPILED-FUNC return the frame size to be allocated."
-  ;; Is this really correct?
-  ;; For the 1+ see bytecode.c:365 (finger crossed).
-  (1+ (aref byte-compiled-func 3)))
+  (aref byte-compiled-func 3))
 
 (cl-defgeneric comp-spill-lap-function (input)
   "Byte compile INPUT and spill lap for further stages.")
@@ -431,7 +429,8 @@ Put PREFIX in front of it."
         (let ((lambda-list (aref (comp-func-byte-func func) 0)))
           (setf (comp-func-args func)
                 (comp-decrypt-lambda-list lambda-list)
-                (comp-func-lap func) lap
+                (comp-func-lap func)
+                lap
                 (comp-func-frame-size func)
                 (comp-byte-frame-size (comp-func-byte-func func))))
         (setf (comp-ctxt-top-level-forms comp-ctxt)