[pypy-svn] pypy out-of-line-guards-2: write a test and note first problem
fijal
commits-noreply at bitbucket.org
Wed Apr 13 15:30:52 CEST 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: out-of-line-guards-2
Changeset: r43328:d5cf3b70d497
Date: 2011-04-13 15:30 +0200
http://bitbucket.org/pypy/pypy/changeset/d5cf3b70d497/
Log: write a test and note first problem
diff --git a/pypy/jit/backend/x86/test/test_quasiimmut.py b/pypy/jit/backend/x86/test/test_quasiimmut.py
new file mode 100644
--- /dev/null
+++ b/pypy/jit/backend/x86/test/test_quasiimmut.py
@@ -0,0 +1,9 @@
+
+import py
+from pypy.jit.backend.x86.test.test_basic import Jit386Mixin
+from pypy.jit.metainterp.test import test_quasiimmut
+
+class TestLoopSpec(Jit386Mixin, test_quasiimmut.QuasiImmutTests):
+ # for the individual tests see
+ # ====> ../../../metainterp/test/test_loop.py
+ pass
diff --git a/pypy/jit/metainterp/quasiimmut.py b/pypy/jit/metainterp/quasiimmut.py
--- a/pypy/jit/metainterp/quasiimmut.py
+++ b/pypy/jit/metainterp/quasiimmut.py
@@ -22,6 +22,7 @@
"""Returns the current QuasiImmut instance in the field,
possibly creating one.
"""
+ # XXX this is broken on x86
qmut_gcref = cpu.bh_getfield_gc_r(gcref, mutatefielddescr)
if qmut_gcref:
qmut = QuasiImmut.show(cpu, qmut_gcref)
More information about the Pypy-commit
mailing list