Author: David Schneider <[email protected]>
Branch: jitframe-on-heap
Changeset: r61258:e2ca8ffabbd1
Date: 2013-02-15 14:49 +0100
http://bitbucket.org/pypy/pypy/changeset/e2ca8ffabbd1/
Log: add helper method to create RegAlloc instances in tests
diff --git a/rpython/jit/backend/x86/runner.py
b/rpython/jit/backend/x86/runner.py
--- a/rpython/jit/backend/x86/runner.py
+++ b/rpython/jit/backend/x86/runner.py
@@ -57,6 +57,12 @@
def setup(self):
self.assembler = Assembler386(self, self.translate_support_code)
+ def build_regalloc(self):
+ ''' for tests'''
+ from rpython.jit.backend.x86.regalloc import RegAlloc
+ assert self.assembler is not None
+ return RegAlloc(self.assembler, False)
+
def setup_once(self):
self.profile_agent.startup()
self.assembler.setup_once()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit