[pypy-svn] r14896 - pypy/dist/pypy/rpython

pedronis at codespeak.net pedronis at codespeak.net
Thu Jul 21 23:08:35 CEST 2005


Author: pedronis
Date: Thu Jul 21 23:08:34 2005
New Revision: 14896

Modified:
   pypy/dist/pypy/rpython/rmodel.py
Log:
- default error fallback for hardwired_*call*

- don't loop for setting rtype_contains default



Modified: pypy/dist/pypy/rpython/rmodel.py
==============================================================================
--- pypy/dist/pypy/rpython/rmodel.py	(original)
+++ pypy/dist/pypy/rpython/rmodel.py	Thu Jul 21 23:08:34 2005
@@ -168,12 +168,18 @@
 
 for opname in annmodel.UNARY_OPERATIONS:
     setattr_default(Repr, 'rtype_' + opname, missing_rtype_operation)
+
+# hardwired_*call*
+setattr_default(Repr, 'rtype_hardwired_simple_call', missing_rtype_operation)
+setattr_default(Repr, 'rtype_hardwired_call_args'  , missing_rtype_operation)
+
 for opname in annmodel.BINARY_OPERATIONS:
     setattr_default(pairtype(Repr, Repr),
                     'rtype_' + opname, missing_rtype_operation)
+
 # not in BINARY_OPERATIONS
-    setattr_default(pairtype(Repr, Repr),
-                    'rtype_contains', missing_rtype_operation)
+setattr_default(pairtype(Repr, Repr),
+                'rtype_contains', missing_rtype_operation)
 
 class __extend__(pairtype(Repr, Repr)):
     def convert_from_to((r_from, r_to), v, llops):



More information about the Pypy-commit mailing list