def test_run_translation(): from pypy.tool.ann_override import PyPyAnnotatorPolicy from rpython.rtyper.test.test_llinterp import get_interpreter # first annotate and rtype try: interp, graph = get_interpreter(entry_point, [], backendopt=False, config=config, policy=PyPyAnnotatorPolicy(space)) except Exception as e: print '%s: %s' % (e.__class__, e) pdb.post_mortem(sys.exc_info()[2]) raise # parent process loop: spawn a child, wait for the child to finish, # print a message, and restart unixcheckpoint.restartable_point(auto='run') from rpython.jit.codewriter.codewriter import CodeWriter CodeWriter.debug = True from pypy.tool.pypyjit_child import run_child run_child(globals(), locals())
backendopt=False, config=config, type_system=config.translation.type_system, policy=PyPyAnnotatorPolicy(space), ) except Exception, e: print "%s: %s" % (e.__class__, e) pdb.post_mortem(sys.exc_info()[2]) raise # parent process loop: spawn a child, wait for the child to finish, # print a message, and restart unixcheckpoint.restartable_point(auto="run") from rpython.jit.codewriter.codewriter import CodeWriter CodeWriter.debug = True from pypy.tool.pypyjit_child import run_child run_child(globals(), locals()) if __name__ == "__main__": import sys if len(sys.argv) > 1: # debugging: run the code directly entry_point() else: test_run_translation()
from rpython.rtyper.test.test_llinterp import get_interpreter # first annotate and rtype try: interp, graph = get_interpreter(entry_point, [], backendopt=False, config=config, policy=PyPyAnnotatorPolicy(space)) except Exception, e: print '%s: %s' % (e.__class__, e) pdb.post_mortem(sys.exc_info()[2]) raise # parent process loop: spawn a child, wait for the child to finish, # print a message, and restart unixcheckpoint.restartable_point(auto='run') from rpython.jit.codewriter.codewriter import CodeWriter CodeWriter.debug = True from pypy.tool.pypyjit_child import run_child run_child(globals(), locals()) if __name__ == '__main__': import sys if len(sys.argv) > 1: # debugging: run the code directly entry_point() else: test_run_translation()