Author: Maciej Fijalkowski <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to