[pypy-svn] r59020 - pypy/dist/pypy/translator/backendopt
arigo at codespeak.net
arigo at codespeak.net
Sun Oct 12 14:20:33 CEST 2008
Author: arigo
Date: Sun Oct 12 14:20:33 2008
New Revision: 59020
Modified:
pypy/dist/pypy/translator/backendopt/mallocv.py
Log:
For now, let's not try to inline functions that raise
freshly-malloced exceptions.
Modified: pypy/dist/pypy/translator/backendopt/mallocv.py
==============================================================================
--- pypy/dist/pypy/translator/backendopt/mallocv.py (original)
+++ pypy/dist/pypy/translator/backendopt/mallocv.py Sun Oct 12 14:20:33 2008
@@ -174,7 +174,11 @@
def handle_raise(self, linkargsnodes):
if not is_trivial_nodelist(linkargsnodes):
- raise ForcedInline("except block")
+ raise CannotVirtualize("except block")
+ # ^^^ this could also be a ForcedInline, to try to match the
+ # exception raising and catching globally. But it looks
+ # overkill for now.
+
# XXX this assumes no exception handler in the callerframes
topframe = self
while topframe.callerframe is not None:
More information about the Pypy-commit
mailing list