[pypy-svn] r64620 - pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp

benjamin at codespeak.net benjamin at codespeak.net
Fri Apr 24 02:50:40 CEST 2009


Author: benjamin
Date: Fri Apr 24 02:50:39 2009
New Revision: 64620

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/history.py
Log:
_annspecialcase_ for a non-rpython method is weird

Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/history.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/history.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/history.py	Fri Apr 24 02:50:39 2009
@@ -120,6 +120,7 @@
 class Const(AbstractValue):
     __slots__ = ()
 
+    @staticmethod
     def _new(x, cpu):
         "NOT_RPYTHON"
         T = lltype.typeOf(x)
@@ -143,8 +144,6 @@
             return ConstObj(obj)
         else:
             raise NotImplementedError(kind)
-    _new._annspecialcase_ = 'specialize:argtype(0)'
-    _new = staticmethod(_new)
 
     def constbox(self):
         return self



More information about the Pypy-commit mailing list