[pypy-svn] r13563 - pypy/dist/pypy/annotation

arigo at codespeak.net arigo at codespeak.net
Fri Jun 17 23:56:43 CEST 2005


Author: arigo
Date: Fri Jun 17 23:56:42 2005
New Revision: 13563

Modified:
   pypy/dist/pypy/annotation/bookkeeper.py
Log:
A global cache!  then we get ListDefs attached to an old bookkeeper in this
global cache!  makes new Translators veeery confused...



Modified: pypy/dist/pypy/annotation/bookkeeper.py
==============================================================================
--- pypy/dist/pypy/annotation/bookkeeper.py	(original)
+++ pypy/dist/pypy/annotation/bookkeeper.py	Fri Jun 17 23:56:42 2005
@@ -150,7 +150,8 @@
         self.seen_mutable = {}
         self.listdefs = {}       # map position_keys to ListDefs
         self.dictdefs = {}       # map position_keys to DictDefs
-        
+        self.immutable_cache = {}
+
         # mapping position -> key, prev_result for specializations
         self.spec_callsite_keys_results = {}
 
@@ -244,8 +245,6 @@
             dictdef.generalize_value(s_value)
         return SomeDict(dictdef)
 
-    immutable_cache = {}
-
     def immutablevalue(self, x):
         """The most precise SomeValue instance that contains the
         immutable value x."""



More information about the Pypy-commit mailing list