summaryrefslogtreecommitdiff
path: root/src/lisp.h
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2022-01-18 13:10:05 +0100
committerMattias EngdegÄrd <mattiase@acm.org>2022-03-13 17:51:49 +0100
commit267f41c7ce1e02f392b57aa338d387e7627df184 (patch)
tree72b4f486c5a429fd462269b37575c55d065f2b57 /src/lisp.h
parent35f75b63b51660190b48020c048701ae8553ea1f (diff)
downloademacs-267f41c7ce1e02f392b57aa338d387e7627df184.tar.gz
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.
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 0b649a92f55..5e3590675d1 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -4852,8 +4852,8 @@ extern int read_bytecode_char (bool);
/* Defined in bytecode.c. */
extern void syms_of_bytecode (void);
-extern Lisp_Object exec_byte_code (Lisp_Object, Lisp_Object, Lisp_Object,
- ptrdiff_t, ptrdiff_t, Lisp_Object *);
+extern Lisp_Object exec_byte_code (Lisp_Object, ptrdiff_t,
+ ptrdiff_t, Lisp_Object *);
extern Lisp_Object get_byte_code_arity (Lisp_Object);
/* Defined in macros.c. */