[pypy-svn] r69481 - pypy/branch/shorter-guard-path/pypy/jit/backend/x86
arigo at codespeak.net
arigo at codespeak.net
Fri Nov 20 19:30:46 CET 2009
Author: arigo
Date: Fri Nov 20 19:30:46 2009
New Revision: 69481
Modified:
pypy/branch/shorter-guard-path/pypy/jit/backend/x86/ri386.py
Log:
Revert the test for r69479 (but not the fix).
I cannot find an RPythonic way to say that :-(
Modified: pypy/branch/shorter-guard-path/pypy/jit/backend/x86/ri386.py
==============================================================================
--- pypy/branch/shorter-guard-path/pypy/jit/backend/x86/ri386.py (original)
+++ pypy/branch/shorter-guard-path/pypy/jit/backend/x86/ri386.py Fri Nov 20 19:30:46 2009
@@ -259,16 +259,9 @@
xmm6 = XMM6()
xmm7 = XMM7()
-class immutablelist(list):
- def _dont_modify(self, *args):
- raise Exception("don't modify this list!")
- __delitem__ = __delslice__ = __iadd__ = __imul__ = _dont_modify
- __setitem__ = __setslice__ = _dont_modify
- append = extend = insert = pop = remove = reverse = sort = _dont_modify
-
-registers = immutablelist([eax, ecx, edx, ebx, esp, ebp, esi, edi])
-registers8 = immutablelist([al, cl, dl, bl, ah, ch, dh, bh])
-xmm_registers = immutablelist([xmm0, xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7])
+registers = [eax, ecx, edx, ebx, esp, ebp, esi, edi]
+registers8 = [al, cl, dl, bl, ah, ch, dh, bh]
+xmm_registers = [xmm0, xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7]
for r in registers + registers8:
r.bitmask = 1 << r.op
More information about the Pypy-commit
mailing list