[pypy-commit] pypy optresult: record the dirty field here

fijal noreply at buildbot.pypy.org
Mon May 25 16:18:16 CEST 2015


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: optresult
Changeset: r77539:21d9a3e29cb4
Date: 2015-05-25 16:15 +0200
http://bitbucket.org/pypy/pypy/changeset/21d9a3e29cb4/

Log:	record the dirty field here

diff --git a/rpython/jit/metainterp/optimizeopt/info.py b/rpython/jit/metainterp/optimizeopt/info.py
--- a/rpython/jit/metainterp/optimizeopt/info.py
+++ b/rpython/jit/metainterp/optimizeopt/info.py
@@ -87,6 +87,9 @@
 
     def setfield(self, descr, op, optheap=None):
         self._fields[descr.index] = op
+        if optheap is not None:
+            assert not self.is_virtual()
+            optheap.register_dirty_field(descr, self)
 
     def getfield(self, descr, optheap=None):
         return self._fields[descr.index]


More information about the pypy-commit mailing list