1. Alex Gaynor
  2. pypy-postgresql

Commits

Hakan Ardo  committed a645fff

setfiels are not cached across loop boundaries

  • Participants
  • Parent commits 2bcb0a4
  • Branches jit-short_from_state

Comments (0)

Files changed (2)

File pypy/module/pypyjit/test_pypy_c/test_model.py

View file
  • Ignore whitespace
         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,

File pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py

View file
  • Ignore whitespace
         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)
             --TICK--
             jump(..., descr=<Loop0>)
         """)
-
+        
     def test_exception_inside_loop_1(self):
         def main(n):
             while n: