Author: Maciej Fijalkowski <fij...@gmail.com> Branch: jit-threshold-hooks Changeset: r65465:4667c17cd952 Date: 2013-07-18 20:17 +0200 http://bitbucket.org/pypy/pypy/changeset/4667c17cd952/
Log: kill a feature that I'll implement differently diff --git a/pypy/module/pypyjit/__init__.py b/pypy/module/pypyjit/__init__.py --- a/pypy/module/pypyjit/__init__.py +++ b/pypy/module/pypyjit/__init__.py @@ -19,7 +19,6 @@ '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): diff --git a/pypy/module/pypyjit/interp_jit.py b/pypy/module/pypyjit/interp_jit.py --- a/pypy/module/pypyjit/interp_jit.py +++ b/pypy/module/pypyjit/interp_jit.py @@ -54,15 +54,12 @@ 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): @@ -181,7 +178,3 @@ 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 diff --git a/rpython/rlib/jit.py b/rpython/rlib/jit.py --- a/rpython/rlib/jit.py +++ b/rpython/rlib/jit.py @@ -481,7 +481,6 @@ 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 @@ -518,7 +517,6 @@ 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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit