]> git.eshelyaron.com Git - emacs.git/commit
Add new bytecodes for unwind-protect feature/byte-unwind-protect
authorTom Tromey <tom@tromey.com>
Sat, 20 Jan 2018 19:25:26 +0000 (12:25 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 23 Jan 2018 05:11:26 +0000 (22:11 -0700)
commit916094a84f0ab31be31aa6c3632f14176b4e882a
tree5d14b3b849b7b63f19577bd45bbbd85cdba0b702
parenta6b4b9b4af5405b62cbd59f5ce23ca0fe0027ac7
Add new bytecodes for unwind-protect

* lisp/emacs-lisp/byte-opt.el (disassemble-offset): Handle
byte-pushunwindprotect.
* lisp/emacs-lisp/bytecomp.el (byte-pushunwindprotect)
(byte-endunwindprotect): New bytecodes.
(byte-goto-ops): Add byte-pushunwindprotect.
(byte-compile-unwind-protect): Emit new bytecodes.
(byte-compile-goto): Handle byte-pushunwindprotect.
* lisp/emacs-lisp/cconv.el (cconv-convert): Don't special-case
unwind-protect when byte-compile--use-old-handlers.
(cconv-analyze-form): Likewise.
* src/bytecode.c (Bpushunwindprotect, Bendunwindprotect): New bytecodes.
(exec_byte_code): Implement new bytecodes.
* test/src/bytecode-tests.el: New file.
lisp/emacs-lisp/byte-opt.el
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/cconv.el
src/bytecode.c
test/src/bytecode-tests.el [new file with mode: 0644]