[pypy-commit] pypy ppc-jit-backend-rpythonization: some translation fixes in call_assembler

hager noreply at buildbot.pypy.org
Tue Feb 7 18:20:25 CET 2012


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend-rpythonization
Changeset: r52198:79e36f74aa2a
Date: 2012-02-07 09:14 -0800
http://bitbucket.org/pypy/pypy/changeset/79e36f74aa2a/

Log:	some translation fixes in call_assembler

diff --git a/pypy/jit/backend/ppc/ppcgen/opassembler.py b/pypy/jit/backend/ppc/ppcgen/opassembler.py
--- a/pypy/jit/backend/ppc/ppcgen/opassembler.py
+++ b/pypy/jit/backend/ppc/ppcgen/opassembler.py
@@ -1031,16 +1031,16 @@
 
         # Reset the vable token --- XXX really too much special logic here:-(
         if jd.index_of_virtualizable >= 0:
-            from pypy.jit.backend.llsupport.descr import BaseFieldDescr
+            from pypy.jit.backend.llsupport.descr import FieldDescr
             fielddescr = jd.vable_token_descr
-            assert isinstance(fielddescr, BaseFieldDescr)
+            assert isinstance(fielddescr, FieldDescr)
             ofs = fielddescr.offset
             resloc = regalloc.force_allocate_reg(resbox)
-            self.alloc_scratch_reg()
+            self.mc.alloc_scratch_reg()
             self.mov_loc_loc(arglocs[1], r.SCRATCH)
             self.mc.li(resloc.value, 0)
             self.mc.storex(resloc.value, 0, r.SCRATCH.value)
-            self.free_scratch_reg()
+            self.mc.free_scratch_reg()
             regalloc.possibly_free_var(resbox)
 
         if op.result is not None:


More information about the pypy-commit mailing list