[pypy-commit] pypy length-hint: add a get_printable_location
pjenvey
noreply at buildbot.pypy.org
Thu Sep 27 02:04:32 CEST 2012
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: length-hint
Changeset: r57624:18cbe2d3404b
Date: 2012-09-26 16:58 -0700
http://bitbucket.org/pypy/pypy/changeset/18cbe2d3404b/
Log: add a get_printable_location
diff --git a/pypy/objspace/std/listobject.py b/pypy/objspace/std/listobject.py
--- a/pypy/objspace/std/listobject.py
+++ b/pypy/objspace/std/listobject.py
@@ -64,10 +64,15 @@
return space.fromcache(ObjectListStrategy)
+def _get_printable_location(w_type):
+ return ('list__do_extend_from_iterable [w_type=%s]' %
+ w_type.getname(w_type.space))
+
_do_extend_jitdriver = jit.JitDriver(
name='list__do_extend_from_iterable',
greens=['w_type'],
- reds=['i', 'w_iterator', 'w_list'])
+ reds=['i', 'w_iterator', 'w_list'],
+ get_printable_location=_get_printable_location)
def _do_extend_from_iterable(space, w_list, w_iterable):
w_iterator = space.iter(w_iterable)
More information about the pypy-commit
mailing list