[pypy-commit] pypy length-hint: refer to the generic resize call

pjenvey noreply at buildbot.pypy.org
Fri Jul 13 01:59:35 CEST 2012


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: length-hint
Changeset: r56054:cdfc0fe387be
Date: 2012-07-12 16:58 -0700
http://bitbucket.org/pypy/pypy/changeset/cdfc0fe387be/

Log:	refer to the generic resize call

diff --git a/pypy/rlib/objectmodel.py b/pypy/rlib/objectmodel.py
--- a/pypy/rlib/objectmodel.py
+++ b/pypy/rlib/objectmodel.py
@@ -276,11 +276,11 @@
         s_l.listdef.listitem.resize()
         return s_l
 
-    def specialize_call(self, hop, i_sizehint=None):
-        from pypy.rpython.lltypesystem.rlist import _ll_list_resize
+    def specialize_call(self, hop):
+        r_list = hop.r_result
         v_list, v_sizehint = hop.inputargs(*hop.args_r)
         hop.exception_is_here()
-        hop.llops.gendirectcall(_ll_list_resize, v_list, v_sizehint)
+        hop.llops.gendirectcall(r_list.LIST._ll_resize, v_list, v_sizehint)
         return v_list
 
 # ____________________________________________________________


More information about the pypy-commit mailing list