]> git.eshelyaron.com Git - emacs.git/commit
Single source optimiser entry point
authorMattias Engdegård <mattiase@acm.org>
Wed, 28 Jul 2021 19:12:27 +0000 (21:12 +0200)
committerMattias Engdegård <mattiase@acm.org>
Fri, 30 Jul 2021 07:54:29 +0000 (09:54 +0200)
commit566e29f78ccee4fcf0421576c0306860c8afae0f
treeaaedb56c599f5d80cb102b34e0fbc6522d74ba08
parent5fb8b20fa35a931660d9d59afc9ca863dd33a123
Single source optimiser entry point

Make the optimiser aware of lexical arguments.  Otherwise we cannot
know for sure whether a variable is lexical or dynamic during
traversal.

* lisp/emacs-lisp/byte-opt.el (byte-optimize-one-form): New optimiser
entry point, replacing the recursive byte-optimize-form.
* lisp/emacs-lisp/bytecomp.el (byte-optimize-one-form): Autoload.
(byte-compile-keep-pending, byte-compile-top-level):
Use byte-optimize-one-form.
lisp/emacs-lisp/byte-opt.el
lisp/emacs-lisp/bytecomp.el