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

arigo at codespeak.net arigo at codespeak.net
Tue Jun 23 19:58:59 CEST 2009


Author: arigo
Date: Tue Jun 23 19:58:58 2009
New Revision: 65890

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py
Log:
Forgot to account for green args.


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/warmspot.py	Tue Jun 23 19:58:58 2009
@@ -709,7 +709,8 @@
                 set_future_value(i, redargs[i], typecode)
                 i = i + 1
             if vinfo is not None:
-                virtualizable = redargs[vinfo.index_of_virtualizable]
+                virtualizable = redargs[vinfo.index_of_virtualizable -
+                                        num_green_args]
                 for typecode, fieldname in vable_static_fields:
                     x = getattr(virtualizable, fieldname)
                     set_future_value(i, x, typecode)



More information about the Pypy-commit mailing list