]> git.eshelyaron.com Git - emacs.git/commit
Clean up legacy bytecode loading
authorMattias EngdegÄrd <mattiase@acm.org>
Sun, 26 May 2024 09:13:50 +0000 (11:13 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 27 May 2024 20:26:32 +0000 (22:26 +0200)
commitbf003feccae9f07faef33ccb0a457e1d1a7cf51a
tree12cfeba158f1f05aa37c72c29dce720a6d0d16fe
parent96c489e1c00562797666442101edba1d015024b0
Clean up legacy bytecode loading

Complete some unfinished work from the elimination of lazy bytecode
loading in 9bcc9690a8: remove code which became unreachable by that
reform.  This simplifies some of the lower-level parts of the reader
which helps performance somewhat.

* src/doc.c (read_bytecode_pointer, read_bytecode_char)
(read_doc_string): Remove.
(get_doc_string): Remove last argument, all callers adapted.  Simplify.
* src/lread.c (readbyte_for_lambda, readbyte_from_string)
(readbyte_for_lambda, readbyte_from_string): Remove.
(readchar, unreadchar): Remove unused code paths for Qlambda and cons
arguments.
(bytecode_from_rev_list): Remove last use of a quirky code path,
decoding force-loaded lazy bytecode explicitly.

(cherry picked from commit 236034a24d0e93e1796224e2ff4a14819fcfd559)
src/doc.c
src/lisp.h
src/lread.c