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

arigo at codespeak.net arigo at codespeak.net
Thu Jul 30 14:08:57 CEST 2009


Author: arigo
Date: Thu Jul 30 14:08:55 2009
New Revision: 66695

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/llgraph/runner.py
Log:
Implement do_new for ootype backends.  Not directly tested for now
(there are some skipped start-of-tests in backend/test/runner_test).


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	Thu Jul 30 14:08:55 2009
@@ -489,6 +489,11 @@
         assert len(args) == 1
         return typedescr.create_array(args[0])
 
+    def do_new(self, args, typedescr):
+        assert isinstance(typedescr, TypeDescr)
+        assert len(args) == 0
+        return typedescr.create()
+
     def do_runtimenew(self, args, descr):
         "NOT_RPYTHON"
         classbox = args[0]



More information about the Pypy-commit mailing list