Author: Carl Friedrich Bolz <[email protected]>
Branch: regalloc-playground
Changeset: r92188:cc329ecab757
Date: 2017-08-20 16:26 +0200
http://bitbucket.org/pypy/pypy/changeset/cc329ecab757/
Log: fix tests
diff --git a/rpython/jit/backend/llsupport/test/test_regalloc.py
b/rpython/jit/backend/llsupport/test/test_regalloc.py
--- a/rpython/jit/backend/llsupport/test/test_regalloc.py
+++ b/rpython/jit/backend/llsupport/test/test_regalloc.py
@@ -69,7 +69,20 @@
class MockAsm(object):
def __init__(self):
self.moves = []
-
+
+ # XXX register allocation statistics to be removed later
+ self.num_moves_calls = 0
+ self.num_moves_jump = 0
+ self.num_spills = 0
+ self.num_spills_to_existing = 0
+ self.num_reloads = 0
+
+ self.preamble_num_moves_calls = 0
+ self.preamble_num_moves_jump = 0
+ self.preamble_num_spills = 0
+ self.preamble_num_spills_to_existing = 0
+ self.preamble_num_reloads = 0
+
def regalloc_mov(self, from_loc, to_loc):
self.moves.append((from_loc, to_loc))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit