Пример #1
0
 def test_translate(self):
     jd = JitDriver(greens = [], reds = 'auto', vectorize=True)
     def f(x):
         pass
         i = 0
         while i < 100:
             jd.jit_merge_point()
             i += 1
     compile(f, 'boehm', jit=True)
Пример #2
0
    def test_translate(self):
        jd = JitDriver(greens=[], reds="auto", vectorize=True)

        def f(x):
            pass
            i = 0
            while i < 100:
                jd.jit_merge_point()
                i += 1

        compile(f, "boehm", jit=True)
Пример #3
0
def compile_and_run(f, gc, **kwds):
    cbuilder = compile(f, gc, **kwds)
    return run(cbuilder)
Пример #4
0
def compile_and_run(f, gc, **kwds):
    cbuilder = compile(f, gc, **kwds)
    return run(cbuilder)