Author: Lars Wassermann <[email protected]>
Branch: 
Changeset: r317:03aba64bfbaa
Date: 2013-04-22 17:18 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/03aba64bfbaa/

Log:    - renamed __w_method to _w_method to comply with python naming
        scheme again
        - enlarged small contexts to 16 and large contexts to 56 maximal
        stackdepth those are the numbers used by Squeak 4.4

diff --git a/spyvm/shadow.py b/spyvm/shadow.py
--- a/spyvm/shadow.py
+++ b/spyvm/shadow.py
@@ -807,12 +807,12 @@
         )
 
 class MethodContextShadow(ContextPartShadow):
-    _attr_ = ['w_closure_or_nil', '_w_receiver', '__w_method']
+    _attr_ = ['w_closure_or_nil', '_w_receiver', '_w_method']
 
     def __init__(self, space, w_self):
         self.w_closure_or_nil = space.w_nil
         self._w_receiver = space.w_nil
-        self.__w_method = None
+        self._w_method = None
         ContextPartShadow.__init__(self, space, w_self)
 
     @staticmethod
@@ -889,13 +889,13 @@
                                 self.w_closure_or_nil).tempsize()
 
     def w_method(self):
-        retval = self.__w_method
+        retval = self._w_method
         assert isinstance(retval, model.W_CompiledMethod)
         return retval
 
     def store_w_method(self, w_method):
         assert isinstance(w_method, model.W_CompiledMethod)
-        self.__w_method = w_method
+        self._w_method = w_method
 
     def w_receiver(self):
         return self._w_receiver
@@ -986,7 +986,7 @@
     def compute_frame_size(self):
         # From blue book: normal mc have place for 12 temps+maxstack
         # mc for methods with islarge flag turned on 32
-        return 12 + self.islarge * 20 + self.argsize
+        return 16 + self.islarge * 40 + self.argsize
 
     def getliteralsymbol(self, index):
         w_literal = self.getliteral(index)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to