[pypy-commit] pypy ppc-jit-backend: rpythonize the assembler

fijal noreply at buildbot.pypy.org
Fri Jan 27 23:45:14 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: ppc-jit-backend
Changeset: r51895:71425577dae9
Date: 2012-01-28 00:44 +0200
http://bitbucket.org/pypy/pypy/changeset/71425577dae9/

Log:	rpythonize the assembler

diff --git a/pypy/jit/backend/ppc/ppcgen/codebuilder.py b/pypy/jit/backend/ppc/ppcgen/codebuilder.py
--- a/pypy/jit/backend/ppc/ppcgen/codebuilder.py
+++ b/pypy/jit/backend/ppc/ppcgen/codebuilder.py
@@ -25,6 +25,7 @@
 from pypy.jit.backend.x86.support import values_array
 from pypy.tool.udir import udir
 from pypy.rlib.objectmodel import we_are_translated
+from pypy.jit.backend.ppc.ppcgen.rassemblermaker import make_rassembler
 
 from pypy.translator.tool.cbuild import ExternalCompilationInfo
 
@@ -960,7 +961,7 @@
         for i, new_inst in enumerate(self.insts):
             self.cb.insts[i + startindex] = new_inst
 
-class PPCBuilder(BlockBuilderMixin, PPCAssembler):
+class PPCBuilder(BlockBuilderMixin, make_rassembler(PPCAssembler)):
     def __init__(self, failargs_limit=1000, r0_in_use=False):
         PPCAssembler.__init__(self)
         self.init_block_builder()


More information about the pypy-commit mailing list