[pypy-svn] r79761 - pypy/trunk/pypy/objspace/std

fijal at codespeak.net fijal at codespeak.net
Thu Dec 2 20:30:00 CET 2010


Author: fijal
Date: Thu Dec  2 20:29:57 2010
New Revision: 79761

Modified:
   pypy/trunk/pypy/objspace/std/mapdict.py
Log:
Use jit_invariant_field for ModuleCell


Modified: pypy/trunk/pypy/objspace/std/mapdict.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/mapdict.py	(original)
+++ pypy/trunk/pypy/objspace/std/mapdict.py	Thu Dec  2 20:29:57 2010
@@ -1,4 +1,4 @@
-from pypy.rlib import jit, objectmodel, debug
+from pypy.rlib import jit, objectmodel, debug, dont_look_inside
 from pypy.rlib.rarithmetic import intmask, r_uint
 
 from pypy.interpreter.baseobjspace import W_Root
@@ -632,6 +632,7 @@
     def _clear_fields(self):
         self.w_obj = None
 
+    @dont_look_inside
     def _as_rdict(self):
         self.initialize_as_rdict()
         space = self.space
@@ -640,7 +641,6 @@
         self._clear_fields()
         return self
 
-
 def materialize_r_dict(space, obj, w_d):
     map = obj._get_mapdict_map()
     assert obj.getdict() is w_d



More information about the Pypy-commit mailing list