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

arigo at codespeak.net arigo at codespeak.net
Wed Jul 29 23:07:15 CEST 2009


Author: arigo
Date: Wed Jul 29 23:07:15 2009
New Revision: 66686

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/llgraph/runner.py
Log:
RPythonification.  (Not sure how it could have worked before,
except as a complicated consequence of how Descr is passed around...)


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/llgraph/runner.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/llgraph/runner.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/llgraph/runner.py	Wed Jul 29 23:07:15 2009
@@ -331,6 +331,7 @@
                                                              self.memo_cast))
 
     def do_new(self, args, size):
+        assert isinstance(size, Descr)
         return history.BoxPtr(llimpl.do_new(size.ofs))
 
     def do_new_with_vtable(self, args, descr=None):
@@ -343,6 +344,7 @@
         return history.BoxPtr(result)
 
     def do_new_array(self, args, size):
+        assert isinstance(size, Descr)
         count = args[0].getint()
         return history.BoxPtr(llimpl.do_new_array(size.ofs, count))
 



More information about the Pypy-commit mailing list