[pypy-svn] r64994 - pypy/branch/pyjitpl5/pypy/jit/metainterp
fijal at codespeak.net
fijal at codespeak.net
Sun May 3 05:39:49 CEST 2009
Author: fijal
Date: Sun May 3 05:39:49 2009
New Revision: 64994
Modified:
pypy/branch/pyjitpl5/pypy/jit/metainterp/resoperation.py
Log:
convinient helper
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 Sun May 3 05:39:49 2009
@@ -59,6 +59,10 @@
def is_guard(self):
return rop._GUARD_FIRST <= self.opnum <= rop._GUARD_LAST
+ def is_guard_exception(self):
+ return (self.opnum == rop.GUARD_EXCEPTION or
+ self.opnum == rop.GUARD_NO_EXCEPTION)
+
def is_always_pure(self):
return rop._ALWAYS_PURE_FIRST <= self.opnum <= rop._ALWAYS_PURE_LAST
More information about the Pypy-commit
mailing list