Author: hager <sven.ha...@uni-duesseldorf.de> Branch: ppc-jit-backend Changeset: r46534:811a8b30c673 Date: 2011-08-16 13:30 +0200 http://bitbucket.org/pypy/pypy/changeset/811a8b30c673/
Log: Added convenience function for register allocation. diff --git a/pypy/jit/backend/ppc/runner.py b/pypy/jit/backend/ppc/runner.py --- a/pypy/jit/backend/ppc/runner.py +++ b/pypy/jit/backend/ppc/runner.py @@ -98,6 +98,11 @@ self.total_compiled_bridges += 1 self.teardown() + def get_next_register(self): + reg = self.next_free_register + self.next_free_register += 1 + return reg + def _make_epilogue(self, codebuilder): for op_index, fail_index, guard, reglist in self.patch_list: curpos = codebuilder.get_relative_pos() _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit