[pypy-commit] pypy inline-dict-ops: allow newdict to be inlined

alex_gaynor noreply at buildbot.pypy.org
Thu Oct 20 20:42:34 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: inline-dict-ops
Changeset: r48281:5815c00f560b
Date: 2011-10-20 14:42 -0400
http://bitbucket.org/pypy/pypy/changeset/5815c00f560b/

Log:	allow newdict to be inlined

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
@@ -623,7 +623,6 @@
     d.num_items = 0
     d.resize_counter = DICT_INITSIZE * 2
     return d
-ll_newdict.oopspec = 'newdict()'
 
 def ll_newdict_size(DICT, length_estimate):
     length_estimate = (length_estimate // 2) * 3
@@ -635,7 +634,6 @@
     d.num_items = 0
     d.resize_counter = n * 2
     return d
-ll_newdict_size.oopspec = 'newdict()'
 
 # pypy.rpython.memory.lldict uses a dict based on Struct and Array
 # instead of GcStruct and GcArray, which is done by using different


More information about the pypy-commit mailing list