[pypy-svn] r62450 - pypy/branch/pyjitpl5/pypy/jit/backend/llgraph

arigo at codespeak.net arigo at codespeak.net
Tue Mar 3 12:14:00 CET 2009


Author: arigo
Date: Tue Mar  3 12:13:57 2009
New Revision: 62450

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/llgraph/llimpl.py
Log:
Fix op_arraylen_gc in the backend.


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/llgraph/llimpl.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/llgraph/llimpl.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/llgraph/llimpl.py	Tue Mar  3 12:13:57 2009
@@ -762,7 +762,7 @@
 
     def op_arraylen_gc(self, array, arraydesc):
         array = array._obj.container
-        return len(array.items)
+        return array.getlength()
 
     def op_setarrayitem_gc(self, array, arraydesc, index, newvalue):
         ITEMTYPE = symbolic.Size2Type[arraydesc/2].OF



More information about the Pypy-commit mailing list