Author: Maciej Fijalkowski <fij...@gmail.com> Branch: optresult Changeset: r77540:efb530f336a8 Date: 2015-05-25 16:18 +0200 http://bitbucket.org/pypy/pypy/changeset/efb530f336a8/
Log: use an ordered dictionary here (but we might as well use a value on the descr at some point) diff --git a/rpython/jit/metainterp/optimizeopt/heap.py b/rpython/jit/metainterp/optimizeopt/heap.py --- a/rpython/jit/metainterp/optimizeopt/heap.py +++ b/rpython/jit/metainterp/optimizeopt/heap.py @@ -1,4 +1,5 @@ import os +from collections import OrderedDict from rpython.jit.codewriter.effectinfo import EffectInfo from rpython.jit.metainterp.optimizeopt.util import args_dict @@ -131,7 +132,7 @@ def __init__(self): # mapping descr -> CachedField - self.cached_fields = {} + self.cached_fields = OrderedDict() # XXXX the rest is old # cached array items: {array descr: {index: CachedField}} self.cached_arrayitems = {} _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit