[pypy-commit] pypy numpy-single-jitdriver: boring :)
fijal
noreply at buildbot.pypy.org
Fri Feb 3 11:38:46 CET 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-single-jitdriver
Changeset: r52052:ce3a929dc501
Date: 2012-02-03 12:38 +0200
http://bitbucket.org/pypy/pypy/changeset/ce3a929dc501/
Log: boring :)
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
@@ -17,13 +17,6 @@
from pypy.module.micronumpy.appbridge import get_appbridge_cache
-slice_driver = jit.JitDriver(
- greens=['shapelen', 'sig'],
- virtualizables=['frame'],
- reds=['self', 'frame', 'arr'],
- get_printable_location=signature.new_printable_location('slice'),
- name='numpy_slice',
-)
count_driver = jit.JitDriver(
greens=['shapelen'],
virtualizables=['frame'],
@@ -965,7 +958,7 @@
self._fast_setslice(space, w_value)
else:
arr = SliceArray(self.shape, self.dtype, self, w_value)
- self._sliceloop(arr)
+ loop.compute(arr)
def _fast_setslice(self, space, w_value):
assert isinstance(w_value, ConcreteArray)
@@ -989,17 +982,6 @@
source.next()
dest.next()
- def _sliceloop(self, arr):
- sig = arr.find_sig()
- frame = sig.create_frame(arr)
- shapelen = len(self.shape)
- while not frame.done():
- slice_driver.jit_merge_point(sig=sig, frame=frame, self=self,
- arr=arr,
- shapelen=shapelen)
- sig.eval(frame, arr)
- frame.next(shapelen)
-
def copy(self, space):
array = W_NDimArray(self.size, self.shape[:], self.dtype, self.order)
array.setslice(space, self)
More information about the pypy-commit
mailing list