]> git.eshelyaron.com Git - emacs.git/commit
Generate 'substring' byte op (bug#39709)
authorMattias Engdegård <mattiase@acm.org>
Fri, 21 Feb 2020 11:16:20 +0000 (12:16 +0100)
committerMattias Engdegård <mattiase@acm.org>
Tue, 25 Feb 2020 15:40:11 +0000 (16:40 +0100)
commit03c07c88d90b5747456b9d286bace2dd4a713aac
treebc5df98ed38273b010731c2c380b69758b237b56
parent64af3c94a6197cd0c6a283880c900eeb5bf12961
Generate 'substring' byte op (bug#39709)

The 'substring' byte op was not emitted, apparently by mistake.  Fix.
Suggested by Mark Oteiza <mvoteiza@udel.edu>.

* lisp/emacs-lisp/bytecomp.el (byte-defop-compiler): Add '1-3' clause.
(byte-compile-one-to-three-args): New.
* lisp/emacs-lisp/byte-opt.el (byte-compile-side-effect-free-ops):
Add 'byte-substring'.
* test/lisp/emacs-lisp/bytecomp-tests.el
(byte-opt-testsuite-arith-data): Test 'substring'.
lisp/emacs-lisp/byte-opt.el
lisp/emacs-lisp/bytecomp.el
test/lisp/emacs-lisp/bytecomp-tests.el