[pypy-commit] pypy default: Can't inline this, the JIT doesn't like it.

alex_gaynor noreply at buildbot.pypy.org
Mon Mar 5 22:06:24 CET 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r53240:b608170d963a
Date: 2012-03-05 16:06 -0500
http://bitbucket.org/pypy/pypy/changeset/b608170d963a/

Log:	Can't inline this, the JIT doesn't like it.

diff --git a/pypy/rlib/rstruct/nativefmttable.py b/pypy/rlib/rstruct/nativefmttable.py
--- a/pypy/rlib/rstruct/nativefmttable.py
+++ b/pypy/rlib/rstruct/nativefmttable.py
@@ -3,6 +3,7 @@
 The table 'native_fmttable' is also used by pypy.module.array.interp_array.
 """
 import struct
+from pypy.rlib import jit
 from pypy.rlib.rstruct import standardfmttable as std
 from pypy.rlib.rstruct.error import StructError
 from pypy.rpython.tool import rffi_platform
@@ -25,6 +26,7 @@
 double_buf = lltype.malloc(rffi.DOUBLEP.TO, 1, flavor='raw', immortal=True)
 float_buf = lltype.malloc(rffi.FLOATP.TO, 1, flavor='raw', immortal=True)
 
+ at jit.dont_look_inside
 def pack_double(fmtiter):
     doubleval = fmtiter.accept_float_arg()
     double_buf[0] = doubleval
@@ -40,6 +42,7 @@
     doubleval = double_buf[0]
     fmtiter.appendobj(doubleval)
 
+ at jit.dont_look_inside
 def pack_float(fmtiter):
     doubleval = fmtiter.accept_float_arg()
     floatval = r_singlefloat(doubleval)


More information about the pypy-commit mailing list