Author: Hakan Ardo <[email protected]>
Branch: jit-short_from_state
Changeset: r44371:a645fffe5d5b
Date: 2011-05-23 08:13 +0200
http://bitbucket.org/pypy/pypy/changeset/a645fffe5d5b/

Log:    setfiels are not cached across loop boundaries

diff --git a/pypy/module/pypyjit/test_pypy_c/test_model.py 
b/pypy/module/pypyjit/test_pypy_c/test_model.py
--- a/pypy/module/pypyjit/test_pypy_c/test_model.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_model.py
@@ -47,7 +47,7 @@
         cmdline.append(str(self.filepath))
         #
         print cmdline, logfile
-        env={'PYPYLOG': 'jit-log-opt,jit-summary:' + str(logfile)}
+        env={'PYPYLOG': 'jit-log-opt,jit-log-noopt,jit-summary:' + 
str(logfile)}
         #env={'PYPYLOG': ':' + str(logfile)}
         pipe = subprocess.Popen(cmdline,
                                 env=env,
diff --git a/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py 
b/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py
--- a/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py
@@ -502,6 +502,7 @@
         assert log.result == 1000 * 999 / 2
         loop, = log.loops_by_filename(self.filepath)
         assert loop.match("""
+            i11 = getfield_gc(p4, descr=<.* 
.*W_AbstractSeqIterObject.inst_index .*>)
             i16 = int_ge(i11, i12)
             guard_false(i16, descr=<Guard3>)
             i17 = int_mul(i11, i14)
@@ -519,7 +520,7 @@
             --TICK--
             jump(..., descr=<Loop0>)
         """)
-
+        
     def test_exception_inside_loop_1(self):
         def main(n):
             while n:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to