[pypy-svn] r66453 - pypy/branch/pyjitpl5-optimize4/pypy/jit/metainterp/test

arigo at codespeak.net arigo at codespeak.net
Mon Jul 20 19:06:16 CEST 2009


Author: arigo
Date: Mon Jul 20 19:06:14 2009
New Revision: 66453

Modified:
   pypy/branch/pyjitpl5-optimize4/pypy/jit/metainterp/test/test_optimizefindnode.py
Log:
Another test.


Modified: pypy/branch/pyjitpl5-optimize4/pypy/jit/metainterp/test/test_optimizefindnode.py
==============================================================================
--- pypy/branch/pyjitpl5-optimize4/pypy/jit/metainterp/test/test_optimizefindnode.py	(original)
+++ pypy/branch/pyjitpl5-optimize4/pypy/jit/metainterp/test/test_optimizefindnode.py	Mon Jul 20 19:06:14 2009
@@ -414,6 +414,20 @@
         """
         self.find_nodes(ops, 'Not, Not')
 
+    def test_find_nodes_default_field(self):
+        ops = """
+        [p0]
+        i0 = getfield_gc(p0, descr=valuedescr)
+        guard_value(i0, 0)
+          fail()
+        p1 = new_with_vtable(ConstClass(node_vtable), descr=nodesize)
+        # the field 'value' has its default value of 0
+        jump(p1)
+        """
+        # Unclear if the answer must contain or not the 'value' field.
+        # For now it does not.
+        self.find_nodes(ops, 'Virtual(node_vtable)')
+
     # ------------------------------
     # Bridge tests
 



More information about the Pypy-commit mailing list