diff options
| author | Andrea Corallo | 2021-05-06 10:12:48 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2021-05-06 17:16:07 +0200 |
| commit | 43f29696adc37ae75d87cd4b86d78e830e01e018 (patch) | |
| tree | c89f999768b233314c40652bf210dc79a2a7e194 /test/src | |
| parent | 643cc3fa144e94b33a7b8f1d4965cec7b383ed35 (diff) | |
| download | emacs-43f29696adc37ae75d87cd4b86d78e830e01e018.tar.gz emacs-43f29696adc37ae75d87cd4b86d78e830e01e018.zip | |
Rename comp-speed -> native-comp-speed
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Rename
comp-speed -> native-comp-speed.
* lisp/emacs-lisp/comp.el (native-comp-speed, comp-ctxt, comp-func,
comp-spill-lap-function, comp-trampoline-compile,
comp-run-async-workers): Likewise.
* src/comp.c (emit_ctxt_code, load_comp_unit, syms_of_comp): Likewise.
* test/src/comp-tests.el (comp-tests-tco, comp-tests-fw-prop-1)
(comp-tests-check-ret-type-spec, comp-tests-pure): Likewise.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/comp-tests.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index e3e4bdd9b61..9e9097c994a 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el | |||
| @@ -786,7 +786,7 @@ Return a list of results." | |||
| 786 | 786 | ||
| 787 | (comp-deftest tco () | 787 | (comp-deftest tco () |
| 788 | "Check for tail recursion elimination." | 788 | "Check for tail recursion elimination." |
| 789 | (let ((comp-speed 3) | 789 | (let ((native-comp-speed 3) |
| 790 | ;; Disable ipa-pure otherwise `comp-tests-tco-f' gets | 790 | ;; Disable ipa-pure otherwise `comp-tests-tco-f' gets |
| 791 | ;; optimized-out. | 791 | ;; optimized-out. |
| 792 | (comp-disabled-passes '(comp-ipa-pure)) | 792 | (comp-disabled-passes '(comp-ipa-pure)) |
| @@ -814,7 +814,7 @@ Return a list of results." | |||
| 814 | 814 | ||
| 815 | (comp-deftest fw-prop-1 () | 815 | (comp-deftest fw-prop-1 () |
| 816 | "Some tests for forward propagation." | 816 | "Some tests for forward propagation." |
| 817 | (let ((comp-speed 2) | 817 | (let ((native-comp-speed 2) |
| 818 | (comp-post-pass-hooks '((comp-final comp-tests-fw-prop-checker-1)))) | 818 | (comp-post-pass-hooks '((comp-final comp-tests-fw-prop-checker-1)))) |
| 819 | (eval '(defun comp-tests-fw-prop-1-f () | 819 | (eval '(defun comp-tests-fw-prop-1-f () |
| 820 | (let* ((a "xxx") | 820 | (let* ((a "xxx") |
| @@ -828,7 +828,7 @@ Return a list of results." | |||
| 828 | 828 | ||
| 829 | (defun comp-tests-check-ret-type-spec (func-form ret-type) | 829 | (defun comp-tests-check-ret-type-spec (func-form ret-type) |
| 830 | (let ((lexical-binding t) | 830 | (let ((lexical-binding t) |
| 831 | (comp-speed 2) | 831 | (native-comp-speed 2) |
| 832 | (f-name (cl-second func-form))) | 832 | (f-name (cl-second func-form))) |
| 833 | (eval func-form t) | 833 | (eval func-form t) |
| 834 | (native-compile f-name) | 834 | (native-compile f-name) |
| @@ -1399,7 +1399,7 @@ Return a list of results." | |||
| 1399 | 1399 | ||
| 1400 | (comp-deftest pure () | 1400 | (comp-deftest pure () |
| 1401 | "Some tests for pure functions optimization." | 1401 | "Some tests for pure functions optimization." |
| 1402 | (let ((comp-speed 3) | 1402 | (let ((native-comp-speed 3) |
| 1403 | (comp-post-pass-hooks '((comp-final comp-tests-pure-checker-1 | 1403 | (comp-post-pass-hooks '((comp-final comp-tests-pure-checker-1 |
| 1404 | comp-tests-pure-checker-2)))) | 1404 | comp-tests-pure-checker-2)))) |
| 1405 | (load (native-compile (ert-resource-file "comp-test-pure.el"))) | 1405 | (load (native-compile (ert-resource-file "comp-test-pure.el"))) |