[pypy-svn] r65348 - in pypy/branch/pyjitpl5/pypy: jit/backend/cli/test rpython/ootypesystem

antocuni at codespeak.net antocuni at codespeak.net
Thu May 21 14:12:42 CEST 2009


Author: antocuni
Date: Thu May 21 14:12:41 2009
New Revision: 65348

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_zrpy_vlist.py
   pypy/branch/pyjitpl5/pypy/rpython/ootypesystem/rpbc.py
Log:
delay the call to get_concrete_calltable, so that the low level types of the
methods arguments have been fully computed, much like r65288. test_ll_fixed_setitem_fast passes



Modified: pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_zrpy_vlist.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_zrpy_vlist.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/cli/test/test_zrpy_vlist.py	Thu May 21 14:12:41 2009
@@ -7,7 +7,4 @@
     # for the individual tests see
     # ====> ../../../metainterp/test/test_vlist.py
 
-    def skip(self):
-        py.test.skip('in-progress')
-
-    test_ll_fixed_setitem_fast = skip
+    pass

Modified: pypy/branch/pyjitpl5/pypy/rpython/ootypesystem/rpbc.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/rpython/ootypesystem/rpbc.py	(original)
+++ pypy/branch/pyjitpl5/pypy/rpython/ootypesystem/rpbc.py	Thu May 21 14:12:41 2009
@@ -116,10 +116,11 @@
 
 class MethodsPBCRepr(AbstractMethodsPBCRepr):
 
-    def __init__(self, rtyper, s_pbc):
-        AbstractMethodsPBCRepr.__init__(self, rtyper, s_pbc)
-        sampledesc = s_pbc.descriptions.iterkeys().next()
-        self.concretetable, _ = get_concrete_calltable(rtyper,
+    concretetable = None # set by _setup_repr_final
+
+    def _setup_repr_final(self):
+        sampledesc = self.s_pbc.descriptions.iterkeys().next()
+        self.concretetable, _ = get_concrete_calltable(self.rtyper,
                                              sampledesc.funcdesc.getcallfamily())
 
     def rtype_simple_call(self, hop):



More information about the Pypy-commit mailing list