[pypy-svn] r65175 - pypy/branch/pyjitpl5/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Sat May 9 03:47:41 CEST 2009


Author: fijal
Date: Sat May  9 03:47:40 2009
New Revision: 65175

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py
Log:
symbolics are fine


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py	Sat May  9 03:47:40 2009
@@ -629,7 +629,7 @@
     def fielddescrof(self, S, fieldname):
         ofs, size = symbolic.get_field_token(S, fieldname,
                                              self.translate_support_code)
-        assert size in [0, 1, WORD]
+        assert isinstance(size, Symbolic) or size in [0, 1, WORD]
         if (isinstance(getattr(S, fieldname), lltype.Ptr) and
             getattr(S, fieldname).TO._gckind == 'gc'):
             ptr = True



More information about the Pypy-commit mailing list