[pypy-commit] pypy ppc-jit-backend: add get_loc_index

hager noreply at buildbot.pypy.org
Thu Jan 5 00:00:37 CET 2012


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r51025:2116589f3b9e
Date: 2012-01-04 14:59 -0800
http://bitbucket.org/pypy/pypy/changeset/2116589f3b9e/

Log:	add get_loc_index

diff --git a/pypy/jit/backend/ppc/ppcgen/regalloc.py b/pypy/jit/backend/ppc/ppcgen/regalloc.py
--- a/pypy/jit/backend/ppc/ppcgen/regalloc.py
+++ b/pypy/jit/backend/ppc/ppcgen/regalloc.py
@@ -118,6 +118,13 @@
             assert 0, "TODO"
         return 1
 
+    @staticmethod
+    def get_loc_index(loc):
+        assert loc.is_stack()
+        if loc.type == FLOAT:
+            assert 0, "not implemented yet"
+        return loc.position
+
 class Regalloc(object):
 
     def __init__(self, frame_manager=None, assembler=None):


More information about the pypy-commit mailing list