[pypy-svn] r72136 - pypy/trunk/pypy/objspace/std
fijal at codespeak.net
fijal at codespeak.net
Thu Mar 11 22:02:30 CET 2010
Author: fijal
Date: Thu Mar 11 22:02:28 2010
New Revision: 72136
Modified:
pypy/trunk/pypy/objspace/std/typeobject.py
Log:
Experimental checkin - look inside _lookup_where. We only do that if
we have a custom metaclass or a mixed old-new bases, so should not hurt
too much
Modified: pypy/trunk/pypy/objspace/std/typeobject.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/typeobject.py (original)
+++ pypy/trunk/pypy/objspace/std/typeobject.py Thu Mar 11 22:02:28 2010
@@ -9,7 +9,7 @@
from pypy.rlib.objectmodel import we_are_translated
from pypy.rlib.objectmodel import current_object_addr_as_int, compute_hash
from pypy.rlib.jit import hint, purefunction_promote, we_are_jitted
-from pypy.rlib.jit import dont_look_inside, purefunction
+from pypy.rlib.jit import dont_look_inside, purefunction, unroll_safe
from pypy.rlib.rarithmetic import intmask, r_uint
from copy_reg import _HEAPTYPE
@@ -220,7 +220,7 @@
return w_value
return None
-
+ @unroll_safe
def _lookup(w_self, key):
space = w_self.space
for w_class in w_self.mro_w:
@@ -229,6 +229,7 @@
return w_value
return None
+ @unroll_safe
def _lookup_where(w_self, key):
# like lookup() but also returns the parent class in which the
# attribute was found
More information about the Pypy-commit
mailing list