Author: Armin Rigo <[email protected]>
Branch:
Changeset: r52185:5d4620953431
Date: 2012-02-07 15:17 +0100
http://bitbucket.org/pypy/pypy/changeset/5d4620953431/
Log: Remove this very old condition. It turns out that nowadays, running
a pypy, it triggers only for getenv() in pypy.translator.goal.nanos
which is better left out; but it is otherwise pointless.
diff --git a/pypy/jit/codewriter/policy.py b/pypy/jit/codewriter/policy.py
--- a/pypy/jit/codewriter/policy.py
+++ b/pypy/jit/codewriter/policy.py
@@ -48,7 +48,7 @@
mod = func.__module__ or '?'
if mod.startswith('pypy.rpython.module.'):
return True
- if mod.startswith('pypy.translator.'): # XXX wtf?
+ if mod == 'pypy.translator.goal.nanos': # more helpers
return True
return False
diff --git a/pypy/translator/generator.py b/pypy/translator/generator.py
--- a/pypy/translator/generator.py
+++ b/pypy/translator/generator.py
@@ -68,7 +68,6 @@
(next_entry, return_value) = func(entry)
self.current = next_entry
return return_value
- next._jit_look_inside_ = True
GeneratorIterator.next = next
return func # for debugging
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit