[pypy-commit] pypy jit-label-counters: hopefully fix tests

fijal noreply at buildbot.pypy.org
Sat Dec 24 18:14:31 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: jit-label-counters
Changeset: r50840:1e33997d6c55
Date: 2011-12-24 19:13 +0200
http://bitbucket.org/pypy/pypy/changeset/1e33997d6c55/

Log:	hopefully fix tests

diff --git a/pypy/jit/backend/x86/assembler.py b/pypy/jit/backend/x86/assembler.py
--- a/pypy/jit/backend/x86/assembler.py
+++ b/pypy/jit/backend/x86/assembler.py
@@ -613,7 +613,10 @@
         struct.bridge = int(bridge)
         struct.number = number
         self.loop_run_counters.append(struct)
-        self.loop_run_counter_tokens.append(token.repr_of_descr())
+        if token is not None:
+            self.loop_run_counter_tokens.append(token.repr_of_descr())
+        else:
+            self.loop_run_counter_tokens.append(None)
         return struct
 
     def _find_failure_recovery_bytecode(self, faildescr):


More information about the pypy-commit mailing list