[pypy-commit] pypy default: fix translation.
alex_gaynor
noreply at buildbot.pypy.org
Mon Sep 19 21:12:58 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r47356:6846a02685ec
Date: 2011-09-19 15:12 -0400
http://bitbucket.org/pypy/pypy/changeset/6846a02685ec/
Log: fix translation.
diff --git a/pypy/jit/metainterp/heapcache.py b/pypy/jit/metainterp/heapcache.py
--- a/pypy/jit/metainterp/heapcache.py
+++ b/pypy/jit/metainterp/heapcache.py
@@ -30,11 +30,13 @@
self.clear_caches(opnum, descr, argboxes)
def mark_escaped(self, opnum, argboxes):
- for idx, box in enumerate(argboxes):
+ idx = 0
+ for box in argboxes:
# setfield_gc and setarrayitem_gc don't escape their first argument
if not (idx == 0 and opnum in [rop.SETFIELD_GC, rop.SETARRAYITEM_GC]):
if box in self.new_boxes:
self.new_boxes[box] = False
+ idx += 1
def clear_caches(self, opnum, descr, argboxes):
if opnum == rop.SETFIELD_GC:
More information about the pypy-commit
mailing list