[pypy-svn] r25915 - pypy/dist/pypy/translator/goal
cfbolz at codespeak.net
cfbolz at codespeak.net
Mon Apr 17 23:59:55 CEST 2006
Author: cfbolz
Date: Mon Apr 17 23:59:53 2006
New Revision: 25915
Modified:
pypy/dist/pypy/translator/goal/targetpushpop.py
Log:
don't inline the call we are interested in, to make it a it easier to decipher
the assembler
Modified: pypy/dist/pypy/translator/goal/targetpushpop.py
==============================================================================
--- pypy/dist/pypy/translator/goal/targetpushpop.py (original)
+++ pypy/dist/pypy/translator/goal/targetpushpop.py Mon Apr 17 23:59:53 2006
@@ -18,6 +18,8 @@
pass
def f(x):
+ if x == 0:
+ return f(x - 1)
b = B()
b.x = x
return b
@@ -39,7 +41,7 @@
a3.next = a4
a4.next = None
# push stuff
- global_a.b = B()
+ global_a.b = f(len(argv))
global_a.b.x = len(argv)
# pop stuff
return a1.x + a2.x + a3.x + a4.x + global_a.b.x
More information about the Pypy-commit
mailing list