Author: David Schneider <[email protected]>
Branch:
Changeset: r62720:37563d43267c
Date: 2013-03-24 11:14 +0200
http://bitbucket.org/pypy/pypy/changeset/37563d43267c/
Log: add build_regalloc test helper
diff --git a/rpython/jit/backend/arm/runner.py
b/rpython/jit/backend/arm/runner.py
--- a/rpython/jit/backend/arm/runner.py
+++ b/rpython/jit/backend/arm/runner.py
@@ -105,6 +105,12 @@
l[i].counter = ll_s.i
return l
+ def build_regalloc(self):
+ ''' for tests'''
+ from rpython.jit.backend.arm.regalloc import Regalloc
+ assert self.assembler is not None
+ return Regalloc(self.assembler)
+
class CPU_ARM(AbstractARMCPU):
"""ARM v7 uses softfp ABI, requires vfp"""
backend_name = "arm"
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit