[pypy-svn] r76943 - pypy/branch/jit-generator/pypy/module/pypyjit
arigo at codespeak.net
arigo at codespeak.net
Wed Sep 8 14:02:17 CEST 2010
Author: arigo
Date: Wed Sep 8 14:02:16 2010
New Revision: 76943
Modified:
pypy/branch/jit-generator/pypy/module/pypyjit/interp_jit.py
Log:
Re-enable generators.
Modified: pypy/branch/jit-generator/pypy/module/pypyjit/interp_jit.py
==============================================================================
--- pypy/branch/jit-generator/pypy/module/pypyjit/interp_jit.py (original)
+++ pypy/branch/jit-generator/pypy/module/pypyjit/interp_jit.py Wed Sep 8 14:02:16 2010
@@ -9,7 +9,7 @@
import pypy.interpreter.pyopcode # for side-effects
from pypy.interpreter.error import OperationError, operationerrfmt
from pypy.interpreter.gateway import ObjSpace, Arguments
-from pypy.interpreter.pycode import PyCode, CO_GENERATOR
+from pypy.interpreter.pycode import PyCode
from pypy.interpreter.pyframe import PyFrame
from pypy.interpreter.pyopcode import ExitFrame
from opcode import opmap
@@ -36,8 +36,7 @@
bytecode.jit_cells[next_instr] = newcell
def confirm_enter_jit(next_instr, bytecode, frame, ec):
- return (not (bytecode.co_flags & CO_GENERATOR) and
- frame.w_f_trace is None and
+ return (frame.w_f_trace is None and
ec.profilefunc is None and
ec.w_tracefunc is None)
More information about the Pypy-commit
mailing list