diff options
| author | Andrea Corallo | 2021-02-27 21:26:41 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2021-02-28 23:29:49 +0100 |
| commit | 2acc46b55bdf518ece6301913ffa074f31563fa4 (patch) | |
| tree | 996a9b209c9fac76fe22a8b48d693af23934b88b /test/src | |
| parent | 312deba5302a8136fa104b054af54572cc64ea5e (diff) | |
| download | emacs-2acc46b55bdf518ece6301913ffa074f31563fa4.tar.gz emacs-2acc46b55bdf518ece6301913ffa074f31563fa4.zip | |
Migrate and rename a bunch of functions from comp.el to comp-cstr.el
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-imm-vld-p)
(comp-cstr-imm, comp-cstr-fixnum-p, comp-cstr-symbol-p)
(comp-cstr-cons-p): Move and rename from 'comp.el'.
* lisp/emacs-lisp/comp.el (comp-mvar-type-hint-match-p)
(make-comp-mvar, comp-emit-assume, comp-fwprop-prologue)
(comp-function-foldable-p, comp-function-call-maybe-fold)
(comp-fwprop-call, comp-fwprop-insn, comp-call-optim-func)
(comp-compute-function-type): Update for renamed functions.
* src/comp.c (emit_mvar_rval): Likewise.
* test/src/comp-tests.el (comp-tests-mentioned-p-1)
(comp-tests-cond-rw-checker-val): 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 fa84ffbc0bf..402ba7cd8b8 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el | |||
| @@ -739,8 +739,8 @@ https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-03/msg00914.html." | |||
| 739 | (cl-loop for y in insn | 739 | (cl-loop for y in insn |
| 740 | when (cond | 740 | when (cond |
| 741 | ((consp y) (comp-tests-mentioned-p x y)) | 741 | ((consp y) (comp-tests-mentioned-p x y)) |
| 742 | ((and (comp-mvar-p y) (comp-mvar-value-vld-p y)) | 742 | ((and (comp-mvar-p y) (comp-cstr-imm-vld-p y)) |
| 743 | (equal (comp-mvar-value y) x)) | 743 | (equal (comp-cstr-imm y) x)) |
| 744 | (t (equal x y))) | 744 | (t (equal x y))) |
| 745 | return t)) | 745 | return t)) |
| 746 | 746 | ||
| @@ -1313,8 +1313,8 @@ Return a list of results." | |||
| 1313 | (lambda (insn) | 1313 | (lambda (insn) |
| 1314 | (pcase insn | 1314 | (pcase insn |
| 1315 | (`(return ,mvar) | 1315 | (`(return ,mvar) |
| 1316 | (and (comp-mvar-value-vld-p mvar) | 1316 | (and (comp-cstr-imm-vld-p mvar) |
| 1317 | (eql (comp-mvar-value mvar) 123))))))))) | 1317 | (eql (comp-cstr-imm mvar) 123))))))))) |
| 1318 | 1318 | ||
| 1319 | (defvar comp-tests-cond-rw-expected-type nil | 1319 | (defvar comp-tests-cond-rw-expected-type nil |
| 1320 | "Type to expect in `comp-tests-cond-rw-checker-type'.") | 1320 | "Type to expect in `comp-tests-cond-rw-checker-type'.") |