def build_bytecode(s): result = ''.join([chr(int(t)) for t in s.split(',')]) return LLSupport.to_rstr(result)
def _get_cspecnode(s): from pypy.rpython.module.support import LLSupport llstr = lltype.cast_opaque_ptr(llmemory.GCREF, LLSupport.to_rstr(s)) box = ConstPtr(llstr) return ConstantSpecNode(box)
def build_bytecode(s): result = ''.join([chr(int(t)) for t in s.split(',')]) return LLSupport.to_rstr(result)
def string_to_ll(self, s): from pypy.rpython.module.support import LLSupport return LLSupport.to_rstr(s)
def ll_strtod_formatd(fmt, x): return LLSupport.to_rstr(rarithmetic.formatd(LLSupport.from_rstr(fmt), x))
def _get_cspecnode(s): from pypy.rpython.module.support import LLSupport llstr = lltype.cast_opaque_ptr(llmemory.GCREF, LLSupport.to_rstr(s)) box = ConstPtr(llstr) return ConstantSpecNode(box)
def revealconstrepr(gv_value): c = _from_opaque(gv_value) # XXX: what to do with ootype? #import pdb;pdb.set_trace() return LLSupport.to_rstr(repr(c.value))
def string_to_ll(self, s): from pypy.rpython.module.support import LLSupport return LLSupport.to_rstr(s)
def revealconstrepr(gv_value): c = from_opaque_object(gv_value) return LLSupport.to_rstr(repr(c.value))
def revealconstrepr(gv_value): c = _from_opaque(gv_value) # XXX: what to do with ootype? #import pdb;pdb.set_trace() return LLSupport.to_rstr(repr(c.value))