aboutsummaryrefslogtreecommitdiff
path: root/pypy
diff options
context:
space:
mode:
authorHakan Ardo <hakan@debian.org>2010-11-17 18:07:56 +0000
committerHakan Ardo <hakan@debian.org>2010-11-17 18:07:56 +0000
commit7ea69bd7601090ccff88a1e28dc187added28a1d (patch)
tree522616e4a82edba8e9569d13847787e31f764a7b /pypy
parentAdded a test with a loop that should be specilized into two separate versions. (diff)
downloadpypy-7ea69bd7601090ccff88a1e28dc187added28a1d.tar.gz
pypy-7ea69bd7601090ccff88a1e28dc187added28a1d.tar.bz2
pypy-7ea69bd7601090ccff88a1e28dc187added28a1d.zip
Better name
Diffstat (limited to 'pypy')
-rw-r--r--pypy/jit/metainterp/test/test_basic.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pypy/jit/metainterp/test/test_basic.py b/pypy/jit/metainterp/test/test_basic.py
index 3b346071d2..6b994f5d75 100644
--- a/pypy/jit/metainterp/test/test_basic.py
+++ b/pypy/jit/metainterp/test/test_basic.py
@@ -1809,17 +1809,17 @@ class BasicTests:
def __init__(self, val):
self.val = val
class A(Base):
- def add(self, other):
+ def binop(self, other):
return A(self.val + other.val)
class B(Base):
- def add(self, other):
+ def binop(self, other):
return B(self.val * other.val)
def f(x, y):
res = x
while y > 0:
myjitdriver.can_enter_jit(y=y, x=x, res=res)
myjitdriver.jit_merge_point(y=y, x=x, res=res)
- res = res.add(x)
+ res = res.binop(x)
y -= 1
return res
def g(x, y):
@@ -1834,8 +1834,8 @@ class BasicTests:
assert res == 6*8 + 6**8
self.check_loop_count(5)
self.check_loops({'guard_true': 2,
- 'int_add': 2, 'int_sub': 2, 'int_gt': 2,
- 'jump': 2})
+ 'int_add': 1, 'int_mul': 1, 'int_sub': 2,
+ 'int_gt': 2, 'jump': 2})
class TestOOtype(BasicTests, OOJitMixin):