[pypy-commit] pypy all_ordered_dicts: Add some more @jits

arigo noreply at buildbot.pypy.org
Wed Dec 17 19:38:51 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: all_ordered_dicts
Changeset: r74996:24a23a64f250
Date: 2014-12-17 19:37 +0100
http://bitbucket.org/pypy/pypy/changeset/24a23a64f250/

Log:	Add some more @jits

diff --git a/rpython/rtyper/lltypesystem/rordereddict.py b/rpython/rtyper/lltypesystem/rordereddict.py
--- a/rpython/rtyper/lltypesystem/rordereddict.py
+++ b/rpython/rtyper/lltypesystem/rordereddict.py
@@ -41,6 +41,7 @@
 #
 #
 
+ at jit.look_inside_iff(lambda d, key, hash, flag: jit.isvirtual(d))
 def ll_call_lookup_function(d, key, hash, flag):
     fun = d.lookup_function_no
     if fun == FUNC_BYTE:
@@ -449,6 +450,7 @@
     else:
         rgc.ll_arrayclear(lltype.cast_opaque_ptr(DICTINDEX_LONG, d.indexes))
 
+ at jit.dont_look_inside
 def ll_call_insert_clean_function(d, hash, i):
     if d.lookup_function_no == FUNC_BYTE:
         ll_dict_store_clean(d, hash, i, TYPE_BYTE)
@@ -582,6 +584,7 @@
 _ll_dict_rescue._dont_inline_ = True
 
 def _ll_dict_insertclean(d, key, value, hash):
+    # never translated
     ENTRY = lltype.typeOf(d.entries).TO.OF
     ll_call_insert_clean_function(d, hash, d.num_ever_used_items)
     entry = d.entries[d.num_ever_used_items]


More information about the pypy-commit mailing list