Author: David Schneider <[email protected]>
Branch: arm-backend-2
Changeset: r55648:1613ac9e0cbd
Date: 2012-06-13 16:16 +0200
http://bitbucket.org/pypy/pypy/changeset/1613ac9e0cbd/
Log: use a default tuple instead of None
diff --git a/pypy/jit/backend/arm/opassembler.py
b/pypy/jit/backend/arm/opassembler.py
--- a/pypy/jit/backend/arm/opassembler.py
+++ b/pypy/jit/backend/arm/opassembler.py
@@ -363,7 +363,7 @@
return cond
def _emit_call(self, force_index, adr, arglocs, fcond=c.AL,
- resloc=None,
result_info=None):
+ resloc=None,
result_info=(-1,-1)):
n_args = len(arglocs)
reg_args = count_reg_args(arglocs)
# all arguments past the 4th go on the stack
@@ -455,7 +455,7 @@
if resloc.is_vfp_reg():
# move result to the allocated register
self.mov_to_vfp_loc(r.r0, r.r1, resloc)
- elif result_info:
+ elif result_info != (-1, -1):
self._ensure_result_bit_extension(resloc, result_info[0],
result_info[1])
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit