[pypy-svn] r65806 - pypy/branch/pyjitpl5/pypy/jit/metainterp

arigo at codespeak.net arigo at codespeak.net
Wed Jun 17 18:29:44 CEST 2009


Author: arigo
Date: Wed Jun 17 18:29:43 2009
New Revision: 65806

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/codewriter.py
Log:
Fix, mostly for elegance -- I think that no test would fail


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/codewriter.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/codewriter.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/codewriter.py	Wed Jun 17 18:29:43 2009
@@ -663,7 +663,8 @@
 
     def serialize_op_int_lshift_ovf(self, op):
         self.default_serialize_op(op, 'int_lshift')
-        renaming_list = range(0, self.free_vars*2, 2)
+        saved_free_vars = self.free_vars
+        renaming_list = range(0, saved_free_vars*2, 2)
         #
         v_tmp1 = Variable()
         v_tmp1.concretetype = lltype.Signed
@@ -686,6 +687,7 @@
         self.emit("overflow_error")
         #
         self.emit(label(common_case))
+        self.free_vars = saved_free_vars
 
     def serialize_op_int_neg_ovf(self, op):
         self.emit('int_sub_ovf', self.var_position(Constant(0)),



More information about the Pypy-commit mailing list