[pypy-svn] r62670 - in pypy/branch/pyjitpl5/pypy/jit/backend/x86: . test
fijal at codespeak.net
fijal at codespeak.net
Fri Mar 6 23:28:23 CET 2009
Author: fijal
Date: Fri Mar 6 23:28:23 2009
New Revision: 62670
Modified:
pypy/branch/pyjitpl5/pypy/jit/backend/x86/regalloc.py
pypy/branch/pyjitpl5/pypy/jit/backend/x86/test/test_symbolic.py
Log:
minor changes
Modified: pypy/branch/pyjitpl5/pypy/jit/backend/x86/regalloc.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/x86/regalloc.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/x86/regalloc.py Fri Mar 6 23:28:23 2009
@@ -891,7 +891,7 @@
return ops0 + more_ops + [Perform(op, [base_loc], result_loc)]
def consider_arraylen_gc(self, op, ignored):
- _, ofs = self._unpack_arraydescr(op.args[1].getint())
+ _, ofs = self._unpack_arraydescr(op.descr)
base_loc, ops0 = self.make_sure_var_in_reg(op.args[0], op.args)
self.eventually_free_vars(op.args)
result_loc, more_ops = self.force_allocate_reg(op.result, [])
Modified: pypy/branch/pyjitpl5/pypy/jit/backend/x86/test/test_symbolic.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/x86/test/test_symbolic.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/x86/test/test_symbolic.py Fri Mar 6 23:28:23 2009
@@ -62,8 +62,8 @@
assert cpu.fielddescrof(S, 'y') & 0xffff == get_field_token(S, 'y')[0]
assert cpu.fielddescrof(S, 'y') >> 16 == get_field_token(S, 'y')[1]
A = lltype.GcArray(lltype.Char)
- assert cpu.itemoffsetof(A) == get_array_token(A)[0]
- assert cpu.arraylengthoffset(A) == get_array_token(A)[2]
+ #assert cpu.itemoffsetof(A) == get_array_token(A)[0]
+ #assert cpu.arraylengthoffset(A) == get_array_token(A)[2]
def test_string():
STR = lltype.GcStruct('String', ('hash', lltype.Signed),
More information about the Pypy-commit
mailing list