[pypy-commit] pypy ppc-jit-backend: remove dead code
hager
noreply at buildbot.pypy.org
Mon Mar 5 16:42:42 CET 2012
Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r53232:6a1764233676
Date: 2012-03-05 07:41 -0800
http://bitbucket.org/pypy/pypy/changeset/6a1764233676/
Log: remove dead code
diff --git a/pypy/jit/backend/ppc/helper/assembler.py b/pypy/jit/backend/ppc/helper/assembler.py
--- a/pypy/jit/backend/ppc/helper/assembler.py
+++ b/pypy/jit/backend/ppc/helper/assembler.py
@@ -68,42 +68,6 @@
break
return reg_args
-class saved_registers(object):
- def __init__(self, assembler, regs_to_save, regalloc=None):
- self.mc = assembler
- self.regalloc = regalloc
- if self.regalloc:
- assert 0, "not implemented yet"
- else:
- self.regs = regs_to_save
-
- def __enter__(self):
- if len(self.regs) > 0:
- if IS_PPC_32:
- space = BACKCHAIN_SIZE + WORD * len(self.regs)
- self.mc.stwu(r.SP.value, r.SP.value, -space)
- else:
- space = (6 + MAX_REG_PARAMS + len(self.regs)) * WORD
- self.mc.stdu(r.SP.value, r.SP.value, -space)
- for i, reg in enumerate(self.regs):
- if IS_PPC_32:
- self.mc.stw(reg.value, r.SP.value, BACKCHAIN_SIZE + i * WORD)
- else:
- self.mc.std(reg.value, r.SP.value, (14 + i) * WORD)
-
- def __exit__(self, *args):
- if len(self.regs) > 0:
- for i, reg in enumerate(self.regs):
- if IS_PPC_32:
- self.mc.lwz(reg.value, r.SP.value, BACKCHAIN_SIZE + i * WORD)
- else:
- self.mc.ld(reg.value, r.SP.value, (14 + i) * WORD)
- if IS_PPC_32:
- space = BACKCHAIN_SIZE + WORD * len(self.regs)
- else:
- space = (6 + MAX_REG_PARAMS + len(self.regs)) * WORD
- self.mc.addi(r.SP.value, r.SP.value, space)
-
class Saved_Volatiles(object):
""" used in _gen_leave_jitted_hook_code to save volatile registers
in ENCODING AREA around calls
More information about the pypy-commit
mailing list