Commits

Armin Rigo committed 09b2cd5

Fix for metainterp/test/test_ztranslation.py.

Actually fixes the fact that the log printer did not know about the extra
helpers introduced by jtransform (the variants of string equality).

  • Participants
  • Parent commits f1b7a9c
  • Branches jit-str

Comments (0)

Files changed (2)

File pypy/jit/codewriter/assembler.py

                 return
             addr = llmemory.cast_ptr_to_adr(value)
             self.list_of_addr2name.append((addr, name))
+
+    def finished(self):
+        # Helper called at the end of assembling.  Registers the extra
+        # functions shown in _callinfo_for_oopspec.
+        from pypy.jit.codewriter.effectinfo import _callinfo_for_oopspec
+        for _, func in _callinfo_for_oopspec.values():
+            func = heaptracker.int2adr(func)
+            self.see_raw_object(func.ptr)

File pypy/jit/codewriter/codewriter.py

             count += 1
             if not count % 500:
                 log.info("Produced %d jitcodes" % count)
+        self.assembler.finished()
         heaptracker.finish_registering(self.cpu)
         log.info("there are %d JitCode instances." % count)