[pypy-svn] r64001 - pypy/branch/pyjitpl5-simplify/pypy/jit/tl

fijal at codespeak.net fijal at codespeak.net
Mon Apr 13 01:13:52 CEST 2009


Author: fijal
Date: Mon Apr 13 01:13:52 2009
New Revision: 64001

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/tl/pypyjit_demo.py
Log:
nasty f13


Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/tl/pypyjit_demo.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/tl/pypyjit_demo.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/tl/pypyjit_demo.py	Mon Apr 13 01:13:52 2009
@@ -1,3 +1,4 @@
+from time import clock
 
 def f0():
     print "simple loop"
@@ -76,9 +77,23 @@
         i = i + 1
     print n
 
+def f13():
+    i = 0
+    k = 0
+    while i < 20:
+        k += call(i)
+
+def call(i):
+    k = 0
+    for j in range(i, i + 2):
+        if j > i + 2:
+            raise Exception("Explode")
+        k += 1
+    return k
 
 try:
-    f7()
+    f13()
+    #f1()
 except Exception, e:
     print '/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\'
     print e.__class__, e



More information about the Pypy-commit mailing list