1. dqminh
  2. pypy

Commits

Antonio Cuni  committed 34a7c47

kill the jit_ffi attributes, which is a leftover of the now outdated 92141efc20c2

  • Participants
  • Parent commits bb4fee3
  • Branches default

Comments (0)

Files changed (4)

File pypy/jit/metainterp/pyjitpl.py

View file
  • Ignore whitespace
     logger_ops = None
 
     def __init__(self, cpu, options,
-                 ProfilerClass=EmptyProfiler, warmrunnerdesc=None,
-                 jit_ffi=True):
+                 ProfilerClass=EmptyProfiler, warmrunnerdesc=None):
         self.cpu = cpu
         self.stats = self.cpu.stats
         self.options = options
         self.profiler = ProfilerClass()
         self.profiler.cpu = cpu
         self.warmrunnerdesc = warmrunnerdesc
-        self.jit_ffi = jit_ffi
 
         backendmodule = self.cpu.__module__
         backendmodule = backendmodule.split('.')[-2]

File pypy/jit/metainterp/test/test_compile.py

View file
  • Ignore whitespace
     stats = Stats()
     profiler = jitprof.EmptyProfiler()
     warmrunnerdesc = None
-    jit_ffi = False
     def log(self, msg, event_kind=None):
         pass
 

File pypy/jit/metainterp/test/test_optimizefficall.py

View file
  • Ignore whitespace
 
 
 class TestFfiCall(BaseTestBasic, LLtypeMixin):
-    jit_ffi = True
 
     class namespace:
         cpu = LLtypeMixin.cpu

File pypy/jit/metainterp/test/test_optimizeopt.py

View file
  • Ignore whitespace
 
 class FakeMetaInterpStaticData(object):
 
-    def __init__(self, cpu, jit_ffi=False):
+    def __init__(self, cpu):
         self.cpu = cpu
         self.profiler = EmptyProfiler()
         self.options = Fake()
         self.globaldata = Fake()
-        self.jit_ffi = jit_ffi
 
 def test_store_final_boxes_in_guard():
     from pypy.jit.metainterp.compile import ResumeGuardDescr
     return sorted(boxes, key=lambda box: _kind2count[box.type])
 
 class BaseTestOptimizeOpt(BaseTest):
-    jit_ffi = False
 
     def invent_fail_descr(self, model, fail_args):
         if fail_args is None:
         loop.preamble = TreeLoop('preamble')
         loop.preamble.inputargs = loop.inputargs
         loop.preamble.token = LoopToken()
-        metainterp_sd = FakeMetaInterpStaticData(self.cpu, self.jit_ffi)
+        metainterp_sd = FakeMetaInterpStaticData(self.cpu)
         if hasattr(self, 'vrefinfo'):
             metainterp_sd.virtualref_info = self.vrefinfo
         if hasattr(self, 'callinfocollection'):