Mercurial > hg > xemacs-beta
comparison lisp/ChangeLog @ 5656:e9c3fe82127d
Co-operate with the byte-optimizer in the bytecomp.el labels implementation.
lisp/ChangeLog addition:
2012-05-05 Aidan Kehoe <kehoea@parhasard.net>
Co-operate with the byte-optimizer in the bytecomp.el labels
implementation, don't work against it.
* byte-optimize.el:
* byte-optimize.el (byte-compile-inline-expand):
Call #'byte-compile-unfold-lambda explicitly here, don't assume
that the byte-optimizer will do it.
* byte-optimize.el (byte-compile-unfold-lambda):
Call #'byte-optimize-body on the body, don't just mapcar
#'byte-optimize-form along it.
* byte-optimize.el (byte-optimize-lambda): New. Optimize a lambda
form.
* byte-optimize.el (byte-optimize-form-code-walker):
Descend lambda expressions, defun, and defmacro, relevant for
lexically-oriented operators like #'labels.
* byte-optimize.el (byte-optimize-body): Only return a non-eq
object if we've actually optimized something
* bytecomp.el (byte-compile-initial-macro-environment):
In the labels implementation, work with the byte optimizer, not
against it; warn when labels are defined but not used,
automatically inline labels that are used only once.
* bytecomp.el (byte-recompile-directory):
No need to wrap #'byte-compile-report-error in a lambda with
#'call-with-condition-handler here.
* bytecomp.el (byte-compile-form):
Don't inline compiled-function objects, they're probably labels.
* bytecomp.el (byte-compile-funcall):
No longer inline lambdas, trust the byte optimizer to have done it
properly, even for labels.
* cl-extra.el (cl-macroexpand-all):
Treat labels established by the byte compiler distinctly from
those established by cl-macs.el.
* cl-macs.el (cl-do-proclaim):
Treat labels established by the byte compiler distinctly from
those established by cl-macs.el.
* gui.el (make-gui-button):
When referring to the #'gui-button-action label, quote it using
function, otherwise there's a warning from the byte compiler.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 05 May 2012 20:48:24 +0100 |
parents | b7ae5f44b950 |
children | 2a870a7b86bd |
comparison
equal
deleted
inserted
replaced
5655:b7ae5f44b950 | 5656:e9c3fe82127d |
---|---|
1 2012-05-05 Aidan Kehoe <kehoea@parhasard.net> | |
2 | |
3 Co-operate with the byte-optimizer in the bytecomp.el labels | |
4 implementation, don't work against it. | |
5 | |
6 * byte-optimize.el: | |
7 * byte-optimize.el (byte-compile-inline-expand): | |
8 Call #'byte-compile-unfold-lambda explicitly here, don't assume | |
9 that the byte-optimizer will do it. | |
10 * byte-optimize.el (byte-compile-unfold-lambda): | |
11 Call #'byte-optimize-body on the body, don't just mapcar | |
12 #'byte-optimize-form along it. | |
13 * byte-optimize.el (byte-optimize-lambda): New. Optimize a lambda | |
14 form. | |
15 * byte-optimize.el (byte-optimize-form-code-walker): | |
16 Descend lambda expressions, defun, and defmacro, relevant for | |
17 lexically-oriented operators like #'labels. | |
18 * byte-optimize.el (byte-optimize-body): Only return a non-eq | |
19 object if we've actually optimized something | |
20 * bytecomp.el (byte-compile-initial-macro-environment): | |
21 In the labels implementation, work with the byte optimizer, not | |
22 against it; warn when labels are defined but not used, | |
23 automatically inline labels that are used only once. | |
24 * bytecomp.el (byte-recompile-directory): | |
25 No need to wrap #'byte-compile-report-error in a lambda with | |
26 #'call-with-condition-handler here. | |
27 * bytecomp.el (byte-compile-form): | |
28 Don't inline compiled-function objects, they're probably labels. | |
29 * bytecomp.el (byte-compile-funcall): | |
30 No longer inline lambdas, trust the byte optimizer to have done it | |
31 properly, even for labels. | |
32 * cl-extra.el (cl-macroexpand-all): | |
33 Treat labels established by the byte compiler distinctly from | |
34 those established by cl-macs.el. | |
35 * cl-macs.el (cl-do-proclaim): | |
36 Treat labels established by the byte compiler distinctly from | |
37 those established by cl-macs.el. | |
38 * gui.el (make-gui-button): | |
39 When referring to the #'gui-button-action label, quote it using | |
40 function, otherwise there's a warning from the byte compiler. | |
41 | |
1 2012-05-05 Aidan Kehoe <kehoea@parhasard.net> | 42 2012-05-05 Aidan Kehoe <kehoea@parhasard.net> |
2 | 43 |
3 Remove some redundant functions; turn other utility functions into | 44 Remove some redundant functions; turn other utility functions into |
4 labels, avoiding visibility in the global namespace, and reducing | 45 labels, avoiding visibility in the global namespace, and reducing |
5 the size of the dumped binary. | 46 the size of the dumped binary. |