[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-svn
Subject:    [pypy-svn] r78607 - pypy/branch/jit-unroll-loops/pypy/jit/metainterp
From:       arigo () codespeak ! net
Date:       2010-10-31 13:48:17
Message-ID: 20101031134817.28141282BE9 () codespeak ! net
[Download RAW message or body]

Author: arigo
Date: Sun Oct 31 14:48:15 2010
New Revision: 78607

Modified:
   pypy/branch/jit-unroll-loops/pypy/jit/metainterp/resume.py
Log:
Make "snapshot" a local var, allowing us to inspect it with pdb
even after the function cleared it.


Modified: pypy/branch/jit-unroll-loops/pypy/jit/metainterp/resume.py
==============================================================================
--- pypy/branch/jit-unroll-loops/pypy/jit/metainterp/resume.py	(original)
+++ pypy/branch/jit-unroll-loops/pypy/jit/metainterp/resume.py	Sun Oct 31 14:48:15 2010
@@ -299,9 +299,9 @@
         storage = self.storage
         # make sure that nobody attached resume data to this guard yet
         assert storage.rd_numb is None
-        assert storage.rd_snapshot is not None # is that true?
-        numb, liveboxes_from_env, v = self.memo.number(values,
-                                                       storage.rd_snapshot)
+        snapshot = storage.rd_snapshot
+        assert snapshot is not None # is that true?
+        numb, liveboxes_from_env, v = self.memo.number(values, snapshot)
         self.liveboxes_from_env = liveboxes_from_env
         self.liveboxes = {}
         storage.rd_numb = numb
_______________________________________________
pypy-svn mailing list
pypy-svn@codespeak.net
http://codespeak.net/mailman/listinfo/pypy-svn
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic