[pypy-svn] r68808 - pypy/branch/logging/pypy/jit/metainterp
arigo at codespeak.net
arigo at codespeak.net
Wed Oct 28 11:35:19 CET 2009
Author: arigo
Date: Wed Oct 28 11:35:19 2009
New Revision: 68808
Modified:
pypy/branch/logging/pypy/jit/metainterp/history.py
pypy/branch/logging/pypy/jit/metainterp/resume.py
Log:
Translation fixes.
Modified: pypy/branch/logging/pypy/jit/metainterp/history.py
==============================================================================
--- pypy/branch/logging/pypy/jit/metainterp/history.py (original)
+++ pypy/branch/logging/pypy/jit/metainterp/history.py Wed Oct 28 11:35:19 2009
@@ -75,6 +75,9 @@
def repr_rpython(self, box, typechars):
n = self.seen.setdefault(box, len(self.seen))
return '%s/%s%d' % (box._get_hash_(), typechars, n)
+ def _freeze_(self):
+ self.seen.clear()
+ return False
repr_rpython = ReprRPython().repr_rpython
Modified: pypy/branch/logging/pypy/jit/metainterp/resume.py
==============================================================================
--- pypy/branch/logging/pypy/jit/metainterp/resume.py (original)
+++ pypy/branch/logging/pypy/jit/metainterp/resume.py Wed Oct 28 11:35:19 2009
@@ -437,9 +437,14 @@
pass # for tests
else:
while True:
+ try:
+ jitcodename = frameinfo.jitcode.name
+ except AttributeError:
+ jitcodename = str(objectmodel.compute_unique_id(
+ frameinfo.jitcode))
rlog.debug_log("jit-resume-frameinfo",
- "(%(jitcode)r, %(pc)d, %(exception_target)d) at %(id)d",
- jitcode = frameinfo.jitcode,
+ "(%(jitcode)s, %(pc)d, %(exception_target)d) at %(id)d",
+ jitcode = jitcodename,
pc = frameinfo.pc,
exception_target = frameinfo.exception_target,
id = objectmodel.compute_unique_id(frameinfo))
More information about the Pypy-commit
mailing list