[pypy-svn] r55069 - pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk
tverwaes at codespeak.net
tverwaes at codespeak.net
Wed May 21 16:25:06 CEST 2008
Author: tverwaes
Date: Wed May 21 16:25:05 2008
New Revision: 55069
Modified:
pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/shadow.py
Log:
adding fixes for warnings
Modified: pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/shadow.py
==============================================================================
--- pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/shadow.py (original)
+++ pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/shadow.py Wed May 21 16:25:05 2008
@@ -128,13 +128,15 @@
self.guess_class_name()
# read the methoddict
- self.w_methoddict = w_self._fetch(constants.CLASS_METHODDICT_INDEX)
- assert isinstance(self.w_methoddict, model.W_PointersObject)
+ w_methoddict = w_self._fetch(constants.CLASS_METHODDICT_INDEX)
+ assert isinstance(w_methoddict, model.W_PointersObject)
+ self.w_methoddict = w_methoddict
w_superclass = w_self._fetch(constants.CLASS_SUPERCLASS_INDEX)
if w_superclass.is_same_object(w_nil):
self.w_superclass = None
else:
+ assert isinstance(w_superclass, model.W_PointersObject)
self.w_superclass = w_superclass
def guess_class_name(self):
@@ -315,6 +317,7 @@
from pypy.lang.smalltalk import objtable
self._w_sender = objtable.w_nil
self._stack = []
+ self.currentBytecode = None
AbstractRedirectingShadow.__init__(self, w_self)
@staticmethod
@@ -497,6 +500,9 @@
# XXX this is incorrect when there is subclassing
return self._w_self_size
+ def tempframesize(self):
+ raise NotImplementedError()
+
class BlockContextShadow(ContextPartShadow):
@staticmethod
More information about the Pypy-commit
mailing list