Commits

Maciej Fijalkowski committed 4667c17

kill a feature that I'll implement differently

Comments (0)

Files changed (3)

pypy/module/pypyjit/__init__.py

         'Box': 'interp_resop.WrappedBox',
         'PARAMETER_DOCS': 'space.wrap(rpython.rlib.jit.PARAMETER_DOCS)',
         'set_local_threshold': 'interp_jit.set_local_threshold',
-        'set_local_bridge_threshold': 'interp_jit.set_local_bridge_threshold',
     }
 
     def setup_after_space_initialization(self):

pypy/module/pypyjit/interp_jit.py

     greens = ['next_instr', 'is_being_profiled', 'pycode']
     virtualizables = ['frame']
 
-def start_bridge_threshold(next_instr, is_being_profiled, bytecode):
-    return bytecode.bridge_init_threshold
 
 pypyjitdriver = PyPyJitDriver(get_printable_location = get_printable_location,
                               get_jitcell_at = get_jitcell_at,
                               set_jitcell_at = set_jitcell_at,
                               should_unroll_one_iteration =
                               should_unroll_one_iteration,
-                              start_bridge_threshold=start_bridge_threshold,
                               name='pypyjit')
 
 class __extend__(PyFrame):
     ref = w_code.jit_cells[pos << 1]
     jitcell = cast_base_ptr_to_instance(BaseJitCell, ref)
     jitcell.counter = value
-
-@unwrap_spec(w_code=PyCode, value=int)
-def set_local_bridge_threshold(space, w_code, value):
-    w_code.bridge_init_threshold = value

rpython/rlib/jit.py

                  get_jitcell_at=None, set_jitcell_at=None,
                  get_printable_location=None, confirm_enter_jit=None,
                  can_never_inline=None, should_unroll_one_iteration=None,
-                 start_bridge_threshold=None,
                  name='jitdriver', check_untranslated=True):
         if greens is not None:
             self.greens = greens
         self.can_never_inline = can_never_inline
         self.should_unroll_one_iteration = should_unroll_one_iteration
         self.check_untranslated = check_untranslated
-        self.start_bridge_threshold = start_bridge_threshold
 
     def _freeze_(self):
         return True