[pypy-svn] r31716 - pypy/branch/no-zeroing-assumption/pypy/rpython/memory
mwh at codespeak.net
mwh at codespeak.net
Sun Aug 27 13:00:19 CEST 2006
Author: mwh
Date: Sun Aug 27 13:00:18 2006
New Revision: 31716
Modified:
pypy/branch/no-zeroing-assumption/pypy/rpython/memory/simulator.py
Log:
memclear support for the simulator
Modified: pypy/branch/no-zeroing-assumption/pypy/rpython/memory/simulator.py
==============================================================================
--- pypy/branch/no-zeroing-assumption/pypy/rpython/memory/simulator.py (original)
+++ pypy/branch/no-zeroing-assumption/pypy/rpython/memory/simulator.py Sun Aug 27 13:00:18 2006
@@ -153,6 +153,9 @@
offset2 = address2 - block2.baseaddress
block1.memcopy(offset1, block2, offset2, size)
+ def memclear(self, offset, size):
+ self.setbytes(offset, "\x00" * size)
+
def get_py_object(self, address):
block = self.objectblock
offset = address - block.baseaddress
More information about the Pypy-commit
mailing list