[pypy-svn] r22817 - pypy/dist/pypy/jit

pedronis at codespeak.net pedronis at codespeak.net
Sun Jan 29 11:23:13 CET 2006


Author: pedronis
Date: Sun Jan 29 11:23:12 2006
New Revision: 22817

Modified:
   pypy/dist/pypy/jit/hintmodel.py
Log:
some more ops



Modified: pypy/dist/pypy/jit/hintmodel.py
==============================================================================
--- pypy/dist/pypy/jit/hintmodel.py	(original)
+++ pypy/dist/pypy/jit/hintmodel.py	Sun Jan 29 11:23:12 2006
@@ -3,10 +3,10 @@
 from pypy.jit.hintbookkeeper import getbookkeeper
 from pypy.rpython.lltypesystem import lltype
 
-UNARY_OPERATIONS = """same_as hint getfield setfield getsubstruct getarraysize
+UNARY_OPERATIONS = """same_as hint getfield setfield getsubstruct getarraysize getarrayitem
                       direct_call""".split()
 
-BINARY_OPERATIONS = "int_add int_sub int_mul int_gt int_eq".split()
+BINARY_OPERATIONS = "int_add int_sub int_mul int_gt int_lt int_le int_ge int_eq int_ne".split()
 
 class OriginTreeNode(object):
 
@@ -157,6 +157,8 @@
         origin.merge(hs_c2.origins)
         return SomeLLAbstractConstant(lltype.Bool, {origin: True})
 
+    int_lt = int_le = int_ge = int_eq = int_ne = int_gt
+
     def union((hs_c1, hs_c2)):
         assert hs_c1.concretetype == hs_c2.concretetype
         origins = annmodel.setunion(hs_c1.origins, hs_c2.origins)



More information about the Pypy-commit mailing list