[pypy-commit] pypy default: Remove this keyword argument, never used. Using it would fail to
arigo
noreply at buildbot.pypy.org
Mon Oct 5 10:50:23 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r79988:bef7f8d920d7
Date: 2015-10-05 10:50 +0200
http://bitbucket.org/pypy/pypy/changeset/bef7f8d920d7/
Log: Remove this keyword argument, never used. Using it would fail to
annotate: the final ResOperation.get_box_replacement() has a
@specialize on this argument.
diff --git a/rpython/jit/metainterp/optimizeopt/optimizer.py b/rpython/jit/metainterp/optimizeopt/optimizer.py
--- a/rpython/jit/metainterp/optimizeopt/optimizer.py
+++ b/rpython/jit/metainterp/optimizeopt/optimizer.py
@@ -146,8 +146,8 @@
return fw
return None
- def get_box_replacement(self, op, not_const=False):
- return self.optimizer.get_box_replacement(op, not_const=not_const)
+ def get_box_replacement(self, op):
+ return self.optimizer.get_box_replacement(op)
def getlastop(self):
return self.optimizer.getlastop()
@@ -336,10 +336,10 @@
if self.get_box_replacement(op).is_constant():
return info.FloatConstInfo(self.get_box_replacement(op))
- def get_box_replacement(self, op, not_const=False):
+ def get_box_replacement(self, op):
if op is None:
return op
- return op.get_box_replacement(not_const)
+ return op.get_box_replacement()
def force_box(self, op, optforce=None):
op = self.get_box_replacement(op)
More information about the pypy-commit
mailing list