Author: Richard Plangger <planri...@gmail.com> Branch: s390x-backend Changeset: r81784:6d6bbc549ae1 Date: 2016-01-15 11:05 +0100 http://bitbucket.org/pypy/pypy/changeset/6d6bbc549ae1/
Log: fixed 2 translation issues diff --git a/rpython/jit/backend/zarch/callbuilder.py b/rpython/jit/backend/zarch/callbuilder.py --- a/rpython/jit/backend/zarch/callbuilder.py +++ b/rpython/jit/backend/zarch/callbuilder.py @@ -22,7 +22,7 @@ def __init__(self, assembler, fnloc, arglocs, resloc, calldescr): type = INT - size = None + size = WORD self.ressign = True if calldescr is not None: assert isinstance(calldescr, CallDescr) diff --git a/rpython/jit/backend/zarch/regalloc.py b/rpython/jit/backend/zarch/regalloc.py --- a/rpython/jit/backend/zarch/regalloc.py +++ b/rpython/jit/backend/zarch/regalloc.py @@ -266,7 +266,9 @@ # there is no candidate pair that only would # require one spill, thus we need to spill two! # this is a rare case! - reverse_mapping = { reg : var for var, reg in self.reg_bindings.items() } + reverse_mapping = {} + for var, reg in self.reg_bindings.items(): + reverse_mapping[reg] = var # always take the first for i, reg in enumerate(r.MANAGED_REGS): if i % 2 == 1: _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit