]> git.eshelyaron.com Git - emacs.git/commit
Support interpreted functions as input for 'native-compile' (bug#71934)
authorAndrea Corallo <acorallo@gnu.org>
Tue, 9 Jul 2024 19:11:43 +0000 (21:11 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 10 Jul 2024 20:00:01 +0000 (22:00 +0200)
commit354761fd58cce72f8300076136e47b7bf164c297
treef71ff77c831c1bd9761fb5db08f975f2b5ea0eef
parentcd7adbf97e8bf62e9c60b87500c2d2b05963d9a5
Support interpreted functions as input for 'native-compile' (bug#71934)

* lisp/emacs-lisp/comp.el (comp--spill-lap-single-function): New function.
(comp--spill-lap-function): Make use of and do not accept
'(closure ...' as input.
(comp--spill-lap-function): Specialize on interpreted functions as
well.
(native-compile): Update doc.
* test/src/comp-tests.el (compile-interpreted-functions): New test.

(cherry picked from commit b9b9322a8e62299a223ff6673ed33de90d513bc4)
lisp/emacs-lisp/comp.el
test/src/comp-tests.el