[pypy-commit] pypy heapcache-refactor: fix position
fijal
pypy.commits at gmail.com
Sat Mar 19 04:19:14 EDT 2016
Author: fijal
Branch: heapcache-refactor
Changeset: r83157:40d970d5e3f4
Date: 2016-03-19 10:18 +0200
http://bitbucket.org/pypy/pypy/changeset/40d970d5e3f4/
Log: fix 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,9 +614,8 @@
return intmask(p) >> FO_POSITION_SHIFT
def set_position(self, new_pos):
+ self.position_and_flags |= r_uint(new_pos << FO_POSITION_SHIFT)
self.__init__(new_pos)
- #flags = self.position_and_flags & (~FO_POSITION_MASK)
- #self.position_and_flags = flags | r_uint(new_pos)
def is_replaced_with_const(self):
return bool(self.position_and_flags & FO_REPLACED_WITH_CONST)
More information about the pypy-commit
mailing list