summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2021-02-22 15:17:07 +0100
committerAndrea Corallo <akrl@sdf.org>2021-02-22 20:49:11 +0100
commit28ce6f980ff9dc022550933f840ab5c8469cc9d1 (patch)
tree832361b65c27a339945318405fe612d4b7a4c8ef /lisp/emacs-lisp
parentf6c5f0dd5c8167b6f8f724f42632a4b8808efe7a (diff)
downloademacs-28ce6f980ff9dc022550933f840ab5c8469cc9d1.tar.gz
emacs-28ce6f980ff9dc022550933f840ab5c8469cc9d1.tar.bz2
emacs-28ce6f980ff9dc022550933f840ab5c8469cc9d1.zip
* Some clean-up in comp.el
* lisp/emacs-lisp/comp.el (comp-func): Remove 'array-h'. (comp-spill-lap-function, comp-intern-func-in-ctxt) (comp-spill-lap-function, comp-addr-to-bb-name): Update accordingly.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/comp.el9
1 files changed, 0 insertions, 9 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 677e6a7b8d3..e2b1d04bc2b 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -774,8 +774,6 @@ CFG is mutated by a pass.")
:documentation "Generates edges numbers.")
(has-non-local nil :type boolean
:documentation "t if non local jumps are present.")
- (array-h (make-hash-table) :type hash-table
- :documentation "array idx -> array length.")
(speed nil :type number
:documentation "Optimization level (see `comp-speed').")
(pure nil :type boolean
@@ -1188,8 +1186,6 @@ clashes."
(setf (comp-ctxt-top-level-forms comp-ctxt)
(list (make-byte-to-native-func-def :name function-name
:c-name c-name)))
- ;; Create the default array.
- (puthash 0 (comp-func-frame-size func) (comp-func-array-h func))
(comp-add-func-to-ctxt func))))
(cl-defmethod comp-spill-lap-function ((form list))
@@ -1227,8 +1223,6 @@ clashes."
(comp-ctxt-top-level-forms comp-ctxt)
(list (make-byte-to-native-func-def :name '--anonymous-lambda
:c-name c-name)))
- ;; Create the default array.
- (puthash 0 (comp-func-frame-size func) (comp-func-array-h func))
(comp-add-func-to-ctxt func))))
(defun comp-intern-func-in-ctxt (_ obj)
@@ -1265,8 +1259,6 @@ clashes."
(setf (byte-to-native-func-def-c-name top-l-form) c-name))
(unless name
(puthash byte-func func (comp-ctxt-byte-func-to-func-h comp-ctxt)))
- ;; Create the default array.
- (puthash 0 (comp-func-frame-size func) (comp-func-array-h func))
(comp-add-func-to-ctxt func)
(comp-log (format "Function %s:\n" name) 1)
(comp-log lap 1 t))))
@@ -2090,7 +2082,6 @@ into the C code forwarding the compilation unit."
(mapc (lambda (x) (comp-emit-for-top-level x for-late-load))
(comp-ctxt-top-level-forms comp-ctxt))
(comp-emit `(return ,(make-comp-mvar :slot 1)))
- (puthash 0 (comp-func-frame-size func) (comp-func-array-h func))
(comp-limplify-finalize-function func)))
(defun comp-addr-to-bb-name (addr)