Author: Armin Rigo <[email protected]>
Branch: heapcache-refactor
Changeset: r83159:85289474b3ac
Date: 2016-03-19 09:42 +0100
http://bitbucket.org/pypy/pypy/changeset/85289474b3ac/
Log: Fix set_position()
diff --git a/rpython/jit/metainterp/history.py
b/rpython/jit/metainterp/history.py
--- a/rpython/jit/metainterp/history.py
+++ b/rpython/jit/metainterp/history.py
@@ -614,8 +614,9 @@
return intmask(p) >> FO_POSITION_SHIFT
def set_position(self, new_pos):
+ assert new_pos >= 0
+ self.position_and_flags &= ~0xFFFFFFFE
self.position_and_flags |= r_uint(new_pos << FO_POSITION_SHIFT)
- self.__init__(new_pos)
def is_replaced_with_const(self):
return bool(self.position_and_flags & FO_REPLACED_WITH_CONST)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit