Author: Carl Friedrich Bolz <cfb...@gmx.de> Branch: unroll-if-alt Changeset: r47369:4d6c1b37980e Date: 2011-09-20 16:07 +0200 http://bitbucket.org/pypy/pypy/changeset/4d6c1b37980e/
Log: take the direct path also when not jitting diff --git a/pypy/rlib/jit.py b/pypy/rlib/jit.py --- a/pypy/rlib/jit.py +++ b/pypy/rlib/jit.py @@ -128,6 +128,7 @@ "dont_look_inside": dont_look_inside, "predicate": predicate, "func": func, + "we_are_jitted": we_are_jitted, } exec py.code.Source(""" @dont_look_inside @@ -141,7 +142,7 @@ trampoline._annspecialcase_ = "specialize:call_location" def f(%(arguments)s): - if predicate(%(arguments)s): + if not we_are_jitted() or predicate(%(arguments)s): return func(%(arguments)s) else: return trampoline(%(arguments)s) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit