[pypy-commit] pypy gc_no_cleanup_nursery: hint for ll_mul
fijal
noreply at buildbot.pypy.org
Sun Sep 7 03:12:51 CEST 2014
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: gc_no_cleanup_nursery
Changeset: r73356:6fc92c728d84
Date: 2014-09-06 19:12 -0600
http://bitbucket.org/pypy/pypy/changeset/6fc92c728d84/
Log: hint for ll_mul
diff --git a/rpython/rtyper/rlist.py b/rpython/rtyper/rlist.py
--- a/rpython/rtyper/rlist.py
+++ b/rpython/rtyper/rlist.py
@@ -1014,7 +1014,8 @@
return res
ll_inplace_mul.oopspec = 'list.inplace_mul(l, factor)'
-
+ at jit.look_inside_iff(lambda _, l, factor: jit.isvirtual(l) and
+ jit.isconstant(factor) and factor < 10)
def ll_mul(RESLIST, l, factor):
length = l.ll_length()
if factor < 0:
More information about the pypy-commit
mailing list