Author: Lars Wassermann <[email protected]>
Branch: 
Changeset: r396:bd9f294aae93
Date: 2013-05-17 18:57 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/bd9f294aae93/

Log:    changed ContextShadow printing to print temp and args as well as
        stack

diff --git a/spyvm/shadow.py b/spyvm/shadow.py
--- a/spyvm/shadow.py
+++ b/spyvm/shadow.py
@@ -965,8 +965,8 @@
     def __str__(self):
         retval = '\nMethodContext of:'
         retval += self.w_method().as_string(markBytecode=self.pc() + 1)
-        retval += "Stackptr: %d (this is an empty ascending stack)" % 
(self._stack_ptr - self.tempsize())
-        retval += "\nStack   : " + str(self.stack())
+        retval += "Stackptr: %d (this is an empty ascending stack with args 
and temps (%d), then stack)" % (self._stack_ptr, self.tempsize())
+        retval += "\nStack   : " + str(self._temps_and_stack[:self._stack_ptr])
         return retval
 
     def short_str(self, argcount):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to