]> git.eshelyaron.com Git - emacs.git/commit
Compile list member functions in cond to switch (bug#36139)
authorMattias Engdegård <mattiase@acm.org>
Tue, 21 May 2019 09:56:14 +0000 (11:56 +0200)
committerMattias Engdegård <mattiase@acm.org>
Wed, 19 Jun 2019 09:20:58 +0000 (11:20 +0200)
commit36ab408207d7adf94fd1396922e0df38d746a948
tree8c0a40db0b370296b32f8681c6aae377072e3ff6
parent2419fa3937f07f8e2e4a79f77fe367a9979cb578
Compile list member functions in cond to switch (bug#36139)

* lisp/emacs-lisp/bytecomp.el (byte-compile-cond-jump-table-info):
Expand `memq', `memql' and `member' to their corresponding
equality tests.
(byte-compile-cond-jump-table): Cases now have multiple values.
* lisp/emacs-lisp/byte-opt.el (byte-decompile-bytecode-1)
(byte-optimize-lapcode): Don't assume switch hash tables to be injective.
lisp/emacs-lisp/byte-opt.el
lisp/emacs-lisp/bytecomp.el