[pypy-svn] r48993 - pypy/dist/pypy/translator

rxe at codespeak.net rxe at codespeak.net
Fri Nov 23 18:12:43 CET 2007


Author: rxe
Date: Fri Nov 23 18:12:43 2007
New Revision: 48993

Modified:
   pypy/dist/pypy/translator/exceptiontransform.py
Log:
(arigo, rxe) add a comment as to why these replace operations work

Modified: pypy/dist/pypy/translator/exceptiontransform.py
==============================================================================
--- pypy/dist/pypy/translator/exceptiontransform.py	(original)
+++ pypy/dist/pypy/translator/exceptiontransform.py	Fri Nov 23 18:12:43 2007
@@ -201,6 +201,9 @@
                 block.operations[i].args = [self.rpyexc_raise_runtime_error_ptr]
 
     def replace_fetch_restore_operations(self, block):
+        # the gctransformer will create these operations.  It looks as if the
+        # order of transformations is important - but the gctransformer will
+        # put them in a new graph, so all transformations will run again.
         for i in range(len(block.operations)):
             if block.operations[i].opname == 'gc_fetch_exception':
                 block.operations[i].opname = "direct_call"



More information about the Pypy-commit mailing list