[pypy-commit] lang-smalltalk default: changed ContextShadow printing to print temp and args as well as stack
lwassermann
noreply at buildbot.pypy.org
Fri May 17 18:58:47 CEST 2013
Author: Lars Wassermann <lars.wassermann at gmail.com>
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):
More information about the pypy-commit
mailing list