[pypy-svn] pypy default: jit.dont_look_inside on format_number because of ptradd, jit should probably actually support it.

alex_gaynor commits-noreply at bitbucket.org
Tue Jan 25 03:11:05 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r41282:8ce6daa864db
Date: 2011-01-24 21:10 -0500
http://bitbucket.org/pypy/pypy/changeset/8ce6daa864db/

Log:	jit.dont_look_inside on format_number because of ptradd, jit should
	probably actually support it.

diff --git a/pypy/rlib/rdtoa.py b/pypy/rlib/rdtoa.py
--- a/pypy/rlib/rdtoa.py
+++ b/pypy/rlib/rdtoa.py
@@ -3,6 +3,7 @@
 from pypy.translator.tool.cbuild import ExternalCompilationInfo
 from pypy.tool.autopath import pypydir
 from pypy.rpython.lltypesystem import lltype, rffi
+from pypy.rlib import jit
 from pypy.rlib.rstring import StringBuilder
 import py
 
@@ -69,6 +70,7 @@
         # shouldn't get here
         raise ValueError
 
+ at jit.dont_look_inside
 def format_number(digits, buflen, sign, decpt, code, precision, flags):
     # We got digits back, format them.  We may need to pad 'digits'
     # either on the left or right (or both) with extra zeros, so in


More information about the Pypy-commit mailing list