mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
fix function top_level_run generation
This commit is contained in:
parent
5c18855234
commit
a2ed435e3a
@ -1047,14 +1047,10 @@ the annotation emission."
|
||||
(make-comp-mvar :constant doc)))))
|
||||
|
||||
(cl-defmethod comp-emit-for-top-level ((form byte-to-native-top-level))
|
||||
(let* ((form (byte-to-native-top-level-form form))
|
||||
(func-name (car form))
|
||||
(args (cdr form)))
|
||||
(if (eq 'unevalled (cdr (subr-arity (symbol-function func-name))))
|
||||
(comp-emit (comp-call func-name (make-comp-mvar :constant args)))
|
||||
(comp-emit (apply #'comp-call func-name
|
||||
(mapcar (lambda (x) (make-comp-mvar :constant x))
|
||||
args))))))
|
||||
(let ((form (byte-to-native-top-level-form form)))
|
||||
(comp-emit (comp-call 'eval
|
||||
(make-comp-mvar :constant form)
|
||||
(make-comp-mvar :constant t)))))
|
||||
|
||||
(defun comp-limplify-top-level ()
|
||||
"Create a limple function doing the business for top level forms.
|
||||
|
Loading…
Reference in New Issue
Block a user