[pypy-commit] pypy default: fix translation

cfbolz pypy.commits at gmail.com
Mon Jun 20 17:39:27 EDT 2016


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: 
Changeset: r85264:d70f72636d06
Date: 2016-06-20 23:38 +0200
http://bitbucket.org/pypy/pypy/changeset/d70f72636d06/

Log:	fix translation

diff --git a/rpython/jit/metainterp/optimizeopt/virtualstate.py b/rpython/jit/metainterp/optimizeopt/virtualstate.py
--- a/rpython/jit/metainterp/optimizeopt/virtualstate.py
+++ b/rpython/jit/metainterp/optimizeopt/virtualstate.py
@@ -478,7 +478,7 @@
             self.intbound = info
 
     def _generate_guards_unkown(self, other, box, runtime_box, extra_guards,
-                                optimizer):
+                                state):
         other_intbound = None
         if isinstance(other, NotVirtualStateInfoInt):
             other_intbound = other.intbound
@@ -490,7 +490,7 @@
             self.intbound.contains(runtime_box.getint())):
             # this may generate a few more guards than needed, but they are
             # optimized away when emitting them
-            self.intbound.make_guards(box, extra_guards, optimizer)
+            self.intbound.make_guards(box, extra_guards, state.optimizer)
             return
         raise VirtualStatesCantMatch("intbounds don't match")
 


More information about the pypy-commit mailing list