[pypy-svn] r62214 - pypy/branch/pyjitpl5/pypy/jit/metainterp

fijal at codespeak.net fijal at codespeak.net
Fri Feb 27 12:01:08 CET 2009


Author: fijal
Date: Fri Feb 27 12:01:06 2009
New Revision: 62214

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py
Log:
a harmless checkin, since this stuff is disabled anyway


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/pyjitpl.py	Fri Feb 27 12:01:06 2009
@@ -432,12 +432,11 @@
 
     @arguments("builtin", "varargs")
     def opimpl_newlist(self, descr, varargs):
-        args = [descr.malloc_func] + varargs
-        if len(varargs) == 1:
-            if descr.tp == "int":
-                args.append(ConstInt(0))
-            else:
-                args.append(ConstPtr(lltype.nullptr(llmemory.GCREF.TO)))
+        if len(varargs) == 2:
+            mf = descr.malloc_3_func
+        else:
+            mf = descr.malloc_2_func
+        args = [mf] + varargs
         return self.execute_with_exc('newlist', args, 'ptr')
 
     @arguments("builtin", "varargs")



More information about the Pypy-commit mailing list