pypy / pypy / jit / metainterp / optimizeopt /

Full commit
from pypy.jit.metainterp.optimizeopt.optimizer import Optimization
from pypy.jit.metainterp.optimizeopt.vstring import VAbstractStringValue
from pypy.jit.metainterp.resoperation import rop

class OptEarlyForce(Optimization):
    def propagate_forward(self, op):
        opnum = op.getopnum()
        if (opnum != rop.SETFIELD_GC and 
            opnum != rop.SETARRAYITEM_GC and
            opnum != rop.QUASIIMMUT_FIELD and
            opnum != rop.SAME_AS_i and
            opnum != rop.SAME_AS_p and
            opnum != rop.SAME_AS_f and
            opnum != rop.MARK_OPAQUE_PTR):
            for arg in op.getarglist():
                if arg in self.optimizer.values:
                    value = self.getvalue(arg)

    def new(self):
        return OptEarlyForce()

    def setup(self):
        self.optimizer.optearlyforce = self