Author: fijal
Branch: jit-leaner-frontend
Changeset: r83336:a544bbe29381
Date: 2016-03-25 11:44 +0200
http://bitbucket.org/pypy/pypy/changeset/a544bbe29381/

Log:    make sure we have two different names for two different exceptions

diff --git a/rpython/jit/metainterp/opencoder.py 
b/rpython/jit/metainterp/opencoder.py
--- a/rpython/jit/metainterp/opencoder.py
+++ b/rpython/jit/metainterp/opencoder.py
@@ -23,7 +23,7 @@
 MIN_SHORT = -2**15 + 1
 MAX_SHORT = 2**15 - 1
 
-class TagOverflow(Exception):
+class FrontendTagOverflow(Exception):
     pass
 
 class BaseTrace(object):
@@ -263,7 +263,7 @@
             # grow by 2X
             self._ops = self._ops + [rffi.cast(rffi.SHORT, -15)] * 
len(self._ops)
         if not MIN_SHORT < v < MAX_SHORT:
-            raise TagOverflow
+            raise FrontendTagOverflow
         self._ops[self._pos] = rffi.cast(rffi.SHORT, v)
         self._pos += 1
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to