]> git.eshelyaron.com Git - emacs.git/commit
Simplify exec_byte_code arguments
authorMattias Engdegård <mattiase@acm.org>
Tue, 18 Jan 2022 12:10:05 +0000 (13:10 +0100)
committerMattias Engdegård <mattiase@acm.org>
Sun, 13 Mar 2022 16:51:49 +0000 (17:51 +0100)
commit267f41c7ce1e02f392b57aa338d387e7627df184
tree72b4f486c5a429fd462269b37575c55d065f2b57
parent35f75b63b51660190b48020c048701ae8553ea1f
Simplify exec_byte_code arguments

Pass the function object and encoded arity, not the other components.
This speeds up several call paths and is necessary for improvements to
come.

* src/bytecode.c (Fbyte_code): Make a new byte code object for
execution.  This is slower but performance isn't critical here.
(exec_byte_code): Retrieve components from the passed function.
* src/eval.c (fetch_and_exec_byte_code):
* src/lisp.h (exec_byte_code): Update signature.
src/bytecode.c
src/eval.c
src/lisp.h