[pypy-svn] r69162 - pypy/trunk/pypy/interpreter

fijal at codespeak.net fijal at codespeak.net
Wed Nov 11 13:54:59 CET 2009


Author: fijal
Date: Wed Nov 11 13:54:59 2009
New Revision: 69162

Modified:
   pypy/trunk/pypy/interpreter/error.py
Log:
make normalize_exception unroll_safe


Modified: pypy/trunk/pypy/interpreter/error.py
==============================================================================
--- pypy/trunk/pypy/interpreter/error.py	(original)
+++ pypy/trunk/pypy/interpreter/error.py	Wed Nov 11 13:54:59 2009
@@ -1,5 +1,6 @@
 import os, sys
 from pypy.rlib.objectmodel import we_are_translated
+from pypy.rlib import jit
 
 AUTO_DEBUG = os.getenv('PYPY_DEBUG')
 RECORD_INTERPLEVEL_TRACEBACK = True
@@ -141,6 +142,7 @@
             import debug
             debug.fire(self)
 
+    @jit.unroll_safe
     def normalize_exception(self, space):
         """Normalize the OperationError.  In other words, fix w_type and/or
         w_value to make sure that the __class__ of w_value is exactly w_type.



More information about the Pypy-commit mailing list