[pypy-commit] lang-smalltalk default: store objects in methoddicts again

timfel noreply at buildbot.pypy.org
Thu Jan 16 15:04:58 CET 2014


Author: Tim Felgentreff <timfelgentreff at gmail.com>
Branch: 
Changeset: r580:ac28aa16f50f
Date: 2014-01-16 13:31 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/ac28aa16f50f/

Log:	store objects in methoddicts again

diff --git a/spyvm/shadow.py b/spyvm/shadow.py
--- a/spyvm/shadow.py
+++ b/spyvm/shadow.py
@@ -363,7 +363,7 @@
     def find_selector(self, w_selector):
         if self.invalid:
             return None # we may be invalid if Smalltalk code did not call flushCache
-        return self.methoddict.get(self._as_md_entry(w_selector), None)
+        return self.methoddict.get(w_selector, None)
 
     def update(self): return self.sync_cache()
 
@@ -408,7 +408,7 @@
                                        "If the value observed is nil, our "
                                        "invalidating mechanism may be broken.")
                 selector = self._as_md_entry(w_selector)
-                self.methoddict[selector] = w_compiledmethod.as_compiledmethod_get_shadow(self.space)
+                self.methoddict[w_selector] = w_compiledmethod.as_compiledmethod_get_shadow(self.space)
                 w_compiledmethod._likely_methodname = selector
         if self.s_class:
             self.s_class.changed()


More information about the pypy-commit mailing list