[pypy-commit] pypy ppc-jit-backend: test_call passes, but implementation of CALL is still rudimental.

hager noreply at buildbot.pypy.org
Wed Aug 31 12:30:27 CEST 2011


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend
Changeset: r46942:909be9e8dbcb
Date: 2011-08-31 12:30 +0200
http://bitbucket.org/pypy/pypy/changeset/909be9e8dbcb/

Log:	test_call passes, but implementation of CALL is still rudimental.

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
@@ -1402,7 +1402,12 @@
 
         arg_reg = 3
         for arg in args:
-            self.mr(arg_reg, cpu.reg_map[arg])
+            if isinstance(arg, Box):
+                self.mr(arg_reg, cpu.reg_map[arg])
+            elif isinstance(arg, Const):
+                self.load_word(arg_reg, arg.value)
+            else:
+                assert 0, "%s not supported yet" % arg
             arg_reg += 1
 
         self.load_word(0, call_addr)
diff --git a/pypy/jit/backend/ppc/runner.py b/pypy/jit/backend/ppc/runner.py
--- a/pypy/jit/backend/ppc/runner.py
+++ b/pypy/jit/backend/ppc/runner.py
@@ -60,7 +60,7 @@
         self._walk_trace_ops(codebuilder, operations)
         self._make_epilogue(codebuilder)
 
-        f = codebuilder.assemble(True)
+        f = codebuilder.assemble()
         looptoken.ppc_code = f
         looptoken.codebuilder = codebuilder
         self.total_compiled_loops += 1


More information about the pypy-commit mailing list