def task_timeshift_lltype(self): from pypy.jit.timeshifter.hrtyper import HintRTyper from pypy.jit.codegen import detect_cpu cpu = detect_cpu.autodetect() if cpu == 'i386': from pypy.jit.codegen.i386.rgenop import RI386GenOp as RGenOp RGenOp.MC_SIZE = 32 * 1024 * 1024 elif cpu == 'ppc': from pypy.jit.codegen.ppc.rgenop import RPPCGenOp as RGenOp RGenOp.MC_SIZE = 32 * 1024 * 1024 else: raise Exception('Unsuported cpu %r'%cpu) del self.hint_translator ha = self.hannotator t = self.translator # make the timeshifted graphs hrtyper = HintRTyper(ha, t.rtyper, RGenOp) hrtyper.specialize(origportalgraph=self.portal_graph, view=False)
def task_timeshift_lltype(self): from pypy.jit.timeshifter.hrtyper import HintRTyper from pypy.jit.codegen import detect_cpu cpu = detect_cpu.autodetect() if cpu == 'i386': from pypy.jit.codegen.i386.rgenop import RI386GenOp as RGenOp RGenOp.MC_SIZE = 32 * 1024 * 1024 elif cpu == 'ppc': from pypy.jit.codegen.ppc.rgenop import RPPCGenOp as RGenOp RGenOp.MC_SIZE = 32 * 1024 * 1024 else: raise Exception('Unsuported cpu %r' % cpu) del self.hint_translator ha = self.hannotator t = self.translator # make the timeshifted graphs hrtyper = HintRTyper(ha, t.rtyper, RGenOp) hrtyper.specialize(origportalgraph=self.portal_graph, view=False)
def run(self): try: processor = detect_cpu.autodetect() except detect_cpu.ProcessorAutodetectError, e: py.test.skip(str(e))