Changeset 15006


Ignore:
Timestamp:
05/15/17 20:37:44 (6 years ago)
Author:
Mark Evenson
Message:

jss: fix test

(Olof-Joachim Frahm)

Merges <https://github.com/armedbear/abcl/pull/42>.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/contrib/jss/jss-tests.lisp

    r14949 r15006  
    4242
    4343
    44 (is-type (let ((just-loop (cl-user::print-db (timeit (just-loop 10000)))))
     44(is-type (let ((just-loop (timeit (just-loop 10000))))
    4545     (+ 0.0
    4646        (print (/ (-  (timeit (optimized-jss 10000)) just-loop)
     
    4848   '(float 0 0.1))
    4949
    50 (is (let* ((jss::*inhibit-jss-optimization* nil)
    51      (optimized-jss (macroexpand (precompiler::precompile-form '(#"compile" 'regex.Pattern ".*") t))))
    52       (let* ((jss::*inhibit-jss-optimization* t)
    53        (unoptimized-jss (macroexpand (precompiler::precompile-form '(#"compile" 'regex.Pattern ".*") t))))
    54   (and (eq (car optimized-jss) 'jstatic)
    55        (eq (caar unoptimized-jss) 'lambda)))))
     50(let* ((jss::*inhibit-jss-optimization* nil)
     51       (optimized-jss (macroexpand (precompiler::precompile-form '(#"compile" 'regex.Pattern ".*") t))))
     52  (let* ((jss::*inhibit-jss-optimization* t)
     53         (unoptimized-jss (macroexpand (precompiler::precompile-form '(#"compile" 'regex.Pattern ".*") t))))
     54    (is (car optimized-jss) 'java:jstatic)
     55    (is (caar unoptimized-jss) 'lambda)))
    5656
    5757(finalize)
Note: See TracChangeset for help on using the changeset viewer.