[pypy-svn] r77469 - pypy/trunk/pypy/jit/codewriter
fijal at codespeak.net
fijal at codespeak.net
Wed Sep 29 17:12:30 CEST 2010
Author: fijal
Date: Wed Sep 29 17:12:29 2010
New Revision: 77469
Modified:
pypy/trunk/pypy/jit/codewriter/effectinfo.py
Log:
Fix translation in tests
Modified: pypy/trunk/pypy/jit/codewriter/effectinfo.py
==============================================================================
--- pypy/trunk/pypy/jit/codewriter/effectinfo.py (original)
+++ pypy/trunk/pypy/jit/codewriter/effectinfo.py Wed Sep 29 17:12:29 2010
@@ -129,14 +129,17 @@
# ____________________________________________________________
-_callinfo_for_oopspec = {} # {oopspecindex: (calldescr, func_as_int)}
+_callinfo_for_oopspec = {} # {oopspecindex: (calldescr, func_as_int)}
def callinfo_for_oopspec(oopspecindex):
"""A function that returns the calldescr and the function
address (as an int) of one of the OS_XYZ functions defined above.
Don't use this if there might be several implementations of the same
OS_XYZ specialized by type, e.g. OS_ARRAYCOPY."""
- return _callinfo_for_oopspec[oopspecindex]
+ try:
+ return _callinfo_for_oopspec[oopspecindex]
+ except KeyError:
+ return None
def _funcptr_for_oopspec_memo(oopspecindex):
More information about the Pypy-commit
mailing list