예제 #1
0
 def copy_to_raw_memory(self, addr):
     self._copy_to_raw_memory(addr)
     if self.relocations is not None:
         for reloc in self.relocations:  # for 32-bit only
             p = addr + reloc
             adr = rffi.cast(rffi.INTP, p - 4)
             adr[0] = rffi.cast(rffi.INT, intmask(adr[0]) - p)
     valgrind.discard_translations(addr, self.get_relative_pos())
     self._dump(addr, "jit-backend-dump", backend_name)
예제 #2
0
파일: codebuf.py 프로젝트: charred/pypy
 def copy_to_raw_memory(self, addr):
     self._copy_to_raw_memory(addr)
     if self.relocations is not None:
         for reloc in self.relocations:
             p = addr + reloc
             adr = rffi.cast(rffi.LONGP, p - WORD)
             adr[0] = intmask(adr[0] - p)
     valgrind.discard_translations(addr, self.get_relative_pos())
     self._dump(addr, "jit-backend-dump", backend_name)
예제 #3
0
 def copy_to_raw_memory(self, addr):
     self._copy_to_raw_memory(addr)
     if self.relocations is not None:
         for reloc in self.relocations:       # for 32-bit only
             p = addr + reloc
             adr = rffi.cast(rffi.INTP, p - 4)
             adr[0] = rffi.cast(rffi.INT, intmask(adr[0]) - p)
     valgrind.discard_translations(addr, self.get_relative_pos())
     self._dump(addr, "jit-backend-dump", backend_name)