[pypy-commit] pypy shadowstack-perf: Add this as a redirecting stub.

arigo noreply at buildbot.pypy.org
Sat Jul 2 12:03:59 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: shadowstack-perf
Changeset: r45260:0cdaf4c98369
Date: 2011-07-01 18:28 +0200
http://bitbucket.org/pypy/pypy/changeset/0cdaf4c98369/

Log:	Add this as a redirecting stub.

diff --git a/pypy/jit/codewriter/regalloc.py b/pypy/jit/codewriter/regalloc.py
new file mode 100644
--- /dev/null
+++ b/pypy/jit/codewriter/regalloc.py
@@ -0,0 +1,8 @@
+from pypy.tool.algo import regalloc
+from pypy.jit.metainterp.history import getkind
+from pypy.jit.codewriter.flatten import ListOfKind
+
+
+def perform_register_allocation(graph, kind):
+    checkkind = lambda v: getkind(v.concretetype) == kind
+    return regalloc.perform_register_allocation(graph, checkkind, ListOfKind)


More information about the pypy-commit mailing list