Author: Maciej Fijalkowski <[email protected]>
Branch: jitframe-on-heap
Changeset: r61094:8d6028ef2cb6
Date: 2013-02-11 15:59 +0200
http://bitbucket.org/pypy/pypy/changeset/8d6028ef2cb6/
Log: fix test_regalloc
diff --git a/rpython/jit/backend/x86/regalloc.py
b/rpython/jit/backend/x86/regalloc.py
--- a/rpython/jit/backend/x86/regalloc.py
+++ b/rpython/jit/backend/x86/regalloc.py
@@ -194,7 +194,9 @@
assert isinstance(box, Box)
loc = self.fm.get_new_loc(box)
locs.append(loc.value)
- looptoken.compiled_loop_token._x86_initial_locs = locs
+ if looptoken.compiled_loop_token is not None:
+ # for tests
+ looptoken.compiled_loop_token._x86_initial_locs = locs
def possibly_free_var(self, var):
if var.type == FLOAT:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit