[pypy-commit] pypy default: those two functions are unroll_safe
fijal
noreply at buildbot.pypy.org
Mon Nov 28 09:56:51 CET 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r49882:2337eca967fa
Date: 2011-11-28 10:47 +0200
http://bitbucket.org/pypy/pypy/changeset/2337eca967fa/
Log: those two functions are unroll_safe
diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -677,6 +677,7 @@
return False
return True
+ @jit.unroll_safe
def _prepare_slice_args(self, space, w_idx):
if (space.isinstance_w(w_idx, space.w_int) or
space.isinstance_w(w_idx, space.w_slice)):
@@ -718,6 +719,7 @@
view = self.create_slice(space, chunks)
view.setslice(space, w_value)
+ @jit.unroll_safe
def create_slice(self, space, chunks):
if len(chunks) == 1:
start, stop, step, lgt = chunks[0]
More information about the pypy-commit
mailing list