Author: Armin Rigo <[email protected]>
Branch: continulet-jit-3
Changeset: r58730:e9249a75739d
Date: 2012-11-05 03:05 +0100
http://bitbucket.org/pypy/pypy/changeset/e9249a75739d/

Log:    Add default impl

diff --git a/pypy/jit/backend/model.py b/pypy/jit/backend/model.py
--- a/pypy/jit/backend/model.py
+++ b/pypy/jit/backend/model.py
@@ -152,11 +152,16 @@
         raise NotImplementedError
 
     def get_finish_value_ref(self, jitframe):
-        """Return and clear the result passed to FINISH, which was a GCREF.
-        Also used when it exits due to a failure of a GUARD_EXCEPTION or
-        GUARD_NO_EXCEPTION, to return the exception."""
+        """Return and clear the result passed to FINISH, which was a GCREF."""
         raise NotImplementedError
 
+    def grab_exc_value(self, jitframe):
+        """Return and clear the last exception, after the frame exits due
+        to a failure of a GUARD_EXCEPTION or GUARD_NO_EXCEPTION or
+        GUARD_NOT_FORCED.  (This is usually stored at the same place as
+        get_finish_value_ref().)"""
+        return self.get_finish_value_ref(jitframe)
+
     def get_savedata_ref(self, jitframe):
         """Return and clear the last value stored by the frontend with
         set_savedata_ref."""
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to