Author: edelsohn Branch: ppc-jit-backend Changeset: r52368:be722eaa302c Date: 2012-02-10 23:52 -0500 http://bitbucket.org/pypy/pypy/changeset/be722eaa302c/
Log: Add support for gcrootmap to prepare_guard_call_release_gil. diff --git a/pypy/jit/backend/ppc/regalloc.py b/pypy/jit/backend/ppc/regalloc.py --- a/pypy/jit/backend/ppc/regalloc.py +++ b/pypy/jit/backend/ppc/regalloc.py @@ -522,8 +522,11 @@ self.assembler.emit_call(op, args, self, fail_index) # then reopen the stack if gcrootmap: - assert 0, "not implemented yet" - # self.assembler.call_reacquire_gil(gcrootmap, registers) + if op.result: + result_loc = self.call_result_location(op.result) + else: + result_loc = None + self.assembler.call_reacquire_gil(gcrootmap, result_loc) locs = self._prepare_guard(guard_op) self.possibly_free_vars(guard_op.getfailargs()) return locs _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit