Author: hager <[email protected]>
Branch: ppc-jit-backend
Changeset: r49657:74db0eef66fe
Date: 2011-11-22 11:47 +0100
http://bitbucket.org/pypy/pypy/changeset/74db0eef66fe/

Log:    Allow allocation without setting the scratch register value

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
@@ -1050,10 +1050,11 @@
                     # 64 bit unsigned
                     self.cmpld(block, a, b)
                 
-    def alloc_scratch_reg(self, value):
+    def alloc_scratch_reg(self, value=None):
         assert not self.r0_in_use
         self.r0_in_use = True
-        self.load_imm(r.r0, value)
+        if value is not None:
+            self.load_imm(r.r0, value)
 
     def free_scratch_reg(self):
         assert self.r0_in_use
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to