[pypy-svn] r66928 - pypy/branch/pyjitpl5/pypy/jit/backend/x86
fijal at codespeak.net
fijal at codespeak.net
Tue Aug 18 17:45:04 CEST 2009
Author: fijal
Date: Tue Aug 18 17:45:03 2009
New Revision: 66928
Modified:
pypy/branch/pyjitpl5/pypy/jit/backend/x86/regalloc.py
Log:
remove some dead code
Modified: pypy/branch/pyjitpl5/pypy/jit/backend/x86/regalloc.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/x86/regalloc.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/x86/regalloc.py Tue Aug 18 17:45:03 2009
@@ -489,21 +489,6 @@
self.Store(v_to_spill, loc, newloc)
return loc
-# def _locs_from_liveboxes(self, guard_op):
-# stacklocs = []
-# locs = []
-# for arg in guard_op.inputargs:
-# assert isinstance(arg, Box)
-# if arg not in self.stack_bindings:
-# self.dirty_stack[arg] = True
-# stacklocs.append(self.stack_loc(arg).position)
-# locs.append(self.loc(arg))
-# if not we_are_translated():
-# assert len(dict.fromkeys(stacklocs)) == len(stacklocs)
-# guard_op.stacklocs = stacklocs
-# guard_op.locs = locs
-# return locs
-
def stack_loc(self, v):
try:
res = self.stack_bindings[v]
@@ -715,22 +700,6 @@
consider_guard_no_overflow = consider_guard_no_exception
consider_guard_overflow = consider_guard_no_exception
- #def consider_guard2(self, op, ignored):
- # loc1, ops1 = self.make_sure_var_in_reg(op.args[0], [])
- # loc2, ops2 = self.make_sure_var_in_reg(op.args[1], [])
- # locs = [self.loc(arg) for arg in op.liveboxes]
- # self.eventually_free_vars(op.args + op.liveboxes)
- # return ops1 + ops2 + [PerformDiscard(op, [loc1, loc2] + locs)]
-
- #consider_guard_lt = consider_guard2
- #consider_guard_le = consider_guard2
- #consider_guard_eq = consider_guard2
- #consider_guard_ne = consider_guard2
- #consider_guard_gt = consider_guard2
- #consider_guard_ge = consider_guard2
- #consider_guard_is = consider_guard2
- #consider_guard_isnot = consider_guard2
-
def consider_guard_value(self, op, ignored):
x = self.loc(op.args[0])
if not (isinstance(x, REG) or isinstance(op.args[1], Const)):
@@ -1032,18 +1001,6 @@
consider_getfield_raw = consider_getfield_gc
consider_getarrayitem_gc_pure = consider_getarrayitem_gc
- def _consider_listop(self, op, ignored):
- return self._call(op, [self.loc(arg) for arg in op.args])
-
- xxx_consider_getitem = _consider_listop
- xxx_consider_len = _consider_listop
- xxx_consider_append = _consider_listop
- xxx_consider_pop = _consider_listop
- xxx_consider_setitem = _consider_listop
- xxx_consider_newlist = _consider_listop
- xxx_consider_insert = _consider_listop
- xxx_consider_listnonzero = _consider_listop
-
def _same_as(self, op, ignored):
x = op.args[0]
if isinstance(x, Const):
More information about the Pypy-commit
mailing list