[pypy-svn] r22243 - pypy/dist/pypy/translator/backendopt

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Jan 17 02:25:31 CET 2006


Author: cfbolz
Date: Tue Jan 17 02:25:30 2006
New Revision: 22243

Modified:
   pypy/dist/pypy/translator/backendopt/escape.py
Log:
just assume the worst about operations that are unknown


Modified: pypy/dist/pypy/translator/backendopt/escape.py
==============================================================================
--- pypy/dist/pypy/translator/backendopt/escape.py	(original)
+++ pypy/dist/pypy/translator/backendopt/escape.py	Tue Jan 17 02:25:30 2006
@@ -181,7 +181,13 @@
         opimpl = getattr(self, 'op_'+op.opname, None)
         if opimpl is None:
             if isonheap(op.result) or filter(None, args):
-                raise NotImplementedError("can't handle %s" % (op.opname, ))
+                for arg in args:
+                    if arg is not None:
+                        changed = arg.setchanges()
+                        self.handle_changed(changed)
+                        changed = arg.setescapes()
+                        self.handle_changed(changed)
+                #raise NotImplementedError("can't handle %s" % (op.opname, ))
             #print "assuming that '%s' is irrelevant" % op
             return
         res = opimpl(op, *args)



More information about the Pypy-commit mailing list