[pypy-svn] r79102 - pypy/branch/jit-starargs/pypy/module/pypyjit/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Mon Nov 15 15:08:48 CET 2010
Author: cfbolz
Date: Mon Nov 15 15:08:46 2010
New Revision: 79102
Modified:
pypy/branch/jit-starargs/pypy/module/pypyjit/test/test_pypy_c.py
Log:
add another case
Modified: pypy/branch/jit-starargs/pypy/module/pypyjit/test/test_pypy_c.py
==============================================================================
--- pypy/branch/jit-starargs/pypy/module/pypyjit/test/test_pypy_c.py (original)
+++ pypy/branch/jit-starargs/pypy/module/pypyjit/test/test_pypy_c.py Mon Nov 15 15:08:46 2010
@@ -394,15 +394,19 @@
for i in range(x):
l = [i, x, 2]
s += g(*l)
+ s += g(i, x, 2)
return s
- ''', 100000, ([100], 300),
- ([1000], 3000),
- ([10000], 30000),
- ([100000], 300000))
+ ''', 100000, ([100], 600),
+ ([1000], 6000),
+ ([10000], 60000),
+ ([100000], 600000))
assert len(self.loops) == 1
op, = self.get_by_bytecode("CALL_FUNCTION_VAR")
assert len(op.get_opnames("new")) == 0
assert len(op.get_opnames("call_may_force")) == 0
+ oplen, op, oplen = self.get_by_bytecode("CALL_FUNCTION")
+ assert len(op.get_opnames("new")) == 0
+ assert len(op.get_opnames("call_may_force")) == 0
def test_virtual_instance(self):
self.run_source('''
More information about the Pypy-commit
mailing list