[pypy-svn] r64186 - pypy/branch/pyjitpl5-simplify/pypy/interpreter
fijal at codespeak.net
fijal at codespeak.net
Thu Apr 16 21:26:15 CEST 2009
Author: fijal
Date: Thu Apr 16 21:26:14 2009
New Revision: 64186
Modified:
pypy/branch/pyjitpl5-simplify/pypy/interpreter/pyopcode.py
Log:
a bit of paranoia. probably will be killed.
Modified: pypy/branch/pyjitpl5-simplify/pypy/interpreter/pyopcode.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/interpreter/pyopcode.py (original)
+++ pypy/branch/pyjitpl5-simplify/pypy/interpreter/pyopcode.py Thu Apr 16 21:26:14 2009
@@ -82,11 +82,16 @@
except ExitFrame:
return self.popvalue()
+ def check_interpreter_state(self):
+ for i in range(self.valuestackdepth):
+ assert self.valuestack_w[i] is not None
+
def handle_bytecode(self, co_code, next_instr, ec):
from pypy.rlib import rstack # for resume points
try:
next_instr = self.dispatch_bytecode(co_code, next_instr, ec)
+ self.check_interpreter_state()
rstack.resume_point("handle_bytecode", self, co_code, ec,
returns=next_instr)
except OperationError, operr:
More information about the Pypy-commit
mailing list