Exemple #1
0
 def mainloop(code, level):
     if level > 0:
         mainloop(code, level - 1)
     else:
         p, length = traceback.traceback(20)
         traceback.walk_traceback(MyCode, my_callback, 42, p, length)
         lltype.free(p, flavor="raw")
Exemple #2
0
 def mainloop(code, level):
     if level > 0:
         mainloop(code, level - 1)
     else:
         p, length = traceback.traceback(20)
         traceback.walk_traceback(MyCode, my_callback, 42, p, length)
         lltype.free(p, flavor='raw')
Exemple #3
0
 def mainloop(code, level, total_i):
     i = 20
     while i > 0:
         jitdriver.jit_merge_point(code=code)
         i -= 1
         if level > 0:
             mainloop(code, level - 1, total_i + i)
     if level == 0 and total_i == 0:
         p, length = traceback.traceback(20)
         traceback.walk_traceback(MyCode, my_callback, 42, p, length)
         lltype.free(p, flavor="raw")
Exemple #4
0
 def mainloop(code, level, total_i):
     i = 20
     while i > 0:
         jitdriver.jit_merge_point(code=code)
         i -= 1
         if level > 0:
             mainloop(code, level - 1, total_i + i)
     if level == 0 and total_i == 0:
         p, length = traceback.traceback(20)
         traceback.walk_traceback(MyCode, my_callback, 42, p, length)
         lltype.free(p, flavor='raw')