[pypy-svn] r65172 - pypy/branch/pyjitpl5/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Fri May 8 22:49:11 CEST 2009


Author: fijal
Date: Fri May  8 22:49:08 2009
New Revision: 65172

Modified:
   pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py
Log:
complain louder if x86 is not able to handle the call


Modified: pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/backend/x86/runner.py	Fri May  8 22:49:08 2009
@@ -605,6 +605,11 @@
         return counter, basesize, ptr
 
     def calldescrof(self, functype, argtypes, resulttype):
+        for argtype in argtypes:
+            if rffi.sizeof(argtype) > WORD:
+                raise NotImplementedError("bigger than lltype.Signed")
+        if resulttype is not lltype.Void and rffi.sizeof(resulttype) > WORD:
+            raise NotImplementedError("bigger than lltype.Signed")
         if resulttype is lltype.Void:
             size = 0
         else:



More information about the Pypy-commit mailing list