[pypy-svn] r40557 - in pypy/branch/jit-virtual-world/pypy/jit/goal: . demo
arigo at codespeak.net
arigo at codespeak.net
Thu Mar 15 21:08:24 CET 2007
Author: arigo
Date: Thu Mar 15 21:08:22 2007
New Revision: 40557
Modified:
pypy/branch/jit-virtual-world/pypy/jit/goal/demo/f1.py
pypy/branch/jit-virtual-world/pypy/jit/goal/jitstep.py
Log:
(same guys) See more integer operations. Missing: is_true(), which
will be subtle.
Modified: pypy/branch/jit-virtual-world/pypy/jit/goal/demo/f1.py
==============================================================================
--- pypy/branch/jit-virtual-world/pypy/jit/goal/demo/f1.py (original)
+++ pypy/branch/jit-virtual-world/pypy/jit/goal/demo/f1.py Thu Mar 15 21:08:22 2007
@@ -8,7 +8,7 @@
i = 0
x = 1
while i<n:
- j = ZERO
+ j = 0 #ZERO
while j<=i:
j = j + 1
x = x + (i&j)
Modified: pypy/branch/jit-virtual-world/pypy/jit/goal/jitstep.py
==============================================================================
--- pypy/branch/jit-virtual-world/pypy/jit/goal/jitstep.py (original)
+++ pypy/branch/jit-virtual-world/pypy/jit/goal/jitstep.py Thu Mar 15 21:08:22 2007
@@ -115,6 +115,39 @@
pypy.objspace.std.intobject.add__Int_Int,
pypy.objspace.std.inttype.wrapint,
pypy.objspace.std.intobject.W_IntObject.__init__)
+ seepath(pypy.interpreter.pyframe.PyFrame.BINARY_SUBTRACT,
+ pypy.objspace.descroperation.DescrOperation.sub,
+ pypy.objspace.std.intobject.sub__Int_Int)
+ seepath(pypy.interpreter.pyframe.PyFrame.BINARY_MULTIPLY,
+ pypy.objspace.descroperation.DescrOperation.mul,
+ pypy.objspace.std.intobject.mul__Int_Int)
+ seepath(pypy.interpreter.pyframe.PyFrame.BINARY_AND,
+ pypy.objspace.descroperation.DescrOperation.and_,
+ pypy.objspace.std.intobject.and__Int_Int)
+ seepath(pypy.interpreter.pyframe.PyFrame.BINARY_OR,
+ pypy.objspace.descroperation.DescrOperation.or_,
+ pypy.objspace.std.intobject.or__Int_Int)
+ seepath(pypy.interpreter.pyframe.PyFrame.BINARY_XOR,
+ pypy.objspace.descroperation.DescrOperation.xor,
+ pypy.objspace.std.intobject.xor__Int_Int)
+ seepath(pypy.interpreter.pyframe.PyFrame.COMPARE_OP,
+ pypy.objspace.descroperation.DescrOperation.lt,
+ pypy.objspace.std.intobject.lt__Int_Int)
+ seepath(pypy.interpreter.pyframe.PyFrame.COMPARE_OP,
+ pypy.objspace.descroperation.DescrOperation.le,
+ pypy.objspace.std.intobject.le__Int_Int)
+ seepath(pypy.interpreter.pyframe.PyFrame.COMPARE_OP,
+ pypy.objspace.descroperation.DescrOperation.eq,
+ pypy.objspace.std.intobject.eq__Int_Int)
+ seepath(pypy.interpreter.pyframe.PyFrame.COMPARE_OP,
+ pypy.objspace.descroperation.DescrOperation.ne,
+ pypy.objspace.std.intobject.ne__Int_Int)
+ seepath(pypy.interpreter.pyframe.PyFrame.COMPARE_OP,
+ pypy.objspace.descroperation.DescrOperation.gt,
+ pypy.objspace.std.intobject.gt__Int_Int)
+ seepath(pypy.interpreter.pyframe.PyFrame.COMPARE_OP,
+ pypy.objspace.descroperation.DescrOperation.ge,
+ pypy.objspace.std.intobject.ge__Int_Int)
seepath(pypy.objspace.descroperation._invoke_binop,
pypy.objspace.descroperation._check_notimplemented)
seepath(pypy.objspace.descroperation.DescrOperation.add,
More information about the Pypy-commit
mailing list