[pypy-svn] r60197 - pypy/branch/oo-jit/pypy/jit/codegen/i386

arigo at codespeak.net arigo at codespeak.net
Fri Nov 28 14:23:25 CET 2008


Author: arigo
Date: Fri Nov 28 14:23:24 2008
New Revision: 60197

Modified:
   pypy/branch/oo-jit/pypy/jit/codegen/i386/codebuf.py
Log:
(experimental) done a trick to redump the output of a code region,
typically used to redump just a jump target when the jump target
was modified.


Modified: pypy/branch/oo-jit/pypy/jit/codegen/i386/codebuf.py
==============================================================================
--- pypy/branch/oo-jit/pypy/jit/codegen/i386/codebuf.py	(original)
+++ pypy/branch/oo-jit/pypy/jit/codegen/i386/codebuf.py	Fri Nov 28 14:23:24 2008
@@ -57,6 +57,11 @@
                                            self._pos)
             self._last_dump_start = self._pos
 
+    def redone(self, frm, to):
+        if machine_code_dumper.enabled:
+            baseaddr = rffi.cast(lltype.Signed, self._data)
+            machine_code_dumper.dump_range(self, frm - baseaddr, to - baseaddr)
+
     def log(self, msg):
         if machine_code_dumper.enabled:
             machine_code_dumper.dump(self, 'LOG', self._pos, msg)



More information about the Pypy-commit mailing list