1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 15:21:51 -08:00
emacs/test/src/comp-resources
Alan Mackenzie 06e4ebc81a With `native-compile', compile lambdas in a defun or lambda too
This fixes bug#64646.  Also refactor two functions to reduce
code duplication.

* lisp/emacs-lisp/comp.el (comp-spill-lap-function/symbol)
(comp-spill-lap-function/list): Add all functions found by the
byte compiler (including lambdas) to the native compiler's
context, thus making them be native compiled.  Refactor to use
comp-intern-func-in-ctxt.  Make comp-spill-lap-function/list
also compile closures.

* test/src/comp-resources/comp-test-funcs.el
(comp-tests-lambda-return-f2): New function

* test/src/comp-tests.el (comp-test-lambda-return2)
(comp-tests-free-fun-f2): New functions to test that internal
lambdas get native compiled.
2023-11-08 20:49:48 +00:00
..
comp-test-45603.el Remove uneffective test 2022-07-13 15:19:27 +02:00
comp-test-funcs-dyn.el ; Update my mail address 2023-06-08 11:04:10 +02:00
comp-test-funcs-dyn2.el Fix native compilation in dynamically bound files. 2023-07-19 11:26:11 +00:00
comp-test-funcs.el With `native-compile', compile lambdas in a defun or lambda too 2023-11-08 20:49:48 +00:00
comp-test-pure.el ; Update my mail address 2023-06-08 11:04:10 +02:00