Author: Alex Gaynor <[email protected]>
Branch: unroll-if-alt
Changeset: r47374:5b130d326e27
Date: 2011-09-20 15:15 -0400
http://bitbucket.org/pypy/pypy/changeset/5b130d326e27/
Log: rewrite, hopefully makes the logic more clear
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
@@ -42,10 +42,11 @@
self.dependencies.setdefault(box, []).append(valuebox)
else:
self._escape(valuebox)
- else:
+ # GETFIELD_GC doesn't escape it's argument
+ elif opnum != rop.GETFIELD_GC:
for box in argboxes:
- # setarrayitem_gc don't escape their first argument
- if not (idx == 0 and opnum in [rop.SETARRAYITEM_GC,
rop.GETFIELD_GC]):
+ # setarrayitem_gc don't escape its first argument
+ if not (idx == 0 and opnum in [rop.SETARRAYITEM_GC]):
self._escape(box)
idx += 1
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit