Author: David Schneider <david.schnei...@picle.org> Branch: arm-backend-2 Changeset: r55664:c88f094e125f Date: 2012-06-14 11:36 +0200 http://bitbucket.org/pypy/pypy/changeset/c88f094e125f/
Log: unify interfaces for translation diff --git a/pypy/jit/backend/arm/opassembler.py b/pypy/jit/backend/arm/opassembler.py --- a/pypy/jit/backend/arm/opassembler.py +++ b/pypy/jit/backend/arm/opassembler.py @@ -48,7 +48,10 @@ class ResOpAssembler(object): - def emit_op_int_add(self, op, arglocs, regalloc, fcond, flags=False): + def emit_op_int_add(self, op, arglocs, regalloc, fcond): + return self.int_add_impl(op, arglocs, regalloc, fcond) + + def int_add_impl(self, op, arglocs, regalloc, fcond, flags=False): l0, l1, res = arglocs if flags: s = 1 @@ -64,6 +67,9 @@ return fcond def emit_op_int_sub(self, op, arglocs, regalloc, fcond, flags=False): + return self.int_sub_impl(op, arglocs, regalloc, fcond) + + def int_sub_impl(self, op, arglocs, regalloc, fcond, flags=False): l0, l1, res = arglocs if flags: s = 1 @@ -108,12 +114,12 @@ return fcond def emit_guard_int_add_ovf(self, op, guard, arglocs, regalloc, fcond): - self.emit_op_int_add(op, arglocs[0:3], regalloc, fcond, flags=True) + self.int_add_impl(op, arglocs[0:3], regalloc, fcond, flags=True) self._emit_guard_overflow(guard, arglocs[3:], fcond) return fcond def emit_guard_int_sub_ovf(self, op, guard, arglocs, regalloc, fcond): - self.emit_op_int_sub(op, arglocs[0:3], regalloc, fcond, flags=True) + self.int_sub_impl(op, arglocs[0:3], regalloc, fcond, flags=True) self._emit_guard_overflow(guard, arglocs[3:], fcond) return fcond _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit