[pypy-svn] r65481 - pypy/branch/pyjitpl5-experiments/pypy/jit/backend/cli

antocuni at codespeak.net antocuni at codespeak.net
Thu May 28 22:27:27 CEST 2009


Author: antocuni
Date: Thu May 28 22:27:24 2009
New Revision: 65481

Modified:
   pypy/branch/pyjitpl5-experiments/pypy/jit/backend/cli/runner.py
Log:
make sure to return the same FieldDescr for all subclasses


Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/backend/cli/runner.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/backend/cli/runner.py	(original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/backend/cli/runner.py	Thu May 28 22:27:24 2009
@@ -80,7 +80,8 @@
 
     @cached_method('_fieldcache')
     def fielddescrof(self, T, fieldname):
-        return FieldDescr(T, fieldname)
+        T1, _ = T._lookup_field(fieldname)
+        return FieldDescr(T1, fieldname)
 
     # ----------------------
 



More information about the Pypy-commit mailing list