[pypy-commit] pypy arm-backed-float: implement missing get_on_leave_jitted_hook

bivab noreply at buildbot.pypy.org
Fri Jun 10 12:59:27 CEST 2011


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backed-float
Changeset: r44873:bd7e91cd598a
Date: 2011-06-10 12:58 +0200
http://bitbucket.org/pypy/pypy/changeset/bd7e91cd598a/

Log:	implement missing get_on_leave_jitted_hook

diff --git a/pypy/jit/backend/arm/assembler.py b/pypy/jit/backend/arm/assembler.py
--- a/pypy/jit/backend/arm/assembler.py
+++ b/pypy/jit/backend/arm/assembler.py
@@ -905,7 +905,9 @@
             assert 0, 'ffuu'
 
     def leave_jitted_hook(self):
-        pass
+        ptrs = self.fail_boxes_ptr.ar
+        llop.gc_assume_young_pointers(lltype.Void,
+                                      llmemory.cast_ptr_to_adr(ptrs))
 
     def malloc_cond(self, nursery_free_adr, nursery_top_adr, size, tid):
         size = max(size, self.cpu.gc_ll_descr.minimal_size_in_nursery)
diff --git a/pypy/jit/backend/arm/runner.py b/pypy/jit/backend/arm/runner.py
--- a/pypy/jit/backend/arm/runner.py
+++ b/pypy/jit/backend/arm/runner.py
@@ -69,6 +69,9 @@
     def get_latest_force_token(self):
         return self.assembler.fail_force_index
 
+    def get_on_leave_jitted_hook(self):
+        return self.assembler.leave_jitted_hook
+
     def clear_latest_values(self, count):
         setitem = self.assembler.fail_boxes_ptr.setitem
         null = lltype.nullptr(llmemory.GCREF.TO)


More information about the pypy-commit mailing list