[pypy-svn] r74819 - pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86
jcreigh at codespeak.net
jcreigh at codespeak.net
Thu May 27 17:28:43 CEST 2010
Author: jcreigh
Date: Thu May 27 17:28:41 2010
New Revision: 74819
Modified:
pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/regloc.py
Log:
use constants, not variables, to construct string for compile-time hasattr
Modified: pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/regloc.py
==============================================================================
--- pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/regloc.py (original)
+++ pypy/branch/x86-64-jit-backend/pypy/jit/backend/x86/regloc.py Thu May 27 17:28:41 2010
@@ -139,7 +139,7 @@
for possible_code1 in unrolling_possible_location_codes:
for possible_code2 in unrolling_possible_location_codes:
if code1 == possible_code1 and code2 == possible_code2:
- methname = name + "_" + code1 + code2
+ methname = name + "_" + possible_code1 + possible_code2
if hasattr(rx86.AbstractX86CodeBuilder, methname):
getattr(self, methname)(loc1.value, loc2.value)
else:
@@ -152,7 +152,7 @@
code = loc.location_code()
for possible_code in unrolling_possible_location_codes:
if code == possible_code:
- methname = name + "_" + code
+ methname = name + "_" + possible_code
if hasattr(rx86.AbstractX86CodeBuilder, methname):
getattr(self, methname)(loc.value)
else:
More information about the Pypy-commit
mailing list