[pypy-commit] pypy default: Replace @jit.elidable with @specialize.memo

fijal noreply at buildbot.pypy.org
Tue Feb 25 09:52:23 CET 2014


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r69409:3dbefef835d5
Date: 2014-02-25 10:51 +0200
http://bitbucket.org/pypy/pypy/changeset/3dbefef835d5/

Log:	Replace @jit.elidable with @specialize.memo

diff --git a/pypy/module/micronumpy/interp_boxes.py b/pypy/module/micronumpy/interp_boxes.py
--- a/pypy/module/micronumpy/interp_boxes.py
+++ b/pypy/module/micronumpy/interp_boxes.py
@@ -16,7 +16,7 @@
 from pypy.interpreter.mixedmodule import MixedModule
 from rpython.rtyper.lltypesystem import lltype
 from rpython.rlib.rstring import StringBuilder
-from rpython.rlib import jit
+from rpython.rlib.objectmodel import specialize
 from pypy.module.micronumpy import constants as NPY
 
 
@@ -34,7 +34,7 @@
 
 
 def new_dtype_getter(num):
-    @jit.elidable
+    @specialize.memo()
     def _get_dtype(space):
         from pypy.module.micronumpy.interp_dtype import get_dtype_cache
         return get_dtype_cache(space).dtypes_by_num[num]


More information about the pypy-commit mailing list