[pypy-svn] r27299 - in pypy/dist/pypy/translator: . goal

ericvrp at codespeak.net ericvrp at codespeak.net
Tue May 16 21:16:11 CEST 2006


Author: ericvrp
Date: Tue May 16 21:16:10 2006
New Revision: 27299

Modified:
   pypy/dist/pypy/translator/driver.py
   pypy/dist/pypy/translator/goal/translate.py
Log:
Added option to translate with raisingop2direct_call transformation enabled.


Modified: pypy/dist/pypy/translator/driver.py
==============================================================================
--- pypy/dist/pypy/translator/driver.py	(original)
+++ pypy/dist/pypy/translator/driver.py	Tue May 16 21:16:10 2006
@@ -25,6 +25,7 @@
   'backend': 'c',
   'lowmem': False,
   'fork_before': None,
+  'raisingop2direct_call' : False,
   'merge_if_blocks': True
 })
 
@@ -205,6 +206,7 @@
         from pypy.translator.backendopt.all import backend_optimizations
         opt = self.options
         backend_optimizations(self.translator,
+                              raisingop2direct_call_all=opt.raisingop2direct_call,
                               merge_if_blocks_to_switch=opt.merge_if_blocks)
     #
     task_backendopt = taskdef(task_backendopt, 

Modified: pypy/dist/pypy/translator/goal/translate.py
==============================================================================
--- pypy/dist/pypy/translator/goal/translate.py	(original)
+++ pypy/dist/pypy/translator/goal/translate.py	Tue May 16 21:16:10 2006
@@ -52,6 +52,7 @@
     '3_stackless': [OPT(('--new-stackless',), "Stackless code generation (graph transformer)", True)],
     '4_stackless': [OPT(('--stackless',), "Stackless code generation (old GenC way)", 'old')],
     '5_merge_if_blocks': [OPT(('--no-if-blocks-merge',), "Do not merge if ... elif ... chains and use a switch statement for them.", False)],
+    '6_raisingop2direct_call': [OPT(('--raisingop2direct_call',), "Convert possible exception raising operations to direct calls.", True)],
     },
 
 
@@ -103,6 +104,7 @@
     'gc': 'boehm',
     'backend': 'c',
     'stackless': False,
+    'raisingop2direct_call' : False,
     'merge_if_blocks': True,
     
     'batch': False,



More information about the Pypy-commit mailing list