Пример #1
0
 def __init__(self,
              rtyper,
              stats,
              opts=None,
              translate_support_code=False,
              gcdescr=None):
     AbstractLLCPU.__init__(self, rtyper, stats, opts,
                            translate_support_code, gcdescr)
Пример #2
0
    def __init__(self, rtyper, stats, opts=None, translate_support_code=False,
                 gcdescr=None):
        AbstractLLCPU.__init__(self, rtyper, stats, opts,
                               translate_support_code, gcdescr)

        profile_agent = ProfileAgent()
        if rtyper is not None:
            config = rtyper.annotator.translator.config
            if config.translation.jit_profiler == "oprofile":
                from rpython.jit.backend.x86 import oprofile
                if not oprofile.OPROFILE_AVAILABLE:
                    log.WARNING('oprofile support was explicitly enabled, but oprofile headers seem not to be available')
                profile_agent = oprofile.OProfileAgent()
            self.with_threads = config.translation.thread

        self.profile_agent = profile_agent
Пример #3
0
    def __init__(self, rtyper, stats, opts=None, translate_support_code=False,
                 gcdescr=None):
        AbstractLLCPU.__init__(self, rtyper, stats, opts,
                               translate_support_code, gcdescr)

        profile_agent = ProfileAgent()
        if rtyper is not None:
            config = rtyper.annotator.translator.config
            if config.translation.jit_profiler == "oprofile":
                from rpython.jit.backend.x86 import oprofile
                if not oprofile.OPROFILE_AVAILABLE:
                    log.WARNING('oprofile support was explicitly enabled, but oprofile headers seem not to be available')
                profile_agent = oprofile.OProfileAgent()
            self.with_threads = config.translation.thread

        self.profile_agent = profile_agent
Пример #4
0
 def __init__(self, rtyper, stats, opts=None, translate_support_code=False,
              gcdescr=None):
     AbstractLLCPU.__init__(self, rtyper, stats, opts,
                            translate_support_code, gcdescr)
     self.cpuinfo = CPUInfo()
Пример #5
0
 def free_loop_and_bridges(self, compiled_loop_token):
     AbstractLLCPU.free_loop_and_bridges(self, compiled_loop_token)
     self.assembler.free_loop_and_bridges(compiled_loop_token)
Пример #6
0
 def free_loop_and_bridges(self, compiled_loop_token):
     AbstractLLCPU.free_loop_and_bridges(self, compiled_loop_token)
     self.assembler.free_loop_and_bridges(compiled_loop_token)
Пример #7
0
 def __init__(self, rtyper, stats, opts=None, translate_support_code=False,
              gcdescr=None):
     AbstractLLCPU.__init__(self, rtyper, stats, opts,
                            translate_support_code, gcdescr)
     self._make_execute_trampoline_func()