[pypy-svn] r55130 - pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk
tverwaes at codespeak.net
tverwaes at codespeak.net
Thu May 22 14:19:35 CEST 2008
Author: tverwaes
Date: Thu May 22 14:19:34 2008
New Revision: 55130
Modified:
pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/shadow.py
Log:
apparently not all contexts have an initialized pc. Assume that this will be
stored later on.
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 Thu May 22 14:19:34 2008
@@ -416,6 +416,9 @@
return w_sender.as_context_get_shadow()
def store_unwrap_pc(self, w_pc):
+ from pypy.lang.smalltalk import objtable
+ if w_pc.is_same_object(objtable.w_nil):
+ return
pc = utility.unwrap_int(w_pc)
pc -= self.w_method().bytecodeoffset()
pc -= 1
More information about the Pypy-commit
mailing list