[pypy-svn] r63421 - pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp

fijal at codespeak.net fijal at codespeak.net
Sun Mar 29 22:58:07 CEST 2009


Author: fijal
Date: Sun Mar 29 22:58:05 2009
New Revision: 63421

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/virtualizable.py
Log:
fix virtualizable for attributes that are constant-folded away (space ie)


Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/virtualizable.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/virtualizable.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/virtualizable.py	Sun Mar 29 22:58:05 2009
@@ -24,5 +24,5 @@
             else:
                 break
         return [cpu.fielddescrof(S, name) for name in lst if
-                name.startswith('inst_')]
+                name.startswith('inst_') and hasattr(S, name)]
 



More information about the Pypy-commit mailing list