[pypy-svn] r51897 - in pypy/dist/pypy: jit/codegen/cli jit/codegen/cli/test translator/cli translator/cli/src

antocuni at codespeak.net antocuni at codespeak.net
Wed Feb 27 10:38:29 CET 2008

Author: antocuni
Date: Wed Feb 27 10:38:27 2008
New Revision: 51897

add support for FUNC5 and FUNC27, but the corresponding tests still
crash for other reasons :-(

Modified: pypy/dist/pypy/jit/codegen/cli/rgenop.py
--- pypy/dist/pypy/jit/codegen/cli/rgenop.py	(original)
+++ pypy/dist/pypy/jit/codegen/cli/rgenop.py	Wed Feb 27 10:38:27 2008
@@ -17,6 +17,8 @@
 SM_INT__INT_1 = ootype.StaticMethod([ootype.Signed], ootype.Signed)
 SM_INT__INT_2 = ootype.StaticMethod([ootype.Signed] * 2, ootype.Signed)
 SM_INT__INT_3 = ootype.StaticMethod([ootype.Signed] * 3, ootype.Signed)
+SM_INT__INT_5 = ootype.StaticMethod([ootype.Signed] * 5, ootype.Signed)
+SM_INT__INT_27 = ootype.StaticMethod([ootype.Signed] * 27, ootype.Signed)
 SM_INT__INT_100 = ootype.StaticMethod([ootype.Signed] * 100, ootype.Signed)
 def token2clitype(tok):
@@ -32,6 +34,10 @@
         return typeof(SM_INT__INT_2)
     elif tok == (['<Signed>'] * 3, '<Signed>'):
         return typeof(SM_INT__INT_3)
+    elif tok == (['<Signed>'] * 5, '<Signed>'):
+        return typeof(SM_INT__INT_5)
+    elif tok == (['<Signed>'] * 27, '<Signed>'):
+        return typeof(SM_INT__INT_27)
     elif tok == (['<Signed>'] * 100, '<Signed>'):
         return typeof(SM_INT__INT_100)

Modified: pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py
--- pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py	(original)
+++ pypy/dist/pypy/jit/codegen/cli/test/test_rgenop.py	Wed Feb 27 10:38:27 2008
@@ -71,10 +71,10 @@
         py.test.skip('mono crashes')
     def test_from_random_3_direct(self):
-        py.test.skip('we need yet another delegate type')
+        py.test.skip('infinite loop')
     def test_from_random_5_direct(self):
-        py.test.skip('we need yet another delegate type')
+        py.test.skip('mono crash')
     def test_genzeroconst(self):

Modified: pypy/dist/pypy/translator/cli/dotnet.py
--- pypy/dist/pypy/translator/cli/dotnet.py	(original)
+++ pypy/dist/pypy/translator/cli/dotnet.py	Wed Feb 27 10:38:27 2008
@@ -642,5 +642,7 @@
     ootype.StaticMethod([ootype.Signed], ootype.Signed):       CLR.pypy.test.DelegateType_int__int_1,
     ootype.StaticMethod([ootype.Signed] * 2, ootype.Signed):   CLR.pypy.test.DelegateType_int__int_2,
     ootype.StaticMethod([ootype.Signed] * 3, ootype.Signed):   CLR.pypy.test.DelegateType_int__int_3,
+    ootype.StaticMethod([ootype.Signed] * 5, ootype.Signed):   CLR.pypy.test.DelegateType_int__int_5,
+    ootype.StaticMethod([ootype.Signed] * 27, ootype.Signed):   CLR.pypy.test.DelegateType_int__int_27,
     ootype.StaticMethod([ootype.Signed] * 100, ootype.Signed): CLR.pypy.test.DelegateType_int__int_100

Modified: pypy/dist/pypy/translator/cli/src/pypylib.cs
--- pypy/dist/pypy/translator/cli/src/pypylib.cs	(original)
+++ pypy/dist/pypy/translator/cli/src/pypylib.cs	Wed Feb 27 10:38:27 2008
@@ -53,6 +53,8 @@
     public delegate int DelegateType_int__int_1(int a);
     public delegate int DelegateType_int__int_2(int a, int b);
     public delegate int DelegateType_int__int_3(int a, int b, int c);
+    public delegate int DelegateType_int__int_5(int a, int b, int c, int d, int e);
+    public delegate int DelegateType_int__int_27(int a0, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int a19, int a20, int a21, int a22, int a23, int a24, int a25, int a26);
     public delegate int DelegateType_int__int_100(int a0, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int a19, int a20, int a21, int a22, int a23, int a24, int a25, int a26, int a27, int a28, int a29, int a30, int a31, int a32, int a33, int a34, int a35, int a36, int a37, int a38, int a39, int a40, int a41, int a42, int a43, int a44, int a45, int a46, int a47, int a48, int a49, int a50, int a51, int a52, int a53, int a54, int a55, int a56, int a57, int a58, int a59, int a60, int a61, int a62, int a63, int a64, int a65, int a66, int a67, int a68, int a69, int a70, int a71, int a72, int a73, int a74, int a75, int a76, int a77, int a78, int a79, int a80, int a81, int a82, int a83, int a84, int a85, int a86, int a87, int a88, int a89, int a90, int a91, int a92, int a93, int a94, int a95, int a96, int a97, int a98, int a99);

More information about the Pypy-commit mailing list