mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-01 11:20:41 -08:00
Minor simplification for byte-compile-constant-push
* lisp/emacs-lisp/bytecomp.el (byte-compile-constant): Move the meat of the code from here... (byte-compile-constant-push): ... to here. No need to bind byte-compile--for-effect anymore.
This commit is contained in:
parent
70bb510a7e
commit
112fbe3515
1 changed files with 4 additions and 5 deletions
|
|
@ -3342,15 +3342,14 @@ for symbols generated by the byte compiler itself."
|
|||
(defun byte-compile-constant (const)
|
||||
(if byte-compile--for-effect
|
||||
(setq byte-compile--for-effect nil)
|
||||
(when (symbolp const)
|
||||
(byte-compile-set-symbol-position const))
|
||||
(byte-compile-out 'byte-constant (byte-compile-get-constant const))))
|
||||
(inline (byte-compile-push-constant const))))
|
||||
|
||||
;; Use this for a constant that is not the value of its containing form.
|
||||
;; This ignores byte-compile--for-effect.
|
||||
(defun byte-compile-push-constant (const)
|
||||
(let ((byte-compile--for-effect nil))
|
||||
(inline (byte-compile-constant const))))
|
||||
(when (symbolp const)
|
||||
(byte-compile-set-symbol-position const))
|
||||
(byte-compile-out 'byte-constant (byte-compile-get-constant const)))
|
||||
|
||||
;; Compile those primitive ordinary functions
|
||||
;; which have special byte codes just for speed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue