[pypy-svn] r65698 - pypy/branch/pyjitpl5-experiments/pypy/interpreter

afa at codespeak.net afa at codespeak.net
Tue Jun 9 17:56:45 CEST 2009


Author: afa
Date: Tue Jun  9 17:56:44 2009
New Revision: 65698

Modified:
   pypy/branch/pyjitpl5-experiments/pypy/interpreter/gateway.py
Log:
No need to mangle the method name, the class name is already long enough.

This helps --jit translation on Windows, where
   BuiltinActivation_UwS_ObjSpace_W_Root_int_int_int_int_str_W_Root_W_Root_W_Root_str_str_int_str_W_Root_W_Root_int
               ._run_UWS_ObjSpace_W_Root_int_int_int_int_str_W_Root_W_Root_W_Root_str_str_int_str_W_Root_W_Root_int
causes a filename to exceed the MAX_PATH limit.


Modified: pypy/branch/pyjitpl5-experiments/pypy/interpreter/gateway.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/interpreter/gateway.py	(original)
+++ pypy/branch/pyjitpl5-experiments/pypy/interpreter/gateway.py	Tue Jun  9 17:56:44 2009
@@ -249,12 +249,10 @@
 
             d = {}
             source = """if 1: 
-                def _run_UWS_%s(self, space, scope_w):
+                def _run(self, space, scope_w):
                     return self.behavior(%s)
-                \n""" % (label, ', '.join(self.run_args))
+                \n""" % (', '.join(self.run_args),)
             exec compile2(source) in self.miniglobals, d
-            d['_run'] = d['_run_UWS_%s' % label]
-            del d['_run_UWS_%s' % label]
 
             activation_cls = type("BuiltinActivation_UwS_%s" % label,
                              (BuiltinActivation,), d)



More information about the Pypy-commit mailing list