[pypy-svn] r64983 - pypy/branch/pyjitpl5/pypy/jit/backend/test

fijal at codespeak.net fijal at codespeak.net
Sat May 2 20:37:36 CEST 2009


Author: fijal
Date: Sat May  2 20:37:35 2009
New Revision: 64983

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/test/test_ll_random.py
Log:
Document all cases about raising calls


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/test/test_ll_random.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/test/test_ll_random.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/test/test_ll_random.py	Sat May  2 20:37:35 2009
@@ -152,6 +152,14 @@
         v_ptr = builder.do(self.opnum, args, self.size_descr(builder, S))
         builder.ptrvars.append((v_ptr, S))
 
+# there are five options in total:
+# 1. non raising call and guard_no_exception
+# 2. raising call and guard_exception
+# 3. raising call and wrong guard_exception
+# 4. raising call and guard_no_exception
+# 5. non raising call and guard_exception
+
+# 1. non raising call and guard_no_exception
 class CallOperation(test_random.AbstractOperation):
     def produce_into(self, builder, r):
         subset = builder.subset_of_intvars(r)
@@ -182,6 +190,13 @@
         op.suboperations = [ResOperation(rop.FAIL, [], None)]
         builder.loop.operations.append(op)
 
+# 2. raising call and guard_exception
+
+
+#class RaisingCallOperation(CallOperation):
+#    def produce_into(self, builder, r):
+        
+
 # ____________________________________________________________
 
 OPERATIONS = test_random.OPERATIONS[:]



More information about the Pypy-commit mailing list