[pypy-commit] pypy jit-short_from_state: in progress

hakanardo noreply at buildbot.pypy.org
Tue Aug 2 14:08:00 CEST 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-short_from_state
Changeset: r46192:c19dc0e34e84
Date: 2011-07-30 18:04 +0200
http://bitbucket.org/pypy/pypy/changeset/c19dc0e34e84/

Log:	in progress

diff --git a/pypy/jit/metainterp/test/test_virtualstate.py b/pypy/jit/metainterp/test/test_virtualstate.py
--- a/pypy/jit/metainterp/test/test_virtualstate.py
+++ b/pypy/jit/metainterp/test/test_virtualstate.py
@@ -123,6 +123,22 @@
         loop = self.parse(expected)
         assert equaloplists(guards, loop.operations, False,
                             {loop.inputargs[0]: box})
+
+    def test_nonnull(self):
+        ops1 = """
+        [p0]
+        jump(p0)
+        """
+        ops2 = """
+        [p0]
+        p1 = getfield_gc(p0, descr=nextdescr]
+        jump(p0)
+        """
+        self.general_order(ops1, ops2)
+
+    def general_order(self, ops1, ops2):
+        loop1 = self.parse(ops1)
+        loop2 = self.parse(ops2)
         
 class TestLLtype(BaseTestGenerateGuards, LLtypeMixin):
     pass


More information about the pypy-commit mailing list