[pypy-svn] r48211 - pypy/dist/pypy/lang/smalltalk
cfbolz at codespeak.net
cfbolz at codespeak.net
Tue Oct 30 20:47:24 CET 2007
Author: cfbolz
Date: Tue Oct 30 20:47:23 2007
New Revision: 48211
Modified:
pypy/dist/pypy/lang/smalltalk/model.py
pypy/dist/pypy/lang/smalltalk/primitives.py
Log:
try to reduce the number of warnings when translating. This seems to get rid of most of them.
Modified: pypy/dist/pypy/lang/smalltalk/model.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/model.py (original)
+++ pypy/dist/pypy/lang/smalltalk/model.py Tue Oct 30 20:47:23 2007
@@ -20,6 +20,18 @@
def gethash(self):
raise NotImplementedError
+ def at0(self, index0):
+ raise NotImplementedError
+
+ def atput0(self, index0, w_value):
+ raise NotImplementedError
+
+ def fetch(self, n0):
+ raise NotImplementedError
+
+ def store(self, n0, w_value):
+ raise NotImplementedError
+
def invariant(self):
return True
@@ -378,6 +390,7 @@
self.pc = 0
assert isinstance(w_home, W_MethodContext)
self.w_home = w_home
+ assert w_sender is None or isinstance(w_sender, W_ContextPart)
self.w_sender = w_sender
def receiver(self):
Modified: pypy/dist/pypy/lang/smalltalk/primitives.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/primitives.py (original)
+++ pypy/dist/pypy/lang/smalltalk/primitives.py Tue Oct 30 20:47:23 2007
@@ -626,7 +626,7 @@
# byteodes to invoke this primitive to find them (hence +2)
initialip = frame.pc + 2
w_new_context = model.W_BlockContext(
- w_method_context, objtable.w_nil, argcnt, initialip)
+ w_method_context, None, argcnt, initialip)
return w_new_context
def finalize_block_ctx(interp, w_block_ctx, frame):
More information about the Pypy-commit
mailing list