[pypy-svn] r64674 - pypy/branch/pyjitpl5/pypy/jit/metainterp
arigo at codespeak.net
arigo at codespeak.net
Sat Apr 25 18:05:47 CEST 2009
Author: arigo
Date: Sat Apr 25 18:05:47 2009
New Revision: 64674
Modified:
pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py
Log:
Translation fix (this time without breaking the semantics, hopefully).
Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py Sat Apr 25 18:05:47 2009
@@ -1276,14 +1276,14 @@
if suboperations[-1].opnum != rop.FAIL:
must_compile = False
log("ignoring old version of the guard")
- if must_compile:
- self.history = history.History(self.cpu)
- extra = len(suboperations) - 1
- assert extra >= 0
- for i in range(extra):
- self.history.operations.append(suboperations[i])
- self.extra_rebuild_operations = extra
- else:
+ else:
+ self.history = history.History(self.cpu)
+ extra = len(suboperations) - 1
+ assert extra >= 0
+ for i in range(extra):
+ self.history.operations.append(suboperations[i])
+ self.extra_rebuild_operations = extra
+ if not must_compile:
self.staticdata.globaldata.blackhole = True
self.history = history.BlackHole(self.cpu)
# the BlackHole is invalid because it doesn't start with
More information about the Pypy-commit
mailing list