[pypy-commit] pypy ppc-jit-backend: add some methods and fix little bugs

hager noreply at buildbot.pypy.org
Wed Jan 4 14:59:37 CET 2012


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r51013:fe53dc8f2aea
Date: 2012-01-04 14:59 +0100
http://bitbucket.org/pypy/pypy/changeset/fe53dc8f2aea/

Log:	add some methods and fix little bugs

diff --git a/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py b/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
--- a/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
+++ b/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
@@ -181,7 +181,6 @@
         regs = rffi.cast(rffi.CCHARP, spp_loc)
         i = -1
         fail_index = -1
-        import pdb; pdb.set_trace()
         while(True):
             i += 1
             fail_index += 1
@@ -396,6 +395,7 @@
         regalloc_head = self.mc.currpos()
 
         start_pos = self.mc.currpos()
+        looptoken._ppc_loop_code = start_pos
         clt.frame_depth = -1
         spilling_area = self._assemble(operations, regalloc)
         clt.frame_depth = spilling_area
@@ -607,6 +607,14 @@
 
         return frame_depth
     
+    def fixup_target_tokens(self, rawstart):
+        for targettoken in self.target_tokens_currently_compiling:
+            targettoken._ppc_loop_code += rawstart
+        self.target_tokens_currently_compiling = None
+
+    def target_arglocs(self, looptoken):
+        return looptoken._ppc_arglocs
+
     def materialize_loop(self, looptoken, show):
         self.mc.prepare_insts_blocks(show)
         self.datablockwrapper.done()


More information about the pypy-commit mailing list