[pypy-svn] r79763 - pypy/branch/out-of-line-guards/pypy/objspace/std

fijal at codespeak.net fijal at codespeak.net
Thu Dec 2 20:34:57 CET 2010


Author: fijal
Date: Thu Dec  2 20:34:55 2010
New Revision: 79763

Modified:
   pypy/branch/out-of-line-guards/pypy/objspace/std/celldict.py
Log:
jit_invariant_fields on ModuleCell

Modified: pypy/branch/out-of-line-guards/pypy/objspace/std/celldict.py
==============================================================================
--- pypy/branch/out-of-line-guards/pypy/objspace/std/celldict.py	(original)
+++ pypy/branch/out-of-line-guards/pypy/objspace/std/celldict.py	Thu Dec  2 20:34:55 2010
@@ -8,6 +8,8 @@
 from pypy.rlib import jit
 
 class ModuleCell(object):
+    _jit_invariant_fields_ = ['w_value']
+
     def __init__(self, w_value=None):
         self.w_value = w_value
 
@@ -47,9 +49,11 @@
         else:
             self._as_rdict().impl_fallback_setitem(w_key, w_value)
 
+    @jit.dont_look_inside
     def impl_setitem_str(self, name, w_value):
         self.getcell(name, True).w_value = w_value
 
+    @jit.dont_look_inside
     def impl_delitem(self, w_key):
         space = self.space
         w_key_type = space.type(w_key)



More information about the Pypy-commit mailing list