[pypy-commit] pypy default: Fix for the test in llgraph/test/

arigo noreply at buildbot.pypy.org
Thu Mar 20 19:46:44 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r70126:c6230cd996a0
Date: 2014-03-20 19:42 +0100
http://bitbucket.org/pypy/pypy/changeset/c6230cd996a0/

Log:	Fix for the test in llgraph/test/

diff --git a/rpython/jit/backend/llgraph/runner.py b/rpython/jit/backend/llgraph/runner.py
--- a/rpython/jit/backend/llgraph/runner.py
+++ b/rpython/jit/backend/llgraph/runner.py
@@ -553,6 +553,10 @@
         else:
             return self.bh_raw_load_i(struct, offset, descr)
 
+    def bh_increment_debug_counter(self, addr):
+        p = rffi.cast(rffi.CArrayPtr(lltype.Signed), addr)
+        p[0] += 1
+
     def unpack_arraydescr_size(self, arraydescr):
         from rpython.jit.backend.llsupport.symbolic import get_array_token
         from rpython.jit.backend.llsupport.descr import get_type_flag, FLAG_SIGNED


More information about the pypy-commit mailing list