[pypy-svn] r57806 - in pypy/branch/oo-jit/pypy: jit/codegen/cli/test translator/cli translator/cli/src

antocuni at codespeak.net antocuni at codespeak.net
Thu Sep 4 12:16:07 CEST 2008


Author: antocuni
Date: Thu Sep  4 12:16:06 2008
New Revision: 57806

Modified:
   pypy/branch/oo-jit/pypy/jit/codegen/cli/test/test_gencli_interpreter.py
   pypy/branch/oo-jit/pypy/translator/cli/opcodes.py
   pypy/branch/oo-jit/pypy/translator/cli/src/pypylib.cs
Log:
implement debug_fatalerror in gencli, and test_residual_red_call passes out of the box



Modified: pypy/branch/oo-jit/pypy/jit/codegen/cli/test/test_gencli_interpreter.py
==============================================================================
--- pypy/branch/oo-jit/pypy/jit/codegen/cli/test/test_gencli_interpreter.py	(original)
+++ pypy/branch/oo-jit/pypy/jit/codegen/cli/test/test_gencli_interpreter.py	Thu Sep  4 12:16:06 2008
@@ -83,7 +83,6 @@
     def test_compile_time_const_tuple(self):
         py.test.skip("Fails, and it seems to be related to missing support for constant arguments")
 
-    test_residual_red_call = skip
     test_residual_red_call_with_exc = skip
     test_simple_meth = skip
     test_simple_red_meth = skip

Modified: pypy/branch/oo-jit/pypy/translator/cli/opcodes.py
==============================================================================
--- pypy/branch/oo-jit/pypy/translator/cli/opcodes.py	(original)
+++ pypy/branch/oo-jit/pypy/translator/cli/opcodes.py	Thu Sep  4 12:16:06 2008
@@ -73,6 +73,7 @@
     'resume_point':             Ignore,
     'debug_assert':             Ignore,
     'debug_print':              Ignore,
+    'debug_fatalerror':         [PushAllArgs, 'call void [pypylib]pypy.runtime.Utils::debug_fatalerror(string)'],
     'keepalive':                Ignore,
     'is_early_constant':        [PushPrimitive(ootype.Bool, False)],
     }

Modified: pypy/branch/oo-jit/pypy/translator/cli/src/pypylib.cs
==============================================================================
--- pypy/branch/oo-jit/pypy/translator/cli/src/pypylib.cs	(original)
+++ pypy/branch/oo-jit/pypy/translator/cli/src/pypylib.cs	Thu Sep  4 12:16:06 2008
@@ -238,6 +238,12 @@
 
     public class Utils
     {
+
+        public static void debug_fatalerror(string msg)
+        {
+          throw new Exception("debug_fatalerror: " + msg);
+        }
+
         public static DynamicMethod CreateDynamicMethod(string name, Type res, Type[] args)
         {
             return new DynamicMethod(name, res, args, typeof(Utils).Module);



More information about the Pypy-commit mailing list