Author: Maciej Fijalkowski <[email protected]>
Branch: continulet-jit-3
Changeset: r58301:ee6afd63975c
Date: 2012-10-21 12:38 +0200
http://bitbucket.org/pypy/pypy/changeset/ee6afd63975c/

Log:    __repr__ for MIFrame

diff --git a/pypy/jit/metainterp/pyjitpl.py b/pypy/jit/metainterp/pyjitpl.py
--- a/pypy/jit/metainterp/pyjitpl.py
+++ b/pypy/jit/metainterp/pyjitpl.py
@@ -41,6 +41,11 @@
         self.registers_r = [None] * 256
         self.registers_f = [None] * 256
 
+    def __repr__(self):
+        if hasattr(self, 'jitcode'):
+            return '<MIFrame for %s>' % self.jitcode.name
+        return '<MIFrame <uninitialized>>'
+
     def setup(self, jitcode, greenkey=None):
         assert isinstance(jitcode, JitCode)
         self.jitcode = jitcode
@@ -1094,6 +1099,8 @@
             # with make_result_of_lastop(), so the lastop must be right:
             # it must be the call to 'self', and not the jit_merge_point
             # itself, which has no result at all.
+            import pdb
+            pdb.set_trace()
             assert len(self.metainterp.framestack) >= 2
             try:
                 self.metainterp.finishframe(None)
@@ -2549,8 +2556,6 @@
         if targetjitdriver_sd.virtualizable_info is not None and orgpc != -1:
             vbox = args[targetjitdriver_sd.index_of_virtualizable]
             frame = self.framestack[-1]
-            import pdb
-            pdb.set_trace()
             frame._force_virtualizable_if_necessary(vbox, orgpc)
         token = warmrunnerstate.get_assembler_token(greenargs)
         op = op.copy_and_change(rop.CALL_ASSEMBLER, args=args, descr=token)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to