コード例 #1
0
    def run_directly(self, fn, args):
        from pypy.translator.cli.test.runtest import compile_function, get_annotation

        ann = [get_annotation(x) for x in args]
        clifunc = compile_function(fn, ann)
        return clifunc(*args)
コード例 #2
0
 def compile(self, fn, inputargs):
     from pypy.translator.cli.test.runtest import compile_function
     return compile_function(fn,
                             inputargs,
                             auto_raise_exc=True,
                             exctrans=True)
コード例 #3
0
ファイル: test_backendopt.py プロジェクト: TheDunn/flex-pypy
 def getcompiled(self, fn, annotation):
     return compile_function(fn, annotation, backendopt=True)
コード例 #4
0
    def compile(self, fn, inputargs):
        from pypy.translator.cli.test.runtest import compile_function

        return compile_function(fn, inputargs, auto_raise_exc=True, exctrans=True)
コード例 #5
0
 def getcompiled(self, fn, annotation):
     return compile_function(fn, annotation, backendopt=True)
コード例 #6
0
ファイル: support.py プロジェクト: xx312022850/pypy
 def run_directly(self, fn, args):
     from pypy.translator.cli.test.runtest import compile_function, get_annotation
     ann = [get_annotation(x) for x in args]
     clifunc = compile_function(fn, ann)
     return clifunc(*args)
コード例 #7
0
ファイル: test_rgenop.py プロジェクト: chyyuu/pygirl
 def getcompiled(self, fn, annotation, annotatorpolicy):
     return compile_function(fn, annotation,
                             annotatorpolicy=annotatorpolicy,
                             nowrap=False)