Author: Philip Jenvey <[email protected]>
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
 
 # ____________________________________________________________
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to