[pypy-svn] r62443 - pypy/branch/pyjitpl5/pypy/jit/metainterp
fijal at codespeak.net
fijal at codespeak.net
Tue Mar 3 10:33:18 CET 2009
Author: fijal
Date: Tue Mar 3 10:33:17 2009
New Revision: 62443
Modified:
pypy/branch/pyjitpl5/pypy/jit/metainterp/resoperation.py
Log:
Add a marker for ovf ops
Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/resoperation.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/resoperation.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/resoperation.py Tue Mar 3 10:33:17 2009
@@ -56,6 +56,9 @@
def can_raise(self):
return rop._CANRAISE_FIRST <= self.opnum <= rop._CANRAISE_LAST
+ def is_ovf(self):
+ return rop._OVF_FIRST <= self.opnum <= rop._OVF_LAST
+
# ____________________________________________________________
@@ -154,10 +157,12 @@
CALL_PTR = _CALL + typ.PTR
CALL_VOID = _CALL + typ.VOID
#
+ _OVF_FIRST = 109
INT_ADD_OVF = 110
INT_SUB_OVF = 111
INT_MUL_OVF = 112
INT_NEG_OVF = 113
+ _OVF_LAST = 114
_CANRAISE_LAST = 119 # ----- end of can_raise operations -----
_LAST = 119 # for the backend to add more internal operations
More information about the Pypy-commit
mailing list