Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r45961:0b485b20b582
Date: 2011-07-24 20:42 -0700
http://bitbucket.org/pypy/pypy/changeset/0b485b20b582/
Log: Clean up some silly oopspec stuff with dicts (how old was this
code...)
diff --git a/pypy/jit/codewriter/support.py b/pypy/jit/codewriter/support.py
--- a/pypy/jit/codewriter/support.py
+++ b/pypy/jit/codewriter/support.py
@@ -420,10 +420,6 @@
_ll_1_dict_values.need_result_type = True
_ll_1_dict_items .need_result_type = True
- def _ll_1_newdictiter(ITER, d):
- return ll_rdict.ll_dictiter(lltype.Ptr(ITER), d)
- _ll_1_newdictiter.need_result_type = True
-
_dictnext_keys = staticmethod(ll_rdict.ll_dictnext_group['keys'])
_dictnext_values = staticmethod(ll_rdict.ll_dictnext_group['values'])
_dictnext_items = staticmethod(ll_rdict.ll_dictnext_group['items'])
@@ -574,10 +570,6 @@
_ll_1_dict_values.need_result_type = True
_ll_1_dict_items .need_result_type = True
- def _ll_1_newdictiter(ITER, d):
- return oo_rdict.ll_dictiter(ITER, d)
- _ll_1_newdictiter.need_result_type = True
-
_dictnext_keys = staticmethod(oo_rdict.ll_dictnext_group['keys'])
_dictnext_values = staticmethod(oo_rdict.ll_dictnext_group['values'])
_dictnext_items = staticmethod(oo_rdict.ll_dictnext_group['items'])
diff --git a/pypy/rpython/lltypesystem/rdict.py
b/pypy/rpython/lltypesystem/rdict.py
--- a/pypy/rpython/lltypesystem/rdict.py
+++ b/pypy/rpython/lltypesystem/rdict.py
@@ -491,8 +491,8 @@
if i & HIGHEST_BIT:
raise KeyError
_ll_dict_del(d, i)
-ll_dict_delitem.oopspec = 'dict.delitem(d, key)'
[email protected]_look_inside
def _ll_dict_del(d, i):
d.entries.mark_deleted(i)
d.num_items -= 1
@@ -687,7 +687,6 @@
iter.dict = d
iter.index = 0
return iter
-ll_dictiter.oopspec = 'newdictiter(d)'
def _make_ll_dictnext(kind):
# make three versions of the following function: keys, values, items
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit