Пример #1
0
 def specialize_call(self, orig_hop, i_sizehint=None):
     from pypy.rpython.rlist import rtype_newlist
     # fish a bit hop
     hop = orig_hop.copy()
     v = hop.args_v[0]
     r, s = hop.r_s_popfirstarg()
     if s.is_constant():
         v = hop.inputconst(r, s.const)
     hop.exception_is_here()
     return rtype_newlist(hop, v_sizehint=v)
Пример #2
0
 def specialize_call(self, orig_hop, i_sizehint):
     from pypy.rpython.rlist import rtype_newlist
     from pypy.rpython.lltypesystem import lltype
     # fish a bit hop
     hop = orig_hop.copy()
     v = hop.args_v[0]
     r, s = hop.r_s_popfirstarg()
     if s.is_constant():
         v = hop.inputconst(r, s.const)
     return rtype_newlist(hop, v_sizehint=v)
Пример #3
0
 def specialize_call(self, orig_hop, i_sizehint=None):
     from pypy.rpython.rlist import rtype_newlist
     # fish a bit hop
     hop = orig_hop.copy()
     v = hop.args_v[0]
     r, s = hop.r_s_popfirstarg()
     if s.is_constant():
         v = hop.inputconst(r, s.const)
     hop.exception_is_here()
     return rtype_newlist(hop, v_sizehint=v)
Пример #4
0
 def specialize_call(self, orig_hop, i_sizehint):
     from pypy.rpython.rlist import rtype_newlist
     from pypy.rpython.lltypesystem import lltype
     # fish a bit hop
     hop = orig_hop.copy()
     v = hop.args_v[0]
     r, s = hop.r_s_popfirstarg()
     if s.is_constant():
         v = hop.inputconst(r, s.const)
     return rtype_newlist(hop, v_sizehint=v)