[pypy-svn] r34968 - pypy/dist/pypy/jit/tl

pedronis at codespeak.net pedronis at codespeak.net
Sat Nov 25 18:25:18 CET 2006


Author: pedronis
Date: Sat Nov 25 18:25:17 2006
New Revision: 34968

Modified:
   pypy/dist/pypy/jit/tl/tlc.py
Log:
more promotes in the tlc.



Modified: pypy/dist/pypy/jit/tl/tlc.py
==============================================================================
--- pypy/dist/pypy/jit/tl/tlc.py	(original)
+++ pypy/dist/pypy/jit/tl/tlc.py	Sat Nov 25 18:25:17 2006
@@ -180,6 +180,8 @@
 
             elif opcode == ADD:
                 a, b = stack.pop(), stack.pop()
+                hint(a.__class__, promote=True)
+                hint(b.__class__, promote=True)
                 stack.append(b.add(a))
 
             elif opcode == SUB:
@@ -196,18 +198,26 @@
 
             elif opcode == DIV:
                 a, b = stack.pop(), stack.pop()
+                hint(a.__class__, promote=True)
+                hint(b.__class__, promote=True)
                 stack.append(b.div(a))
 
             elif opcode == EQ:
                 a, b = stack.pop(), stack.pop()
+                hint(a.__class__, promote=True)
+                hint(b.__class__, promote=True)
                 stack.append(IntObj(b.eq(a)))
 
             elif opcode == NE:
                 a, b = stack.pop(), stack.pop()
+                hint(a.__class__, promote=True)
+                hint(b.__class__, promote=True)
                 stack.append(IntObj(not b.eq(a)))
 
             elif opcode == LT:
                 a, b = stack.pop(), stack.pop()
+                hint(a.__class__, promote=True)
+                hint(b.__class__, promote=True)
                 stack.append(IntObj(b.lt(a)))
 
             elif opcode == LE:
@@ -218,10 +228,14 @@
 
             elif opcode == GT:
                 a, b = stack.pop(), stack.pop()
+                hint(a.__class__, promote=True)
+                hint(b.__class__, promote=True)
                 stack.append(IntObj(a.lt(b)))
 
             elif opcode == GE:
                 a, b = stack.pop(), stack.pop()
+                hint(a.__class__, promote=True)
+                hint(b.__class__, promote=True)
                 stack.append(IntObj(not b.lt(a)))
 
             elif opcode == BR_COND:



More information about the Pypy-commit mailing list